Purpose
webex-messaging-mcp-server is a Model Context Protocol (MCP) server designed to provide AI assistants with comprehensive access to Cisco Webex messaging capabilities. It serves as the collaborative operations layer for AI agents, enabling agents to translate business goals into a series of Webex operations, select relevant capabilities, and complete workflows, such as notifying customers, forming incident response spaces, maintaining customer teams and spaces, managing people and memberships, responding to Webex events, or connecting enterprise content and approval interactions.
Key Capabilities
The server exposes Webex messaging, spaces, teams, memberships, people, webhooks, events, tags, attachment actions, and ECM folders through 52 composable MCP tools. The specific tool categories include:
- Messages (6 tools): create, list, edit, delete messages, and get message details.
- Spaces (6 tools): create, list, get details, update, and delete spaces.
- Teams (5 tools): create, list, get details, update, and delete teams.
- Memberships (10 tools): add/list/update/delete space members, add/list team members.
- People and Directory (6 tools): get personal profile, search users, get user details, create/update/delete users (admin privileges).
- Webhooks and Events (7 tools): create, list, get details, update, and delete webhooks, list events, and get event details.
- Enterprise Features (12 tools): create/list/get/update/delete space tags, create/get attachment actions, list/get/create/update/unlink ECM folders.
All 52 tools publish MCP annotations via tools/list along with compact selection and behavior guidance to help clients identify the closest peer tools, whether an operation reads or changes Webex state, and how API errors and rate limits are returned. Annotations are descriptive hints only, not authorization controls; Webex access tokens and organizational policies remain authoritative.
Usage
Environment Requirements
- Node.js 18+ (20+ recommended). Note: fetch is unavailable below this version; the tools use fetch for HTTP calls, which can be modified to use node-fetch.
- Docker (optional, for containerized deployment).
- Webex API token (obtained from developer.webex.com). Webex Bearer tokens are short-lived (the current token expires after 12 hours), so the environment variable WEBEX_PUBLIC_WORKSPACE_API_KEY must be updated periodically (remove the "Bearer " prefix).
Installation and Configuration
Clone the repository and install dependencies:
git clone <repository-url>
cd webex-messaging-mcp-server
npm install
Configure the environment:
cp .env.example .env
# 编辑 .env 填入 Webex API 令牌
Running
- List available tools:
node index.js tools - Discover tools and detailed analysis:
npm run discover-tools - Start the MCP server (STDIO mode, default):
node mcpServer.js - Start the MCP server (HTTP mode):
npm run start:http
Docker Deployment
Build and run:
docker build -t webex-mcp-server .
docker run -i --rm --env-file .env webex-mcp-server
Or use docker-compose:docker-compose up webex-mcp-server
MCP Client Integration
- Claude Desktop (STDIO mode): Add the corresponding configuration to the Claude Desktop configuration.
- HTTP mode: Start the HTTP mode server, which supports the MCP 2025-11-25 protocol and StreamableHTTP transport, including CORS configuration (exposing the mcp-session-id header), session management for stateful connections, and SSE response format. Health check endpoint: GET http://localhost:3001/health;MCP endpoint: POST http://localhost:3001/mcp。
- Other MCP clients: Use STDIO mode.
Environment Variables
- WEBEX_PUBLIC_WORKSPACE_API_KEY: Webex API token (required).
- MCP_MODE=http: Force HTTP mode.
- PORT=3001: Custom port (default 3001).
Smithery Integration
The server is configured for automatic deployment via Smithery (HTTP runtime). Deployment command:smithery deploy.
Use Cases
Suitable for scenarios that require deep integration of AI agents with the Cisco Webex collaboration platform, such as: customer notifications, incident response space creation, customer team and space maintenance, people and membership management, Webex incident response, enterprise content and approval interaction connections, etc. Agents can build workflows around business needs rather than being limited to hardcoded automation.
Limitations
- A valid Webex API token is required, and tokens have a short validity period and must be updated regularly.
- Some people management operations (creating/deleting users) require administrator privileges.
- Annotations are descriptive hints only and do not constitute authorization controls; actual permissions are determined by the Webex access token and organizational policies.
- No specific pricing, cost, or platform compatibility details are provided.
- The project uses the MIT license.