Add the OpenCX server to your AI client so it can manage contacts, sessions, training, and more through natural language. Prerequisites: Node.js 18+ and an OpenCX API key (created below).Documentation Index
Fetch the complete documentation index at: https://docs.open.cx/llms.txt
Use this file to discover all available pages before exploring further.
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.
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.
Authentication
The MCP server authenticates with a per-organization API key passed through theOPENCX_API_KEY environment variable.
| Variable | Required | Default | Description |
|---|---|---|---|
OPENCX_API_KEY | Yes | — | Your OpenCX API key |
OPENCX_BASE_URL | No | https://api.open.cx | API base URL for self-hosted deployments |
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