Skip to content

Installation & Quickstart ​

Requires Node.js >= 20. There is no install step — run directly with npx.

Quickstart (API key) ​

bash
TWENTY_BASE_URL="https://crm.example.com" \
TWENTY_API_KEY="your-api-key" \
npx twenty-crm-mcp
Env varRequiredDescription
TWENTY_BASE_URLfor API-key modeBase URL of your self-hosted Twenty instance, e.g. https://crm.example.com
TWENTY_API_KEYfor API-key modeAn API key created in Twenty under Settings > APIs & Webhooks
TWENTY_CONNECTIONfor OAuth modeName of a connection in your registry (see Connections)

Claude Code / Claude Desktop ​

Add to your MCP config (.mcp.json or claude_desktop_config.json):

json
{
  "mcpServers": {
    "twenty-crm": {
      "command": "npx",
      "args": ["-y", "twenty-crm-mcp"],
      "env": {
        "TWENTY_BASE_URL": "https://crm.example.com",
        "TWENTY_API_KEY": "your-api-key"
      }
    }
  }
}

To sign in as yourself instead of using a shared key, see Authentication.