mcp-evolution-whatsapp-api

mcp-evolution-whatsapp-api

12

This project is an MCP server that allows interaction with WhatsApp through the Evolution API, facilitating message management and contact interaction. It provides comprehensive features for instance management and messaging capabilities.

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

EnvironmentStepsCommand
Local Development1. Clone and install
2. Run in dev mode
git clone https://github.com/aiteks-ltda/mcp-evo-api.git && cd mcp-evo-api && bun install
bun run dev
Local Production1. Clone and install
2. Build and run
git clone https://github.com/aiteks-ltda/mcp-evo-api.git && cd mcp-evo-api && bun install
bun run build && bun run dist/main.js
Docker ComposeRun with Docker Composegit clone https://github.com/aiteks-ltda/mcp-evo-api.git && cd mcp-evo-api
docker-compose up -d
DockerBuild and run containerdocker 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

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

For more information, refer to the Evolution API Documentation.