con un clic
easy-api-mcp
// Teaches AI agents how to connect to the open-wa hosted MCP surface via Easy API.
// Teaches AI agents how to connect to the open-wa hosted MCP surface via Easy API.
| name | easy-api-mcp |
| description | Teaches AI agents how to connect to the open-wa hosted MCP surface via Easy API. |
This skill teaches AI agents how to connect to and use the open-wa MCP integration hosted through Easy API.
open-wa exposes a hosted MCP endpoint that wraps every Easy API method as a discoverable MCP tool. This is the recommended surface for AI agent integration.
The MCP endpoint uses Streamable HTTP transport — a single endpoint handles all operations:
POST /mcp — JSON-RPC messages (initialize, tools/list, tools/call)GET /mcp — Server-initiated SSE stream when neededDELETE /mcp — Session terminationEvery request must include your Easy API key. Without it, you get 401 Unauthorized.
Methods to provide the key:
X-API-Key: YOUR_API_KEYClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"open-wa": {
"url": "http://localhost:8080/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Cursor / Windsurf: Add MCP server with URL http://localhost:8080/mcp and set X-API-Key header. Note: Cursor currently calls Streamable HTTP by the name "SSE" in its UI dropdown.
| Scenario | Use |
|---|---|
| AI agent interacting with WhatsApp | Hosted MCP (this) |
| Local CLI tool or IDE integration | Hosted MCP via Streamable HTTP |
| Custom SDK integration in your own app | createClient() directly (no MCP) |
Tools are namespaced:
messages.sendText — Send a text messagechats.getAll — Get all chatsgroups.create — Create a groupUse tools/list (MCP protocol) to discover all available tools.
For debugging, visit /meta/mcp-tools.json on the API host.
createClient().apiKey. No key = server refuses to start.Your API key is missing or wrong. Verify:
apiKey in config.jsonX-API-Key header with the correct valuemcp.enabled is trueMCP requires Easy API apiKey. Refusing to start with MCP enabled and no apiKey configured.
Set apiKey in your config before enabling MCP.
The schema registry has no methods registered. The open-wa runtime may not have fully initialized.
The WhatsApp session isn't ready yet. Wait for the session to be fully connected before calling tools.