Skip to content
Gemini CLI

mcp z api for Gemini CLI

io.github.codespar/mcp-z-api

MCP server for Z-API — WhatsApp messaging, contacts, media

client:Gemini CLI transport:stdio runtime:npm

Install mcp z api in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "mcp-z-api": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-z-api"
      ],
      "env": {
        "ZAPI_TOKEN": "<ZAPI_TOKEN>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

mcp z api in other clients