Zhihu Auto Publish MCP

v1.0.0Communicationstable

知乎自动发文章MCP服务,一种用于知乎发文章的模型上下文协议(MCP)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。基于selenium和ChromeDriver实现自动发文章。

zh-mcp-servermcpai-integration
Share:
35
Stars
0
Downloads
0
Weekly
0/5

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

Automatically generate and publish articles to Zhihu.
Control browser automation via Selenium and ChromeDriver.
Enable AI-assisted content creation for Chinese platforms.
Victorzwx

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 5, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx zh-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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_server
2

Install Python dependencies

Install all required packages including selenium, requests, mcp, and webdriver-manager from the requirements file.

pip install -r requirements.txt
3

Install 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]
4

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__
5

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"]
    }
  }
}
6

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.

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.

Quick Config Preview

{ "mcpServers": { "zh-mcp-server": { "command": "npx", "args": ["-y", "zh-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides