Twenty CRM MCP Server
Enables 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.
README
Twenty CRM + MCP Server
Solução completa que combina o Twenty CRM com um MCP Server (Model Context Protocol) para integração avançada.
O que é?
Este projeto fornece uma stack containerizada que inclui:
- Twenty CRM - Plataforma de CRM moderna e extensível
- Twenty Worker - Processador de tarefas assíncronas
- MCP Server - Servidor Model Context Protocol para integração com IA e automações
Versão 0.2.0
O MCP Server foi refatorado com base no schema OpenAPI atual da aplicação Twenty CRM.
Principais Mudanças
Stack de Componentes
A arquitetura do projeto é composta por 3 serviços containerizados:
-
ambienz-twenty-server - Twenty CRM (porta 3000)
- Servidor principal da aplicação CRM
- Interface web para gestão de clientes
- API REST integrada
-
ambienz-twenty-worker - Twenty Worker
- Processador de jobs assíncronos
- Automações e workflows
- Integração com Redis
-
ambienz-twenty-mcp-server - MCP Server (porta 3001)
- Servidor Protocol Model Context
- Integração com IA e automações inteligentes
- Gerenciamento de ferramentas e contexto
Base URL Atualizada
- Agora usa
https://twenty.ambienz.com.br/restpor padrão - Endpoints seguem o padrão REST do Twenty CRM
Objetos Suportados
-
People - Gestão de pessoas
list_people,create_person,get_person,update_person,delete_person- Campos atualizados:
name(objeto),emails(objeto),phones(objeto),linkedinLink,xLink
-
Companies - Gestão de empresas
list_companies,create_company,get_company,update_company,delete_company- Campos brasileiros:
cnpj,razaoSocial
-
Opportunities - Gestão de oportunidades
list_opportunities,create_opportunity,get_opportunity,update_opportunity,delete_opportunity- Campos:
amount(objeto),closeDate,stage,companyId,pointOfContactId
-
Notes - Gestão de notas
list_notes,create_note,get_note,update_note,delete_note- Campos:
title,body,position
-
Tasks - Gestão de tarefas
list_tasks,create_task,get_task,update_task,delete_task- Campos:
title,body,dueAt,status,assigneeId
-
Conversas - Objeto customizado
list_conversas,create_conversa,get_conversa,update_conversa,delete_conversa- Campos:
name,conversasId,agent,lead
-
Faturas - Objeto customizado
list_faturas,create_fatura,get_fatura,update_fatura,delete_fatura- Campos:
name,status
Paginação e Filtros
Todos os endpoints de listagem agora suportam:
filter- Query JSON para filtrosorderBy- Ordenação por campolimit- Limite de resultados (max 100)depth- Profundidade de relaçõesstartingAfter/endingBefore- Cursores de paginação
Uso
# Configurar variáveis de ambiente
export TWENTY_API_KEY="your-api-key"
export TWENTY_BASE_URL="https://twenty.ambienz.com.br/rest"
export PORT=3000
# Executar servidor
node mcp/index.js
Deployment com Docker Compose
Para deployar a stack completa localmente:
# Copiar arquivo de ambiente
cp .env.example .env
# Iniciar todos os serviços
docker-compose up -d
# Verificar status
docker-compose ps
# Ver logs
docker-compose logs -f ambienz-twenty-mcp-server
O serviço Twenty CRM estará disponível na URL configurada (ex: https://twenty.ambienz.com.br) e o MCP Server na porta 3001.
Endpoints
GET /health- Health checkPOST /tools/:toolName- Executar ferramenta específicaPOST /mcp- Endpoint MCP via Server-Sent Events
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.