A Model Context Protocol server for publishing articles to Zhihu

A Model Context Protocol server for publishing articles to Zhihu

zh_mcp_server•byvictorzwx

zh_mcp_server provides an MCP service that lets users generate articles with a large model and post them to Zhihu.

License: Not specified•Runtime: Awaiting documentation review•Category: communication social

WHAT IT DOES

  • •Offers an MCP server for automatically generating articles with a large model and publishing them on Zhihu.
  • •Runs through a Python module configured as an MCP service in MCP clients such as Cherry Studio.
  • •Saves a personal Zhihu cookie via a login flow that opens Chrome and requires entering an SMS verification code in the terminal.

BEST FOR

  • •Users who want an MCP-connected assistant to draft and publish Zhihu articles on their behalf.
  • •Developers integrating this MCP service from code, including Java applications built with Spring AI, with UTF-8 encoding set to avoid garbled text.
  • •Users on Windows with Python 3.10 or newer who can install ChromeDriver matching their Chrome version.

ABOUT ZH_MCP_SERVER

A Model Context Protocol server for publishing articles to Zhihu is cataloged as an MCP server attributed to victorzwx. zh_mcp_server provides an MCP service that lets users generate articles with a large model and post them to Zhihu. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for A Model Context Protocol server for publishing articles to Zhihu are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Why might the verification code step fail to matter to the login flow?

The README stresses that the SMS verification code must be entered into the same terminal where the login module is running.

How can the browser operations be watched during debugging?

Headless mode can be turned off by setting headless to False in server.py so the browser operations become visible.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 1f003e6bdc79 · 采集于 2026-11-13 09:44:41 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

zh_mcp_server介绍

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

使用方法

1. 克隆代码

git https://github.com/Victorzwx/zh_mcp_server.git

2. 环境配置前提

建议在Windows环境下运行

python版本要求 >= 3.10

  • 方式1:

配置环境要求满足 requirements.txt 文件的要求

  • selenium>=4.0.0
  • requests>=2.25.1
  • mcp>=0.1.0
  • webdriver-manager>=3.8.0 可以通过如下代码安装:
pip install -r requirements.txt

然后安装ChromeDriver,本项目依赖于谷歌浏览器,134.0.6998.166是版本号,需要手动查询使用者电脑上的谷歌浏览器版本

npx @puppeteer/browsers install chromedriver@134.0.6998.166
  • 方式2:

运行setup_environment.py,如果该方式失败则有可能是ChromeDriver版本不正确,建议以方式1重新安装

python setup_environment.py

3.保存个人cookie

在该代码文件夹下运行保存cookie的代码:

python -m zh_mcp_server.__login__
  • 注意运行后会自动打开谷歌浏览器
  • 在谷歌浏览器输入使用者的手机账号,然后点击获取验证码
  • 然后,将得到的验证码输入到Terminal,即运行python -m zh_mcp_server.__login__的终端,这很重要!

4. 在MCP客户端(如Cherry Studio)配置MCP服务

通过python的方式运行

"zh_mcp_server": {
      "command": "python",
      "args": [
        "-m",
        "zh_mcp_server"
      ]
 }

然后就可以使用了

如果是通过代码使用该MCP服务,如基于Spring AI的JAVA代码,还需要加上编码方式,以避免生成乱码:

"zh_mcp_server": {
      "command": "D:\\aconda\\python.exe",
      "args": [
        "-m",
        "zh_mcp_server",
        "--encoding=utf-8"
      ],
      "env": {
        "PYTHONIOENCODING": "utf-8"
      }
    }

调试

如果需要调试大模型调用该MCP服务时的具体过程或者可视化浏览器的操作,需要关闭无头浏览器模式,如下:

poster = ZhuHuPoster(path, headless=True)##如果要调试,请设置为False

代码位于server.py中

CSDN

本人CSDN账号

微信

image

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for A Model Context Protocol server for publishing articles to Zhihu from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/zh_mcp_server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable
Site views (30 UTC days)1

Approximate reported site interactions from 2026-10-27 through 2026-11-25 UTC; not unique visitors or installations.

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related communication social MCP Servers

Alternative and complementary servers in the same category

View all in communication social →

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

52
Communication

Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

Repository stats unavailable
Communication