The Z.ai2api Model Context Protocol (MCP) server provides seamless integration between AI assistants (such as Claude Desktop, Cursor, and Claude Code) and 将 Z.ai Chat 代理为 OpenAI/Anthropic Compatible 格式,支持多模型列表映射、免令牌、智能处理思考链、图片上传等功能;Z.ai ZtoApi z2api ZaitoApi zai X-Signature 签名 GLM 4.5 v 4.6. By connecting this server, your AI agent gains specialized capabilities to inspect, query, and automate tasks within the AI/LLM domain.
Once installed in Claude Desktop or Cursor, try asking your assistant:
Copy the config for your editor. Verify environment variables or setup notes in the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"z.ai2api": {
"command": "uvx",
"args": [
"z.ai2api"
]
}
}
}
Or install with pip: pip install z.ai2api