MCP Evolution API logo

MCP Evolution API

by aiteks-ltda

The MCP Evolution API is a Model Context Protocol (MCP) server for Claude that integrates with the Evolution API for WhatsApp automation. It enables Claude to interact with WhatsApp through the Evolution API, allowing for managing instances, sending messages, and working with contacts and groups.

View on GitHub

Last updated: N/A

MCP Evolution API

A Model Context Protocol (MCP) server for Claude that integrates with Evolution API for WhatsApp automation.

Overview

This MCP server allows Claude to interact with WhatsApp through the Evolution API, enabling capabilities like:

  • Managing WhatsApp instances
  • Sending various types of messages
  • Working with contacts and groups
  • Configuring webhooks and settings

šŸ“‚ Project Structure

mcp-evo-api/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ tools/          # MCP tools implementation for Evolution API
│   ā”œā”€ā”€ utils/          # Shared utilities, including Evolution API client
│   ā”œā”€ā”€ main.ts         # Server entry point
│   └── types.ts        # Shared type definitions
ā”œā”€ā”€ scripts/            # Helper scripts
ā”œā”€ā”€ biome.json          # Linting configuration
ā”œā”€ā”€ tsconfig.json       # TypeScript configuration
ā”œā”€ā”€ docker-compose.yml  # Docker Compose configuration
ā”œā”€ā”€ Dockerfile          # Docker build configuration
└── package.json        # Project dependencies

šŸš€ Quick Setup

Environment Setup

Create a .env file with your Evolution API credentials:

EVOLUTION_API_URL=https://your-evolution-api-server.com
EVOLUTION_API_KEY=your-api-key-here

šŸ“‹ Deployment Options

| Environment | Steps | Command | |-------------|-------|---------| | Local Development | 1. Clone and install<br>2. Run in dev mode | git clone https://github.com/aiteks-ltda/mcp-evo-api.git && cd mcp-evo-api && bun install<br>bun run dev | | Local Production | 1. Clone and install<br>2. Build and run | git clone https://github.com/aiteks-ltda/mcp-evo-api.git && cd mcp-evo-api && bun install<br>bun run build && bun run dist/main.js | | Docker Compose | Run with Docker Compose | git clone https://github.com/aiteks-ltda/mcp-evo-api.git && cd mcp-evo-api<br>docker-compose up -d | | Docker | Build and run container | docker run -d -p 3000:3000 -e EVOLUTION_API_URL=yoururl -e EVOLUTION_API_KEY=yourkey --name mcp-evo-api ghcr.io/aiteks-ltda/mcp-evo-api:latest |

Claude Desktop Configuration

Add this to your Claude Desktop config file (typically located at ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "evo-api": {
      "command": "node",
      "args": [
        "/path/to/your/mcp-evo-api/dist/main.js"
      ]
    }
  }
}

If using the Docker deployment:

{
  "mcpServers": {
    "evo-api": {
      "url": "http://localhost:3000"
    }
  }
}

šŸ“Š Implementation Status

| Category | Implemented | Pending Implementation | |----------|-------------|------------------------| | Core API | āœ… Get Information<br>āœ… Create Instance<br>āœ… Fetch Instances<br>āœ… Instance Connect<br>āœ… Restart Instance<br>āœ… Connection State<br>āœ… Logout Instance<br>āœ… Delete Instance<br>āœ… Set Presence | āŒ Check is WhatsApp | | Webhook & Settings | āœ… Set Webhook<br>āœ… Find Webhook<br>āœ… Set Settings<br>āœ… Find Settings | | | Messaging | āœ… Send Plain Text<br>āœ… Send Status<br>āœ… Send Media<br>āœ… Send WhatsApp Audio<br>āœ… Send Sticker<br>āœ… Send Location<br>āœ… Send Contact<br>āœ… Send Reaction<br>āœ… Send Poll<br>āœ… Send List<br>āœ… Send Buttons | āŒ Mark Message As Read<br>āŒ Mark Message As Unread<br>āŒ Archive Chat<br>āŒ Delete Message for Everyone<br>āŒ Update Message<br>āŒ Send Presence (Chat Ctrl) | | Chat & Contacts | āœ… Find Contacts<br>āœ… Find Chats | āŒ Update Block Status<br>āŒ Fetch Profile Picture URL<br>āŒ Get Base64<br>āŒ Find Messages<br>āŒ Find Status Message | | Groups | āœ… Find Group by JID<br>āœ… Fetch All Groups<br>āœ… Find Group Members | āŒ Create Group<br>āŒ Update Group Picture<br>āŒ Update Group Subject<br>āŒ Update Group Description<br>āŒ Fetch Invite Code<br>āŒ Revoke Invite Code<br>āŒ Send Group Invite<br>āŒ Find Group by Invite Code<br>āŒ Update Group Members<br>āŒ Update Group Setting<br>āŒ Toggle Ephemeral<br>āŒ Leave Group | | Profile Settings | | āŒ Fetch Business Profile<br>āŒ Fetch Profile<br>āŒ Update Profile Name<br>āŒ Update Profile Status<br>āŒ Update Profile Picture<br>āŒ Remove Profile Picture<br>āŒ Fetch Privacy Settings<br>āŒ Update Privacy Settings | | Bot Integrations | | āŒ Typebot Integrations<br>āŒ OpenAI Integrations<br>āŒ Evolution Bot<br>āŒ Dify Bot<br>āŒ Flowise Bot | | Other Integrations | | āŒ Chatwoot<br>āŒ Websocket<br>āŒ SQS<br>āŒ RabbitMQ |

For more information, refer to the Evolution API Documentation.