Zh_mcp_server enables automated article posting on Zhihu using a model protocol with setup and debugging instructions
Zh_MCP_Server is a specialized MCP (Model Context Protocol) server designed to facilitate interaction between AI applications and the Zhihu platform, enabling seamless article generation and publishing. This server provides an easy-to-use interface for AI model integrations like Claude Desktop, Continue, Cursor, among others, by leveraging the Model Context Protocol.
Zh_MCP_Server offers a powerful core set of features that ensures compatibility and functionality with multiple AI applications. The primary capability lies in its ability to connect various AI models through the Model Context Protocol, providing them access to the Zhihu platform's rich API ecosystem for content creation.
The server supports advanced configurations tailored to specific use cases, ensuring seamless integration and enhanced performance. Developers can easily deploy this server within their existing infrastructure by following a simple installation process outlined in the documentation.
The architecture of Zh_MCP_Server is built around the Model Context Protocol, which standardizes communication between AI applications and data sources/tools. This protocol ensures consistency across various backend environments, enabling robust performance and reliability in content generation workflows.
graph TB
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Zhihu API/Service]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
graph TD
subgraph InputData
A[User Prompt] --> B[MCP Server]
end
C[Zhihu API/Service] -->|Content| D[ZHIHU Posting Interface]
E[MCP Server] --> F[AI Response]
style InputData fill:#e1f5fe
style ZHIHU Posting Interface fill:#e8f5e8
Option 1:
requirements.txt:
Install dependencies via pip:
pip install -r requirements.txt
Then, install ChromeDriver based on the specific version for your browser (e.g., @puppeteer/browsers install [email protected]).
Option 2:
setup_environment.py which may require manual verification of ChromeDriver compatibility.git https://github.com/Victorzwx/zh_mcp_server.git
Run the initialization script to save your personal cookie:
python -m zh_mcp_server.__login__
Note: This will automatically open a Chrome browser. Follow verification instructions within the browser and input received code in Terminal.
Refer to the provided configuration example:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
| MCP Client | Resources | Tools | Prompts |
|---|---|---|---|
| Claude Desktop | ✅ | ✅ | ✅ |
| Continue | ✅ | ✅ | ✅ |
| Cursor | ❌ | ✅ | ❌ |
If you need to debug the server operation or manipulate browser actions, disable headless mode:
poster = ZhuHuPoster(path, headless=False) # For debugging purposes only
This can be found in server.py.
requirements.txt, and install ChromeDriver correctly.Contributions are always welcome! Follow our Contribution Guide for detailed steps on how you can help improve the project:
Connect with us and other developers across various platforms to stay updated and contribute to the growing MCP community:
By utilizing Zh_MCP_Server, developers can streamline their AI application integration process for the Zhihu platform. This comprehensive guide aims to demystify MCP protocol usage and provide actionable insights into its implementation in AI workflows.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration