- Notifications
You must be signed in to change notification settings - Fork1
EvolutionAPI/chatwoot_mcp
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Este é um servidor MCP (Model Context Protocol) que fornece ferramentas para interagir com a API do Chatwoot.
chatwoot_setup: Configura a conexão com o Chatwoot- Parâmetros:
baseUrl: URL base da sua instalação do ChatwootapiToken: Token de API do Chatwoot
- Parâmetros:
chatwoot_list_inboxes: Lista todas as caixas de entrada- Sem parâmetros
chatwoot_list_conversations: Lista conversas- Parâmetros opcionais:
inbox_id: ID da caixa de entradastatus: Status das conversas ("open", "resolved", "pending")
- Parâmetros opcionais:
chatwoot_send_message: Envia uma mensagem- Parâmetros:
conversation_id: ID da conversamessage: Conteúdo da mensagemmessage_type: Tipo da mensagem ("incoming" ou "outgoing")
- Parâmetros:
chatwoot_update_conversation: Atualiza o status de uma conversa- Parâmetros:
conversation_id: ID da conversastatus: Novo status ("open", "resolved", "pending")
- Parâmetros:
- Clone o repositório
- Instale as dependências:
npm install
- Inicie o servidor de desenvolvimento:
npm run start
- Clone o repositório
- Construa e inicie os containers:
docker-compose up -d
O servidor estará disponível emhttp://localhost:8787/sse.
- Conecte-se ao servidor usando a URL:
http://seu-servidor:8787/sse - Configure o cliente usando a ferramenta
chatwoot_setup - Comece a usar as outras ferramentas disponíveis
// Configurar o clienteawaitmcp.invoke("chatwoot_setup",{baseUrl:"https://seu-chatwoot.com",apiToken:"seu-token-api"});// Listar caixas de entradaconstinboxes=awaitmcp.invoke("chatwoot_list_inboxes");// Listar conversas abertasconstconversations=awaitmcp.invoke("chatwoot_list_conversations",{status:"open"});// Enviar mensagemawaitmcp.invoke("chatwoot_send_message",{conversation_id:123,message:"Olá! Como posso ajudar?",message_type:"outgoing"});
To explore your new MCP api, you can use theMCP Inspector.
- Start it with
npx @modelcontextprotocol/inspector - Within the inspector, switch the Transport Type to
SSEand enterhttp://localhost:8787/sseas the URL of the MCP server to connect to, and click "Connect" - You will navigate to a (mock) user/password login screen. Input any email and pass to login.
- You should be redirected back to the MCP Inspector and you can now list and call any defined tools!
The MCP inspector is great, but we really want to connect this to Claude! FollowAnthropic's Quickstart and within Claude Desktop go to Settings > Developer > Edit Config to find your configuration file.
Open the file in your text editor and replace it with this configuration:
{"mcpServers": {"chatwoot": {"description":"Servidor MCP para integração com Chatwoot","command":"npx","args": ["mcp-remote","https://mcp-chatwoot.stacklab.digital/sse" ],"enabled":true } }}This will run a local proxy and let Claude talk to your MCP server over HTTP
When you open Claude a browser window should open and allow you to login. You should see the tools available in the bottom right. Given the right prompt Claude should ask to call the tool.
npx wrangler kv namespace create OAUTH_KV- Follow the guidance to add the kv namespace ID to
wrangler.jsonc npm run deploy
Just like you did above in "Develop locally", run the MCP inspector:
npx @modelcontextprotocol/inspector@latest
Then enter theworkers.dev URL (ex:worker-name.account-name.workers.dev/sse) of your Worker in the inspector as the URL of the MCP server to connect to, and click "Connect".
You've now connected to your MCP server from a remote MCP client.
Update the Claude configuration file to point to yourworkers.dev URL (ex:worker-name.account-name.workers.dev/sse) and restart Claude
{"mcpServers": {"chatwoot": {"description":"Servidor MCP para integração com Chatwoot","command":"npx","args": ["mcp-remote","https://mcp-chatwoot.stacklab.digital/sse" ],"enabled":true } }}Should anything go wrong it can be helpful to restart Claude, or to try connecting directly to yourMCP server on the command line with the following command.
npx mcp-remote https://mcp-chatwoot.stacklab.digital/sse
In some rare cases it may help to clear the files added to~/.mcp-auth
rm -rf~/.mcp-authAbout
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- TypeScript93.8%
- Dockerfile6.2%



