twentycrm-graphql-mcp
v0.0.9
Published
MCP server for Twenty CRM GraphQL API
Downloads
756
Maintainers
Readme
twentycrm-graphql-mcp
An MCP (Model Context Protocol) server for Twenty CRM that exposes GraphQL tools to AI assistants.
Usage
Run directly with npx (no install required):
TWENTY_API_TOKEN=your_token npx twentycrm-graphql-mcpEnvironment Variables
| Variable | Required | Description |
|---|---|---|
| TWENTY_API_TOKEN | Yes | Your Twenty API token (Settings > API & Webhooks) |
| TWENTY_GQL_URL | No | Your Twenty instance's GraphQL endpoint. For cloud-hosted, it's https://[your-org].twenty.com/graphql. For self-hosted, it's https://[your-domain]/graphql. |
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"twentycrm": {
"command": "npx",
"args": ["-y", "twentycrm-graphql-mcp"],
"env": {
"TWENTY_API_TOKEN": "your_token_here",
"TWENTY_GQL_URL": "https://your-instance.com/graphql"
}
}
}
}Available Tools
inspect_schema
Lists all objects and fields in your workspace, including custom fields.
execute_graphql
Run any raw GraphQL query or mutation against Twenty.
Parameters:
query(string, required): The GraphQL query or mutationvariables(object, optional): Variables for the query
execute_metadata
Run any raw GraphQL query or mutation against the Twenty Metadata API (schema management: custom objects, fields, relations).
Parameters:
query(string, required): The GraphQL query or mutationvariables(object, optional): Variables for the query
