A stdio-to-HTTP bridge to Zihin.ai for building and running agents: manage agents, schemas, triggers, budgets and approvals, run diagnostics and chat with agents.
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add zihin --env ZIHIN_API_KEY='<ZIHIN_API_KEY>' -- npx -y @zihin/mcp-server~/.codex/config.toml
[mcp_servers.zihin]
command = "npx"
args = ["-y", "@zihin/mcp-server"]
env = { ZIHIN_API_KEY = "<ZIHIN_API_KEY>" }
# codex mcp add zihin --env ZIHIN_API_KEY='<ZIHIN_API_KEY>' -- npx -y @zihin/mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"zihin": {
"command": "npx",
"args": [
"-y",
"@zihin/mcp-server"
],
"env": {
"ZIHIN_API_KEY": "<ZIHIN_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"zihin": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@zihin/mcp-server"
],
"env": {
"ZIHIN_API_KEY": "<ZIHIN_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"zihin": {
"command": "npx",
"args": [
"-y",
"@zihin/mcp-server"
],
"env": {
"ZIHIN_API_KEY": "<ZIHIN_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"zihin": {
"command": "npx",
"args": [
"-y",
"@zihin/mcp-server"
],
"env": {
"ZIHIN_API_KEY": "<ZIHIN_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"zihin": {
"command": "npx",
"args": [
"-y",
"@zihin/mcp-server"
],
"env": {
"ZIHIN_API_KEY": "<ZIHIN_API_KEY>"
}
}
}
}Remote
claude mcp add --transport http zihin https://llm.zihin.ai/mcp --header 'X-Api-Key: <X_API_KEY>'~/.codex/config.toml
[mcp_servers.zihin]
url = "https://llm.zihin.ai/mcp"
http_headers = { X-Api-Key = "<X_API_KEY>" }
# codex mcp add zihin --url https://llm.zihin.ai/mcp~/.cursor/mcp.json
{
"mcpServers": {
"zihin": {
"url": "https://llm.zihin.ai/mcp",
"headers": {
"X-Api-Key": "<X_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"zihin": {
"type": "http",
"url": "https://llm.zihin.ai/mcp",
"headers": {
"X-Api-Key": "<X_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"zihin": {
"httpUrl": "https://llm.zihin.ai/mcp",
"headers": {
"X-Api-Key": "<X_API_KEY>"
}
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"zihin": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://llm.zihin.ai/mcp",
"--header",
"X-Api-Key:<X_API_KEY>"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"zihin": {
"url": "https://llm.zihin.ai/mcp",
"headers": {
"X-Api-Key": "<X_API_KEY>"
}
}
}
}Environment variables
ZIHIN_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.