Create
Claude Code
Connect Claude Code CLI to a Webex MCP server.
Before configuring, you'll need OAuth 2.0 credentials. See OAuth 2.0 setup instructions in the main guide.
anchorOAuth 2.0
anchorMCP_CLIENT_SECRET=your-secret claude mcp add --transport http \
--client-id your-client-id --client-secret --callback-port 8080 \
my-server https://mcp.example.com/mcp
The --client-secret flag will prompt you to enter the client secret securely.
Claude Code uses OAuth 2.0 well-known discovery endpoints for configuration, and scopes are fetched from those discovered endpoints.
Set callbackPort to match the callback URI you registered when creating your Webex OAuth 2.0 Integration. Make sure to register the callback URI in this format http://localhost:PORT/callback. The port can be any available port — it just needs to match your registered callback URI. If omitted, Claude Code picks a random available port.
Replace with values from your Webex OAuth 2.0 Integration:
<server-name>with a descriptive name (e.g.,webex)<MCP_SERVER_URL>with the Webex MCP server endpoint URLYOUR_CLIENT_IDwith the Client IDPORTwith the port matching your registered redirect URI
anchorAuthenticate
anchorAfter adding the server, run /mcp inside Claude Code. The server will show as failed with not authenticated status.
- Select the server from the list
- Choose Authenticate
- A browser window will open for you to sign in and grant access
- Once authenticated, the server status will update to connected