Webex MCP Server

Webex MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to Cisco Webex messaging capabilities.

Category
访问服务器

Tools

delete_message

Delete a message in Webex by message ID.

get_event_details

Get details for a specific event by event ID.

list_teams

List teams for the authenticated user in Webex.

delete_membership

Delete a membership by ID in Webex.

get_room_details

Get details of a room by ID.

delete_room_tab

Delete a Room Tab in Webex.

get_membership_details

Get details for a membership by ID.

get_attachment_action_details

Get details for an attachment action by ID.

README

Webex MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to Cisco Webex messaging capabilities.

<a href="https://glama.ai/mcp/servers/@Kashyap-AI-ML-Solutions/webex-messaging-mcp-server"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@Kashyap-AI-ML-Solutions/webex-messaging-mcp-server/badge" alt="Webex Server MCP server" /> </a>

Overview

This MCP server enables AI assistants to interact with Webex messaging through 52 different tools covering:

  • Messages: Send, edit, delete, and retrieve messages
  • Rooms: Create and manage Webex spaces
  • Teams: Team creation and membership management
  • People: User management and directory operations
  • Webhooks: Event notifications and integrations
  • Enterprise Features: ECM folders, room tabs, and attachments

Features

  • Complete Webex API Coverage: 52 tools covering all major messaging operations
  • Docker Support: Production-ready containerization
  • Dual Transport: Both STDIO and SSE (Server-Sent Events) modes
  • Enterprise Ready: Supports Cisco enterprise authentication
  • Type Safe: Full TypeScript/JavaScript implementation with proper error handling
  • Centralized Configuration: Easy token and endpoint management

Quick Start

Prerequisites

  • Node.js 18+ (20+ recommended). Warning: if you run with a lower version of Node, fetch won't be present. Tools use fetch to make HTTP calls. To work around this, you can modify the tools to use node-fetch instead. Make sure that node-fetch is installed as a dependency and then import it as fetch into each tool file.
  • Docker (optional, for containerized deployment)
  • Webex API token from developer.webex.com

Token Renewal

Webex Bearer tokens are short-lived. Your current token expires in 12 hours. To renew:

  1. Visit: https://developer.webex.com/messaging/docs/api/v1/rooms/list-rooms
  2. Login with your email
  3. Copy the new bearer token from your profile
  4. Update environment variable "WEBEX_PUBLIC_WORKSPACE_API_KEY" with new token (remove "Bearer " prefix)

Installation

  1. Clone and install dependencies:

    git clone <repository-url>
    cd webex-messaging-mcp-server
    npm install
    
  2. Configure environment:

    cp .env.example .env
    # Edit .env with your Webex API token
    
  3. Test the server:

    # List available tools
    node index.js tools
    
    # Start MCP server
    node mcpServer.js
    

Docker Usage

  1. Build and run:

    docker build -t webex-mcp-server .
    docker run -i --rm --env-file .env webex-mcp-server
    
  2. Using docker-compose:

    docker-compose up webex-mcp-server
    

Configuration

Environment Variables

Variable Required Description Default
WEBEX_PUBLIC_WORKSPACE_API_KEY Yes Webex API token (without "Bearer " prefix) -
WEBEX_API_BASE_URL No Webex API base URL https://webexapis.com/v1
WEBEX_USER_EMAIL No Your Webex email (for reference) -
PORT No Port for SSE mode 3001

Getting a Webex API Token

  1. Visit developer.webex.com
  2. Sign in with your Cisco/Webex account
  3. Copy the bearer token from the API documentation
  4. Important: Remove the "Bearer " prefix when adding to your .env file

MCP Client Integration

Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
            "webex-messaging": {
                "command": "docker",
                "args": [
                  "run",
                  "-i",
                  "--rm",
                  "-e",
                  "WEBEX_PUBLIC_WORKSPACE_API_KEY",
                  "-e",
                  "WEBEX_USER_EMAIL",
                  "-e",
                  "WEBEX_API_BASE_URL",
                  "webex-mcp-server"
                ],
                "env": {
                  "WEBEX_USER_EMAIL": "your.email@company.com",
                  "WEBEX_API_BASE_URL": "https://webexapis.com/v1",
                  "WEBEX_PUBLIC_WORKSPACE_API_KEY": "your_token_here"
                }
            },
  }
}

