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.
Learn to connect to MCP servers over HTTP with Python SDK using SSE for efficient protocol communication
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Python MCP client for testing servers avoid message limits and customize with API key
Discover easy deployment and management of MCP servers with Glutamate platform for Windows Linux Mac
Learn how to use MCProto Ruby gem to create and chain MCP servers for custom solutions
Explore community contributions to MCP including clients, servers, and projects for seamless integration