Zhihu Auto Publish MCP
知乎自动发文章MCP服务,一种用于知乎发文章的模型上下文协议(MCP)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。基于selenium和ChromeDriver实现自动发文章。
What is Zhihu Auto Publish MCP?
Zhihu Auto Publish MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 知乎自动发文章mcp服务,一种用于知乎发文章的模型上下文协议(mcp)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。基于selenium和chromedriver实现自动发文章。
知乎自动发文章MCP服务,一种用于知乎发文章的模型上下文协议(MCP)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。基于selenium和ChromeDriver实现自动发文章。
This server falls under the Communication and Business Applications categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 知乎自动发文章MCP服务,一种用于知乎发文章的模型上下文协议(MCP)服务器,使用者可以通过该服务与大模型自动生成文章并
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx zh-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Zhihu Auto Publish MCP
zh_mcp_server is a Python-based MCP server that automates publishing articles to Zhihu (知乎), China's leading Q&A and knowledge-sharing platform. It uses Selenium and ChromeDriver to drive a real Chrome browser session, allowing AI assistants to generate full articles and post them directly to your Zhihu account without manual intervention. This is the tool to use when you want an end-to-end workflow from AI content generation to live Zhihu publication.
Prerequisites
- Python 3.10 or higher installed
- Google Chrome browser installed on your machine
- ChromeDriver matching your Chrome version (installed via npx @puppeteer/browsers install chromedriver@<version>)
- A Zhihu account with phone-number login capability
- An MCP client such as Claude Desktop or Cherry Studio
Clone the repository
Download the source code from GitHub to your local machine so you can install and run the server.
git clone https://github.com/Victorzwx/zh_mcp_server.git
cd zh_mcp_serverInstall Python dependencies
Install all required packages including selenium, requests, mcp, and webdriver-manager from the requirements file.
pip install -r requirements.txtInstall ChromeDriver
Install the ChromeDriver version that matches your installed Chrome browser. Replace 134.0.6998.166 with your actual Chrome version number, which you can find in Chrome under Help > About Google Chrome.
npx @puppeteer/browsers install [email protected]Save your Zhihu login cookie
Run the login helper, which will open Chrome, prompt you to enter your phone number, then wait for you to paste the SMS verification code into the terminal. This saves your session cookie locally so subsequent runs do not require re-login.
python -m zh_mcp_server.__login__Configure your MCP client
Add the server to your MCP client configuration file (e.g., claude_desktop_config.json for Claude Desktop, or the equivalent for Cherry Studio). The server is launched as a Python module.
{
"mcpServers": {
"zh_mcp_server": {
"command": "python",
"args": ["-m", "zh_mcp_server"]
}
}
}Enable UTF-8 encoding (optional, for Java or non-ASCII clients)
If you are calling this server from a Java Spring AI application or any client that may produce garbled Chinese characters, add the encoding arguments and environment variable.
{
"mcpServers": {
"zh_mcp_server": {
"command": "python",
"args": ["-m", "zh_mcp_server", "--encoding=utf-8"],
"env": {
"PYTHONIOENCODING": "utf-8"
}
}
}
}Zhihu Auto Publish MCP Examples
Client configuration (Claude Desktop)
Minimal configuration block for claude_desktop_config.json to connect Claude Desktop to the Zhihu auto-publish server.
{
"mcpServers": {
"zh_mcp_server": {
"command": "python",
"args": ["-m", "zh_mcp_server"]
}
}
}Prompts to try
Example natural-language prompts you can send to your AI assistant once the server is connected.
- "Write a 1000-word article about the benefits of TypeScript for backend development and publish it to Zhihu."
- "Generate an opinion piece on remote work trends in 2025 and post it to my Zhihu account."
- "Draft a technical article explaining how MCP works, then publish it to Zhihu."Troubleshooting Zhihu Auto Publish MCP
Chrome window opens but login fails or the browser crashes immediately
Confirm that the ChromeDriver version exactly matches your installed Chrome version. Run `google-chrome --version` (or check Help > About Google Chrome) and reinstall ChromeDriver with the matching version number via `npx @puppeteer/browsers install chromedriver@<your-version>`.
Published articles contain garbled or incorrect Chinese characters
Add `--encoding=utf-8` to the args list and set `PYTHONIOENCODING=utf-8` in the env block of your MCP client config. This is particularly necessary when the client is not Python-native (e.g., Java-based MCP clients).
Server fails with a cookie or session error after initial setup
Re-run `python -m zh_mcp_server.__login__` to refresh and overwrite the saved cookie. Zhihu sessions can expire, so periodic re-login is expected.
Frequently Asked Questions about Zhihu Auto Publish MCP
What is Zhihu Auto Publish MCP?
Zhihu Auto Publish MCP is a Model Context Protocol (MCP) server that 知乎自动发文章mcp服务,一种用于知乎发文章的模型上下文协议(mcp)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。基于selenium和chromedriver实现自动发文章。 It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Zhihu Auto Publish MCP?
Follow the installation instructions on the Zhihu Auto Publish MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Zhihu Auto Publish MCP?
Zhihu Auto Publish MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Zhihu Auto Publish MCP free to use?
Yes, Zhihu Auto Publish MCP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Zhihu Auto Publish MCP Alternatives — Similar Communication Servers
Looking for alternatives to Zhihu Auto Publish 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 Auto Publish 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 Auto Publish MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.