Zhihu MCP
A simple HTTP API server that allows users to publish articles, create answers, manage columns, and upload images on Zhihu (a Chinese Q&A platform) through straightforward REST API endpoints.
What is Zhihu MCP?
Zhihu MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to simple http api server that allows users to publish articles, create answers, manage columns, and upload images on zhihu (a chinese q&a platform) through straightforward rest api endpoints.
A simple HTTP API server that allows users to publish articles, create answers, manage columns, and upload images on Zhihu (a Chinese Q&A platform) through straightforward REST API endpoints.
This server falls under the Communication and APIs categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A simple HTTP API server that allows users to publish articl
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx zhihu-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Zhihu MCP
zhihu-mcp-server is a Python MCP server that enables AI assistants to publish articles, post answers, manage columns, and upload images on Zhihu — China's largest Q&A and knowledge platform — through a REST API interface. It provides a straightforward HTTP API layer over Zhihu's platform, letting users automate content creation workflows where AI generates the content and the server handles the publishing, all within an MCP-compatible environment.
Prerequisites
- Python 3.10 or higher installed
- Google Chrome browser and ChromeDriver installed (for browser-based automation)
- A Zhihu account with phone-number login capability
- An MCP-compatible client such as Claude Desktop or Cherry Studio
Clone the repository
Clone the zh_mcp_server repository, which powers both the zh-mcp-server and zhihu-mcp-server slugs.
git clone https://github.com/Victorzwx/zh_mcp_server.git
cd zh_mcp_serverInstall dependencies
Install the required Python packages for Selenium automation, HTTP requests, and MCP integration.
pip install -r requirements.txtInstall ChromeDriver
Install the ChromeDriver version that matches your installed Chrome browser version. Check your Chrome version under Help > About Google Chrome.
npx @puppeteer/browsers install [email protected]Save your Zhihu login session
Run the login helper to authenticate with Zhihu. Chrome will open automatically; enter your phone number in the browser, then paste the SMS verification code back into the terminal when prompted.
python -m zh_mcp_server.__login__Add the server to your MCP client config
Configure your MCP client to launch the server as a Python module. Add the following to claude_desktop_config.json or your client's equivalent settings.
{
"mcpServers": {
"zhihu-mcp-server": {
"command": "python",
"args": ["-m", "zh_mcp_server"]
}
}
}Zhihu MCP Examples
Client configuration (Claude Desktop)
Configuration snippet for claude_desktop_config.json to connect Claude Desktop to the Zhihu MCP server.
{
"mcpServers": {
"zhihu-mcp-server": {
"command": "python",
"args": ["-m", "zh_mcp_server"]
}
}
}Prompts to try
Example prompts to use with your AI assistant once the Zhihu MCP server is running.
- "Write a detailed article about Python async programming and publish it to my Zhihu account."
- "Create an answer to the question about best practices for code reviews and post it on Zhihu."
- "Publish a column article about machine learning for beginners on Zhihu."Troubleshooting Zhihu MCP
ChromeDriver version mismatch causes browser launch to fail
Check your exact Chrome version (chrome://settings/help) and reinstall ChromeDriver with that specific version: `npx @puppeteer/browsers install chromedriver@<your-exact-version>`.
Session expires and articles fail to publish
Re-run `python -m zh_mcp_server.__login__` to refresh your Zhihu session cookie. Sessions expire periodically and require periodic re-authentication.
Chinese characters appear garbled in published content
Set PYTHONIOENCODING=utf-8 in the env block of your MCP config and add `--encoding=utf-8` to the args list to force UTF-8 output encoding.
Frequently Asked Questions about Zhihu MCP
What is Zhihu MCP?
Zhihu MCP is a Model Context Protocol (MCP) server that simple http api server that allows users to publish articles, create answers, manage columns, and upload images on zhihu (a chinese q&a platform) through straightforward rest api endpoints. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Zhihu MCP?
Follow the installation instructions on the Zhihu MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Zhihu MCP?
Zhihu MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Zhihu MCP free to use?
Yes, Zhihu MCP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Zhihu MCP Alternatives — Similar Communication Servers
Looking for alternatives to Zhihu MCP? Here are other popular communication servers you can use with Claude, Cursor, and VS Code.
Slack
★ 86.1kEnables interaction with Slack workspaces through comprehensive channel management, messaging, user management, file uploads, and Block Kit formatting. Features secure credential storage via macOS Keychain and supports all major Slack operations incl
LibreChat
★ 37.3kEnhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenA
Note Gen
★ 11.9kA cross-platform Markdown AI note-taking software.
DeepChat
★ 5.8k🐬DeepChat - A smart assistant that connects powerful AI to your personal world
WhatsApp MCP
★ 5.7kConnects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without
Apple
★ 3.1kEnables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.
Browse More Communication MCP Servers
Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Zhihu MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Zhihu MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.