Other MCP Clients

For STDIO mode:

docker run -i --rm --env-file .env webex-mcp-server

For SSE mode:

docker run -p 3001:3001 --rm --env-file .env webex-mcp-server --sse

Available Tools

Core Messaging

  • create_message - Send messages to rooms
  • list_messages - Retrieve message history
  • edit_message - Modify existing messages
  • delete_message - Remove messages
  • get_message_details - Get specific message information

Room Management

  • create_room - Create new Webex spaces
  • list_rooms - Browse available rooms
  • get_room_details - Get room information
  • update_room - Modify room settings
  • delete_room - Remove rooms

Team Operations

  • create_team - Create teams
  • list_teams - Browse teams
  • get_team_details - Get team information
  • update_team - Modify team settings
  • delete_team - Remove teams

Membership Management

  • create_membership - Add people to rooms
  • list_memberships - View room members
  • update_membership - Change member roles
  • delete_membership - Remove members
  • create_team_membership - Add team members
  • list_team_memberships - View team members

People & Directory

  • get_my_own_details - Get your profile
  • list_people - Search for users
  • get_person_details - Get user information
  • create_person - Add new users (admin only)
  • update_person - Modify user details
  • delete_person - Remove users (admin only)

Webhooks & Events

  • create_webhook - Set up event notifications
  • list_webhooks - Manage webhooks
  • get_webhook_details - Get webhook information
  • update_webhook - Modify webhooks
  • delete_webhook - Remove webhooks
  • list_events - Get activity logs
  • get_event_details - Get specific event information

Enterprise Features

  • create_room_tab - Add tabs to rooms
  • list_room_tabs - View room tabs
  • get_room_tab_details - Get tab information
  • update_room_tab - Modify tabs
  • delete_room_tab - Remove tabs
  • create_attachment_action - Handle form submissions
  • get_attachment_action_details - Get attachment details
  • list_ecm_folder - Enterprise content management
  • get_ecm_folder_details - Get ECM folder details
  • create_ecm_folder - Create ECM configurations
  • update_ecm_linked_folder - Modify ECM folders
  • unlink_ecm_linked_folder - Remove ECM links

Development

Project Structure

├── lib/
│   ├── tools.js           # Tool discovery and loading
│   └── webex-config.js    # Centralized API configuration
├── tools/
│   └── webex-public-workspace/webex-messaging/
│       ├── create-a-message.js
│       ├── list-messages.js
│       └── ... (50 more tools)
├── scripts/
│   └── update-webex-tools.js  # Automated tool updates
├── mcpServer.js           # Main MCP server
├── index.js              # CLI interface
├── Dockerfile             # Container configuration
└── docker-compose.yml    # Multi-container setup

Adding New Tools

  1. Create a new tool file in tools/webex-public-workspace/webex-messaging/
  2. Follow the existing tool pattern with proper imports
  3. Add the tool path to tools/paths.js
  4. Test with node index.js tools

Security

  • Non-root container: Runs as user mcp (UID 1001)
  • Multi-stage build: Optimized production image
  • Environment isolation: Secrets passed via environment variables
  • Health checks: Container monitoring support

Testing

🧪 Comprehensive Test Suite

  • 118 unit tests across 53 test suites
  • 100% pass rate with comprehensive coverage
  • 50+ API endpoints tested end-to-end
  • 20+ critical bug fixes validated
# Run all tests
npm test

# Run with coverage
npm run test:coverage

# Validate code quality + tests
npm run validate

🔒 Pre-Commit Quality Gates

Automatic quality assurance using Husky pre-commit hooks:

# Automatically runs on git commit:
🚀 Running pre-commit validation...
🔍 Checking code quality and running 118 unit tests...
✅ All validations passed! Commit proceeding...

What's validated:

  • JavaScript syntax checking
  • All 118 unit tests must pass
  • Code quality standards
  • API implementation correctness

See tests/README.md for detailed testing documentation.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Tests run automatically on commit via pre-commit hooks
  5. Ensure all 118 tests pass
  6. Submit a pull request

License

MIT License - see LICENSE file for details

Support

  • Issues: Report bugs and feature requests via GitHub issues
  • Documentation: See SETUP-COMPLETE.md for detailed setup instructions
  • Community: Join discussions in the MCP community channels

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选