npx setup.
1
Create an API key
Open your OpenCX dashboard and navigate to Settings > API Keys > Create API Key. Give it a descriptive name (e.g. “Cursor MCP”) and copy the key immediately — it is only shown once.
2
Add to your AI client
Paste the configuration below into your client’s MCP settings. Replace
your-api-key-here with the key you just copied.Each client has its own config file and UI. See Cursor, Claude Desktop, Claude Code, VS Code, Windsurf, and Zed.
3
Verify the connection
Ask your AI assistant one of these prompts to confirm the server is connected:
- “List my recent chat sessions”
- “Show me CSAT scores from the last week”
- “Search my knowledge base for refund policy”
Remote server (no install)
OpenCX also hosts the MCP server over athttps://api.open.cx/mcp. Nothing to install or keep updated — authenticate with the same API key as a bearer token:
https://your-instance/mcp.
Authentication
The MCP server authenticates with a per-organization API key passed through theOPENCX_API_KEY environment variable.
Rotating keys: Create a new key in Settings > API Keys, update your MCP client config, then delete the old key from the dashboard.
Self-hosted instances
If you run a self-hosted OpenCX deployment, setOPENCX_BASE_URL to your instance URL. The server requires HTTPS unless targeting localhost for local development.
Related Documentation
Prompt Library
Ready-to-use prompts by domain
Cursor
Project config, agent mode, debugging
VS Code
mcp.json and Copilot
Troubleshooting
Debug connection and authentication issues