Skip to main content
EV

Evolution API

v0.2.1API Key

WhatsApp multi-device with QR code pairing. Messaging, groups, status updates, and contacts -- self-hosted friendly.

25 tools1 env varsπŸ‡§πŸ‡· Brazilstable on npm

What your agent can do

Evolution API gives your agent 25 tools it calls directly β€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • send_text β€” Send a text message via WhatsApp
  • send_image β€” Send an image message via WhatsApp
  • send_document β€” Send a document via WhatsApp
Example call
// Your agent calls a tool directly β€” no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("send_text", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-evolution-api

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "evolution-api": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-evolution-api"
      ],
      "env": {
        "EVOLUTION_API_KEY": "<your_evolution_api_key>"
      }
    }
  }
}

After restart, your agent can call any of the 25 tools below β€” try send_text first.

Environment variables Β· 1

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

EVOLUTION_API_KEY
requiredsecret

API key for evolution-api

Available tools Β· 25

Each tool is independent β€” your agent loads only what it needs to reduce context and response time.

WRITEsend_text
Send a text message via WhatsApp
WRITEsend_image
Send an image message via WhatsApp
WRITEsend_document
Send a document via WhatsApp
READget_instances
List all WhatsApp instances
WRITEcreate_instance
Create a new WhatsApp instance
READget_qrcode
Get QR code for instance pairing
READget_contacts
Get contacts from an instance
WRITEsend_poll
Send a poll message via WhatsApp

Compatible frameworks

MCP is a protocol β€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-evolution-api` and add the config block above to your MCP client β€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
Evolution API β€” MCP server Β· 25 tools | CodeSpar