Twenty MCP Server (v1.19 Fork)
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Twenty MCP Server (v1.19 Fork)
A Model Context Protocol server for Twenty CRM, forked from jezweb/twenty-mcp and patched for compatibility with Twenty v1.19.0 self-hosted instances.
What's Different in This Fork
The upstream MCP server targets Twenty Cloud and newer versions. Self-hosted Twenty v1.19.0 has several GraphQL API differences that cause widespread failures. This fork fixes all of them:
Issue | Upstream | This Fork |
Mutation ID types |
|
|
Task/Note body field |
|
|
Metadata API | GraphQL |
|
Pagination |
| Removed (v1.19 is cursor-based only) |
Comments |
| Creates a Note as workaround |
Singular queries |
|
|
Contact updates | Passes flat fields directly | Transforms to nested structure ( |
SELECT field options | No position field | Auto-adds |
Relation payloads |
|
|
Schema management | Not supported | 7 new tools for custom objects, fields, and relations |
Result: 41 tools, all passing on Twenty v1.19.0.
Related MCP server: Twenty MCP Server
Tools (41)
Contacts (5)
Tool | Description |
| Create a person with name, email, phone, company, job title |
| Retrieve a contact by ID |
| Update any contact field (name, email, phone, company, etc.) |
| Delete a contact |
| Search by name or email |
Companies (5)
Tool | Description |
| Create with name, domain, address, employees, revenue |
| Retrieve a company by ID |
| Update any company field |
| Delete a company |
| Search by name or domain |
Opportunities (6)
Tool | Description |
| Create a deal with amount, stage, company, contact |
| Retrieve an opportunity by ID |
| Update stage, amount, dates, linked entities |
| Delete an opportunity |
| Filter by name, stage, amount range, date range, company |
| Pipeline view grouped by sales stage with totals |
Tasks & Notes (5)
Tool | Description |
| Create with title, body, status (TODO/IN_PROGRESS/DONE), assignee |
| List all tasks |
| Delete a task |
| Create a note with title and body |
| Delete a note |
Activities (4)
Tool | Description |
| Unified timeline of tasks + notes, sorted by date |
| Filter by type, date range, author, status |
| Get activities for a specific person/company/opportunity |
| Add a comment (creates a note as workaround for v1.19) |
Relationships (6)
Tool | Description |
| List all people at a company |
| List opportunities where person is point of contact |
| Link a deal to a company and/or contact |
| Move a person from one company to another |
| Count all connections for a company or person |
| Find companies without contacts, contacts without companies |
Schema Discovery (3)
Tool | Description |
| List all entity types (standard + custom) with counts |
| Full field list for any object with types and descriptions |
| Detailed field info filtered by object, type, custom/system |
Schema Management (7) -- New in this fork
Tool | Description |
| Define a new entity type (e.g. Vehicle, Project) |
| Change label, description, icon, active status |
| Remove a custom object (delete relations first) |
| Add a field to any object (TEXT, NUMBER, SELECT, etc.) |
| Modify field label, description, icon, defaults |
| Remove a custom field |
| Link two objects (ONE_TO_MANY, MANY_TO_ONE, MANY_TO_MANY) |
Setup
Prerequisites
Node.js 18+
A self-hosted Twenty CRM instance (v1.19.x)
A Twenty API key (Settings > API & Webhooks > Generate API Key)
Install
git clone https://github.com/Praeses0/twenty-mcp-server.git ~/Projects/twenty-mcp-server
cd ~/Projects/twenty-mcp-server
npm install
npm run buildConfigure for Claude Code
Add to ~/.claude.json under mcpServers:
{
"twenty-crm": {
"type": "stdio",
"command": "node",
"args": ["/path/to/twenty-mcp-server/dist/index.js"],
"env": {
"TWENTY_API_KEY": "your-api-key-here",
"TWENTY_BASE_URL": "https://your-twenty-instance.example.com",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}Set
NODE_TLS_REJECT_UNAUTHORIZED=0only if your instance uses a self-signed certificate. Remove it for properly signed certs.
Configure for Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"twenty-crm": {
"command": "node",
"args": ["/path/to/twenty-mcp-server/dist/index.js"],
"env": {
"TWENTY_API_KEY": "your-api-key-here",
"TWENTY_BASE_URL": "https://your-twenty-instance.example.com"
}
}
}
}Verify
Restart your MCP client (Claude Code, Claude Desktop, etc.) and test:
"Search for companies named Acme in my CRM"
"Create a new contact: John Doe, john@example.com, at Acme Corp"
"Show me the pipeline — list opportunities by stage"
"What custom objects do I have?"Field Type Reference
When creating custom fields with create_custom_field, these types are available:
Type | Description | Notes |
| Single-line text | |
| Numeric value | |
| True/false | |
| Date only | |
| Date and time | |
| Email address | |
| Phone number | |
| Money amount | Stores as micros (1M = $1) |
| Single URL | |
| Multiple URLs | |
| Full address | Composite: street, city, state, country, zip |
| Star rating | |
| Single choice | Requires |
| Multiple choices | Same options format as SELECT |
| Formatted text | Stored as BlockNote JSON |
| Sort order | |
| Arbitrary JSON | |
| Link to another object | Use |
SELECT/MULTI_SELECT Options Format
{
"options": [
{"label": "Hot", "value": "HOT", "color": "red"},
{"label": "Warm", "value": "WARM", "color": "yellow"},
{"label": "Cold", "value": "COLD", "color": "blue"}
]
}Position is auto-added based on array order. Colors: green, blue, red, yellow, purple, orange, pink, gray.
Architecture
src/
client/
twenty-client.ts # GraphQL client — all API calls (data + metadata)
tools/
index.ts # Contact, company, task, note, relationship tools
opportunities.ts # Opportunity CRUD + pipeline tools
activities.ts # Timeline, filtering, comments, entity activities
metadata.ts # Schema discovery + schema management tools
types/
twenty.ts # Core type definitions
opportunities.ts # Opportunity types
activities.ts # Activity/comment types
metadata.ts # Object/field metadata types
relationships.ts # Relationship types
index.ts # MCP server entry pointThe client uses two GraphQL endpoints:
/graphqlfor data operations (CRUD on records)/metadatafor schema operations (objects, fields, relations)
Known Limitations
Comments: Twenty v1.19 doesn't have a Comment entity via GraphQL.
create_commentcreates a Note as a workaround.Batch operations: Not implemented. Use individual CRUD tools.
Deleting objects with relations: You must delete relation fields before deleting the object.
Activities:
get_entity_activitiesreturns all activities, not just those linked to the specific entity (Twenty v1.19 limitation in the GraphQL schema).Search pagination: Uses
first/aftercursor-based pagination. Theoffsetparameter on search tools is accepted but not used (Twenty v1.19 doesn't supportskip).
Development
npm install # Install dependencies
npm run build # Compile TypeScript
npm run dev # Watch mode
npm test # Run tests
npm run lint # Lint
npm run typecheck # Type check without emittingCredits
Forked from jezweb/twenty-mcp
Twenty CRM — open-source CRM
Model Context Protocol — by Anthropic
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Open-source CRM for AI agents: humans, orgs, interactions, deals, tasks, links and an activity log.
Open-source CRM your AI agents can write to: companies, people, opportunities, tasks and notes.
Create contacts, move deals, send proposals and invoices, read your inbox, from Claude or ChatGPT.
Streamline your Attio workflows using natural language to search, create, update, and organize com…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Twenty CRM through a Model Context Protocol server. Provides comprehensive CRM operations including managing people, companies, opportunities, notes, tasks, and custom objects with support for filtering, pagination, and AI-powered automations.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Twenty CRM for managing contacts, companies, opportunities, tasks, and activities through natural language commands with full TypeScript support and OAuth 2.1 authentication.105 npm53MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to interact with Twenty CRM data through GraphQL and REST APIs to manage persons, companies, opportunities, and tasks. It supports both core entities and custom objects, providing a comprehensive interface for CRM automation.ISC
- AlicenseNot gradedqualityDmaintenanceEnables integration with Twenty CRM, allowing users to manage contacts, tasks, notes, and other CRM data through natural language commands.14MIT