Z.ai2api
Z.ai2api proxies Z.ai to an OpenAI compatible format, enabling various advanced features.
Z.ai2api transforms interactions with Z.ai into a format compatible with OpenAI and Anthropic APIs. It supports a range of functionalities including automatic model selection from a generated list, image uploads for registered users, and intelligent processing of thought chains. The server is designed to enhance user experience by providing seamless integration with multiple models and formats. Built on the foundation of an existing OpenAI-compatible API proxy, Z.ai2api leverages AI-assisted refactoring to improve performance and usability. It allows users to operate in anonymous mode, simplifying access without the need for tokens, although certain features like file uploads are restricted in this mode. The server's configuration is managed through a .env file, ensuring easy customization for different environments.
Compatible with
Install
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"zai2api": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-zai2api"
]
}
}
}Config File Location
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
Some servers require additional setup - check the GitHub README for specific instructions.
Permissions