webex-mcp
An MCP server that connects AI assistants to Cisco Webex Messaging for spaces, messages, files, memberships, people, teams, and webhooks.
List, search, create, update, and delete spaces; get space meeting details.
Read, search, send, edit, and delete messages; work with DMs, threads, and attachment-card actions.
Inspect, download, view, or save message attachments, including inline images, paged text, ZIP/JAR listings, and local file saves.
Manage space memberships and look up people by email, name, or ID.
Manage teams and team memberships.
Create, list, update, and delete webhooks.
Authenticate with a Webex bot token or OAuth 2.0 integration with token refresh; optional FedRAMP endpoint.
Provides tools for interacting with Cisco Webex Messaging, enabling AI assistants to manage spaces, messages, memberships, people, teams, webhooks, attachment actions, and file attachments, including downloading, saving, and sending files.
webex-mcp
Maintainers: see Publishing a release for GitHub Releases and npm setup.
MCP server for Cisco Webex Messaging — connect AI assistants to Webex spaces, messages, and people.
Minimal MCP server that exposes Webex messaging tools over stdio. Works with Cursor, Claude Desktop, Codex, Claude Code, OpenCode, and other MCP clients.
Features
Full core Webex Messaging API coverage: spaces, messages, memberships, people, teams, webhooks, attachment actions, and file downloads
Received attachments for agents: images inline, text paged inline, ZIP/JAR listings, and saving any file to local disk
Search spaces and messages by keyword (client-side scan)
Direct calls to the Webex REST API over
fetch(no Webex SDK), with rate-limit retries and paginationOAuth 2.0 Integration login with automatic token refresh
Related MCP server: rocketchat-mcp
Requirements
Node.js >= 22
Webex Bot access token or Webex Integration (OAuth) — developer.webex.com
Quick start
Option A — Bot token
# Run via npx (recommended)
npx -y @yuryev89/webex-mcp@latest --token YOUR_ACCESS_TOKEN
# Or install globally
npm install -g @yuryev89/webex-mcp
webex-mcp --token YOUR_ACCESS_TOKENOption B — OAuth Integration
# 1. Set credentials (or use a .env file in your working directory)
export WEBEX_CLIENT_ID="your-client-id"
export WEBEX_CLIENT_SECRET="your-client-secret"
# 2. Authenticate once (opens browser)
npx -y @yuryev89/webex-mcp@latest login
# 3. Start MCP server (reads saved tokens, auto-refreshes)
npx -y @yuryev89/webex-mcp@latestCursor configuration
Bot token
{
"mcpServers": {
"webex": {
"command": "bash",
"args": [
"-lc",
"npx -y @yuryev89/webex-mcp@latest --token \"$WEBEX_ACCESS_TOKEN\""
],
"env": {
"WEBEX_ACCESS_TOKEN": "YOUR_BOT_ACCESS_TOKEN"
}
}
}
}OAuth Integration
{
"mcpServers": {
"webex": {
"command": "npx",
"args": ["-y", "@yuryev89/webex-mcp@latest"],
"env": {
"WEBEX_CLIENT_ID": "YOUR_CLIENT_ID",
"WEBEX_CLIENT_SECRET": "YOUR_CLIENT_SECRET"
}
}
}
}Run npx -y @yuryev89/webex-mcp@latest login once before starting Cursor (with WEBEX_CLIENT_ID and WEBEX_CLIENT_SECRET set).
Codex configuration
Add one of the following configurations to ~/.codex/config.toml (merge it with any existing configuration).
Bot token
[mcp_servers.webex]
command = "npx"
args = ["-y", "@yuryev89/webex-mcp@latest"]
[mcp_servers.webex.env]
WEBEX_ACCESS_TOKEN = "YOUR_BOT_ACCESS_TOKEN"OAuth Integration
Complete Option B — OAuth Integration first, then use:
[mcp_servers.webex]
command = "npx"
args = ["-y", "@yuryev89/webex-mcp@latest"]
[mcp_servers.webex.env]
WEBEX_CLIENT_ID = "YOUR_CLIENT_ID"
WEBEX_CLIENT_SECRET = "YOUR_CLIENT_SECRET"Alternatively, keep credentials in your shell environment and replace the [mcp_servers.webex.env] table with env_vars = ["WEBEX_ACCESS_TOKEN"] inside [mcp_servers.webex] (or ["WEBEX_CLIENT_ID", "WEBEX_CLIENT_SECRET"] for OAuth). Start Codex from that shell.
Run codex mcp list to verify registration, then use /mcp in Codex to inspect the active server.
Reference: Codex MCP documentation.
Claude Code configuration
The following commands register Webex for your user account across projects. Choose one authentication mode.
Bot token
claude mcp add --scope user \
--env WEBEX_ACCESS_TOKEN=YOUR_BOT_ACCESS_TOKEN \
--transport stdio webex -- npx -y @yuryev89/webex-mcp@latestOAuth Integration
Complete Option B — OAuth Integration first, then register:
claude mcp add --scope user \
--env WEBEX_CLIENT_ID=YOUR_CLIENT_ID \
--env WEBEX_CLIENT_SECRET=YOUR_CLIENT_SECRET \
--transport stdio webex -- npx -y @yuryev89/webex-mcp@latestRun claude mcp list or claude mcp get webex to check the connection. Inside Claude Code, use /mcp to inspect status and tools. To switch modes, remove the existing entry with claude mcp remove --scope user webex, then register it again.
Reference: Claude Code MCP documentation.
OpenCode configuration
Merge one of these examples into opencode.json in your project, or ~/.config/opencode/opencode.json for all projects.
Bot token
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"webex": {
"type": "local",
"command": ["npx", "-y", "@yuryev89/webex-mcp@latest"],
"enabled": true,
"environment": {
"WEBEX_ACCESS_TOKEN": "{env:WEBEX_ACCESS_TOKEN}"
}
}
}
}Set WEBEX_ACCESS_TOKEN in your environment before launching OpenCode; {env:...} reads that variable.
OAuth Integration
Complete Option B — OAuth Integration first, then use:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"webex": {
"type": "local",
"command": ["npx", "-y", "@yuryev89/webex-mcp@latest"],
"enabled": true,
"environment": {
"WEBEX_CLIENT_ID": "{env:WEBEX_CLIENT_ID}",
"WEBEX_CLIENT_SECRET": "{env:WEBEX_CLIENT_SECRET}"
}
}
}
}Keep WEBEX_CLIENT_ID and WEBEX_CLIENT_SECRET exported when launching OpenCode. Run opencode mcp list to check the server.
References: OpenCode MCP documentation and configuration.
Client setup notes
Each client starts the server as a local stdio process; no separate server terminal or HTTP URL is needed.
OAuth login is handled by
npx -y @yuryev89/webex-mcp@latest login. Run it under the same OS user and token-store configuration as the client. Client-native MCP OAuth login commands do not replace this step.For OAuth, remove
WEBEX_ACCESS_TOKENfrom the client configuration, inherited environment, and any loaded.env: a static token takes precedence over saved OAuth tokens.Replace credential placeholders locally. Keep real credentials out of version control; CLI arguments may also be retained in shell history.
Ensure Node.js and
npxare available to the client, then restart it after configuration changes.Try: "Use Webex to list my spaces." For a message search, identify a space first;
webex_search_messagessearches one space at a time.
CLI options
Option / Command | Description | Default |
| Webex access token (Bot mode) |
|
| Use FedRAMP endpoint |
|
| Log startup to stderr |
|
| OAuth browser login, save tokens | — |
| Remove stored OAuth tokens | — |
| Show OAuth expiry metadata | — |
Tools
Spaces
Tool | Description |
| List spaces (rooms) for the authenticated user |
| Search spaces by title/name (case-insensitive) |
| Get space details by ID |
| Create a new space |
| Update a space |
| Delete a space |
| Get meeting details for a space |
Messages
Tool | Description |
| List messages in a space or get one by ID ( |
| Keyword search within a single space; optional compact output |
| Get a thread root plus up to 500 replies using a root or reply ID |
| Send text and/or file attachments to a space or DM |
| Update an existing message |
| Delete a message |
| List messages in a 1:1 direct room ( |
| Submit an attachment card action |
| Get attachment action details |
Compact responses and thread context
For webex_get_messages, webex_search_messages, webex_list_direct_messages,
and webex_get_thread_context, set outputMode: "compact" to minimize JSON
and return one message text representation instead of both text and markdown.
The default outputMode: "full" preserves existing output for current clients.
maxTextChars (100–10,000, default 1,200) bounds text per message when
compact. Truncated text is flagged with textTruncated and originalChars.
Compact output replaces attachment URLs with counts and, when
includeFileDetails is enabled, attachment metadata. Use full mode for
download URLs or unabridged text.
webex_get_thread_context accepts roomId, messageId (root or reply),
and maxReplies (default 100, max 500). It resolves the root, collects
thread replies over multiple Webex pages and returns hasMore if the
result was capped. Thread access is restricted to the supplied space.
Sending file attachments
Use webex_create_message with files for publicly accessible HTTP(S) URLs:
{
"roomId": "SPACE_ID",
"text": "Here is the report",
"files": ["https://example.com/report.pdf"]
}For a local file, use filePath instead. The server uploads its contents using
multipart; the file must be on the machine running the MCP server, with an
absolute path and a size of at most 100 MB:
{
"toPersonEmail": "colleague@example.com",
"filePath": "/absolute/path/to/report.pdf"
}On Windows, use an absolute Windows path such as C:\\Reports\\report.pdf.
Text and markdown are optional when attaching a file. files must be nonempty
and cannot be combined with filePath. Recipient fields (roomId, toPersonId,
toPersonEmail) and parentId for thread replies work as with text messages.
URL downloads and attachment limits are enforced by Webex; private URLs requiring
additional credentials cannot be used as public file URLs. See the
Webex attachment guide.
Files
Tool | Description |
| Metadata (filename, type, size) for a message |
| Read a file (max 10 MB): images inline, text paged with |
| Download all image attachments on a message for LLM vision |
| Save one file to local disk (max 100 MB) and return its path |
| Save every file of a message to local disk |
Reading received attachments
What webex_download_file returns depends on the file:
File | Result |
PNG, JPEG, GIF, WebP | Inline ImageContent |
Text: | JSON summary ( |
ZIP, JAR, WAR, EAR | List of entries (name, size, encrypted); nothing is extracted |
Anything else (PDF, docx, xlsx, …) | Metadata and a hint to use |
For PDF and Office documents, save the file and open it with the client's own tools
(many agents read PDFs and images directly; use a script for docx/xlsx). Saved files go to
<download dir>/<message-uuid>/<filename>, where the download dir is WEBEX_DOWNLOAD_DIR
or ~/.cache/webex-mcp/downloads. Names are taken from Webex, decoded and made safe for
the file system; saving again replaces the file, and webex_save_message_files adds
(1) to same-named files of one message. The body streams to <name>.part and is renamed
only when complete. Treat saved files as untrusted input: open or list them, never run them.
If Webex is still virus-scanning a file it answers 423 Locked; downloads wait for
Retry-After (up to 10 s) and retry three times before failing.
Memberships
Tool | Description |
| List space memberships |
| Get membership details |
| Invite a person to a space |
| Update membership (e.g. moderator) |
| Remove a person from a space |
People
Tool | Description |
| Search people by email, name, or ID |
| Get a person by ID (use |
Teams
Tool | Description |
| List teams |
| Create a team |
| Get team details |
| Update a team |
| Delete a team |
| List team memberships |
| Add a person to a team |
| Get team membership details |
| Update team membership |
| Remove a person from a team |
Webhooks
Tool | Description |
| List webhooks |
| Create a webhook |
| Get webhook details |
| Update a webhook |
| Delete a webhook |
Limitations
webex_search_messagesworks within a single space only (Webex REST API has no global search)Search scans message history page by page — may be slow in large spaces
Bot must be a member of a space to read or post messages
OAuth uses user-delegated tokens; Bot mode uses a long-lived Bot token
Message
files[]URLs require the access token; usewebex_get_message_images/webex_download_file/webex_save_fileinstead of fetching the URL directlyInline vision images are limited to PNG, JPEG, GIF, and WebP, max 10 MB each; inline text and archive listings are also limited to 10 MB
PDF and Office documents are not parsed by the server; save them and open them locally
ZIP64 archives cannot be listed inline; save them instead
Authentication modes
Mode | Setup | Best for |
Bot token | Copy token from developer portal | Simple Cursor setup, bot identity |
OAuth Integration |
| User-delegated access with auto-refresh |
Full guide
See docs/HOWTO.md for step-by-step setup: bot creation, scopes, Cursor config, example prompts, and troubleshooting.
Local development
git clone https://github.com/yuryev89/webexmcp
cd webexmcp
npm install
cp .env.example .env
npm run dev -- --token "$WEBEX_ACCESS_TOKEN"
npm testLicense
MIT
Available Tools
43 toolswebex_add_membershipB
Add space member by personEmail or personId.
Inputs: roomId (required), personId, isModerator, personEmail.
webex_add_team_membershipB
Add team member by personId or personEmail.
Inputs: teamId (required), personId, isModerator, personEmail.
webex_create_attachment_actionC
Submit an action on a message card.
Inputs: type (required), messageId (required), inputs.
webex_create_messageB
Send to space (roomId) or person (toPersonEmail/Id); files allowed, text optional with files.
Inputs: text, files, roomId, filePath, +4 more.
webex_create_spaceC
Create a space.
Inputs: title (required), teamId, isLocked, isPublic, +2 more.
webex_create_teamD
Create a team.
Inputs: name (required), description.
webex_create_webhookC
Create event webhook.
Inputs: name (required), event (required), resource (required), targetUrl (required), +2 more.
webex_delete_messageC
Delete a message by ID.
Inputs: messageId (required).
webex_delete_spaceB
Delete a space by ID.
Inputs: roomId (required).
webex_delete_teamC
Delete a team by ID.
Inputs: teamId (required).
webex_delete_webhookC
Delete webhook by ID.
Inputs: webhookId (required).
webex_download_fileA
Read attachment (max 10 MB): inline images, paged text, ZIP/JAR entry list (no extraction). For PDF/Office/binary use webex_save_file.
Inputs: fileUrl (required), offset, maxChars.
webex_get_attachment_actionC
Get card action by ID.
Inputs: actionId (required).
webex_get_file_detailsA
Get attachment metadata (filename, content type, size); no body.
Inputs: fileUrl (required).
webex_get_membershipC
Get space membership by ID.
Inputs: membershipId (required).
webex_get_message_imagesA
Return message images inline for vision; report skipped non-images.
Inputs: messageId (required).
webex_get_messagesB
Get one message by messageId or list space messages by roomId.
Inputs: max, before, roomId, messageId, +5 more.
webex_get_peopleC
Find org people by email, name prefix or ID; one required.
Inputs: id, max, email, displayName.
webex_get_personB
Get person by ID; "me" selects current user.
Inputs: id (required).
webex_get_spaceC
Get space by ID.
Inputs: roomId (required).
webex_get_space_meeting_infoC
Get space meeting details.
Inputs: roomId (required).
webex_get_teamB
Get team by ID.
Inputs: teamId (required).
webex_get_team_membershipC
Get team membership by ID.
Inputs: membershipId (required).
webex_get_thread_contextB
Get thread root and bounded replies for a message or reply.
Inputs: roomId (required), messageId (required), maxReplies, outputMode, +1 more.
webex_get_webhookC
Get webhook by ID.
Inputs: webhookId (required).
webex_list_direct_messagesB
List 1:1 DM messages; personId or personEmail required.
Inputs: parentId, personId, outputMode, personEmail, +2 more.
webex_list_membershipsC
List space members.
Inputs: max, roomId, personId, personEmail.
webex_list_spacesC
List accessible spaces.
Inputs: to, max, from, type, +3 more.
webex_list_team_membershipsC
List team members.
Inputs: max, teamId, personId, personEmail.
webex_list_teamsC
List accessible teams.
Inputs: max.
webex_list_webhooksD
List webhooks.
Inputs: max.
webex_remove_membershipC
Remove space member.
Inputs: membershipId (required).
webex_remove_team_membershipC
Remove team member.
Inputs: membershipId (required).
webex_save_fileB
Save attachment to local disk (max 100 MB); returns path for local readers. Directory: WEBEX_DOWNLOAD_DIR or ~/.cache/webex-mcp/downloads//. Overwrites existing file; never execute untrusted downloads.
Inputs: fileUrl (required).
webex_save_message_filesB
Save all message attachments locally (webex_save_file limits); return paths and failures.
Inputs: messageId (required).
webex_search_messagesA
Keyword search within one space; scans history, not global search.
Inputs: query (required), roomId (required), before, scanLimit, +3 more.
webex_search_spacesB
Find spaces by case-insensitive title substring.
Inputs: query (required), type, sortBy, teamId, +2 more.
webex_update_membershipC
Update space member roles.
Inputs: membershipId (required), isMonitor, isModerator.
webex_update_messageC
Edit a message.
Inputs: messageId (required), text, roomId, markdown.
webex_update_spaceD
Update a space.
Inputs: roomId (required), title, isLocked, isPublic, +2 more.
webex_update_teamD
Update a team.
Inputs: teamId (required), name, description.
webex_update_team_membershipC
Update team member's moderator status.
Inputs: membershipId (required), isModerator.
webex_update_webhookC
Update webhook.
Inputs: webhookId (required), name, event, filter, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 43 tools
Most tools target distinct Webex resources and actions, with clear boundaries between spaces, memberships, teams, webhooks, messages, and files. Some overlap exists around message retrieval (get_messages, list_direct_messages, search_messages, get_thread_context) and file handling (download_file, save_file, save_message_files, get_message_images), but descriptions mostly resolve it.
The set consistently uses the webex_ prefix with snake_case verb_noun names such as list_spaces, create_space, and delete_webhook. Minor deviations appear in singular/plural forms (get_people vs get_person) and in the overloaded get_messages name, but the pattern remains predictable.
With 43 tools, the server is substantially larger than a typical well-scoped MCP toolset and exposes many CRUD surfaces across spaces, teams, memberships, webhooks, messages, people, and files. The breadth is explainable for Webex, but the count is heavy and increases selection burden.
The server provides broad CRUD coverage for spaces, memberships, teams, team memberships, webhooks, and messages, plus useful file and attachment-action tools. Some Webex-adjacent areas such as full meeting management are absent, but the apparent messaging/collaboration scope is well covered.
Maintenance
Related MCP Connectors
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Discover MCP servers and A2A agents; verify, message, post, follow, react, and receive webhooks.
Headless task management for bots, apps and AI agents. Remote MCP server, OAuth or access token.
MCP server for Ably — channel history, presence, occupancy, stats, publish, and app management.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server for Signal via signal-cli that enables sending and receiving messages, managing contacts and groups, and reacting over stdio.11 npm-
- AlicenseAqualityCmaintenanceMCP server for Rocket.Chat — messages, DMs, search, files, and channels over stdio1238 PyPI1MIT
- FlicenseNot gradedqualityBmaintenanceModel Context Protocol server for MCPGRAM that enables MCP clients to interact with connectors like GitHub, Slack, and Notion through stdio or Streamable HTTP transports.-
- AlicenseAqualityDmaintenanceMCP server that reads Slack through your own browser session, authenticating as you rather than a bot. Provides tools to search messages, retrieve channel/DM/thread history, resolve users, and post messages (write disabled by default).10MIT