Integrations › Gemini CLI

Zapi for Gemini CLI

Add Zapi to Gemini CLI over MCP. Ask in plain words and Gemini finds, inspects and runs the right source.

AI appsettings.jsonMCP
  1. 01
    Add the server

    Add this to ~/.gemini/settings.json with your key. If the file already has mcpServers, add the zapi entry to it.

    {
      "mcpServers": {
        "zapi": {
          "httpUrl": "https://mcp.zapi.ink/mcp",
          "headers": {
            "Authorization": "Bearer zpi_xxx"
          }
        }
      }
    }
  2. 02
    Check the connection

    Start Gemini CLI and type /mcp. zapi is listed with its tools.

    $ gemini
    > /mcp
  3. 03
    Ask for data

    Ask in plain words. Gemini searches the catalogue, reads the endpoint’s inputs and runs it.

    How many followers does @tiktok have on TikTok?

Questions

Why httpUrl and not url?

In Gemini CLI, url is for SSE servers and httpUrl for Streamable HTTP, which is what the Zapi server speaks.

Can I add it to one project only?

Yes. Put the same entry in .gemini/settings.json inside the project instead of your home folder.

Does it work on the Free plan?

Yes. Bulk tools need Ultra or Max; everything else works on every plan, including Free.

Your first call in a minute.

Free key, every source, and the same JSON shape from anywhere.