Zihin

v2.3.0
ai.zihin/mcp-server Checked 4 days ago Published 10 days ago

Build, operate and chat with Zihin.ai agents.

Values you need

VariableWhat it is
ZIHIN_API_KEYrequired secret Zihin API Key (zhn_live_*, zhn_test_* or zhn_dev_*), from the Zihin console

npm (npx)

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-server -e 'ZIHIN_API_KEY=<ZIHIN_API_KEY>' -- npx -y --package=@zihin/mcp-server@2.3.0 zihin-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "--package=@zihin/mcp-server@2.3.0",
        "zihin-mcp"
      ],
      "command": "npx",
      "env": {
        "ZIHIN_API_KEY": "<ZIHIN_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "--package=@zihin/mcp-server@2.3.0",
        "zihin-mcp"
      ],
      "command": "npx",
      "env": {
        "ZIHIN_API_KEY": "<ZIHIN_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "ZIHIN_API_KEY",
      "id": "zihin-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-server": {
      "args": [
        "-y",
        "--package=@zihin/mcp-server@2.3.0",
        "zihin-mcp"
      ],
      "command": "npx",
      "env": {
        "ZIHIN_API_KEY": "${input:zihin-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "--package=@zihin/mcp-server@2.3.0", "zihin-mcp"]
env = { "ZIHIN_API_KEY" = "<ZIHIN_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http mcp-server https://llm.zihin.ai/mcp --header 'X-Api-Key: <X-Api-Key>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "mcp-remote",
        "https://llm.zihin.ai/mcp",
        "--header",
        "X-Api-Key: <X-Api-Key>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "headers": {
        "X-Api-Key": "<X-Api-Key>"
      },
      "url": "https://llm.zihin.ai/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-server": {
      "headers": {
        "X-Api-Key": "<X-Api-Key>"
      },
      "type": "http",
      "url": "https://llm.zihin.ai/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "mcp-remote", "https://llm.zihin.ai/mcp", "--header", "X-Api-Key: <X-Api-Key>"]

For AI agents

  1. Ask the user for: ZIHIN_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json