Feedback

zh_mcp_server介绍 MCP Server

@victorzwx Claim

Basic information

Runtime
python
Category
License
Not specified
Transports
stdio
Author
victorzwx
Submitted by
Community
Quality
35
Stars
36

About zh_mcp_server介绍 MCP Server

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

zh_mcp_server介绍 is a MCP server in the Other category listed in the AddMCP.net directory, published by Victorzwx. Supported transport: stdio. Runtime: python. The repository has 36 GitHub stars. Source code is hosted on github.com.

Setup

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

zh_mcp_server介绍 MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

zh_mcp_server介绍 MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is zh_mcp_server介绍?

一种用于知乎发文章的MCP(模型上下文协议)服务器。使用者可以通过该服务与大模型自动生成文章,并将文章发布到知乎平台。适用于需要在知乎上定期发布内容的用户。

How to use zh_mcp_server介绍?

  1. 克隆代码并安装依赖(Python ≥3.10,通过pip install -r requirements.txt安装selenium、mcp、webdriver-manager等)。2. 安装对应版本的ChromeDriver(通过npx @puppeteer/browsers install chromedriver@版本号)。3. 保存个人cookie:运行python -m zh_mcp_server.login,在打开的浏览器中登录知乎并将验证码输入终端。4. 在MCP客户端(如Cherry Studio)中配置MCP服务:以python方式运行,命令参数为["python", "-m", "zh_mcp_server"];若通过Java等代码使用,需额外指定编码"--encoding=utf-8"及环境变量PYTHONIOENCODING=utf-8。

Key features of zh_mcp_server介绍

  • 自动生成文章并与大模型交互
  • 一键发布文章到知乎平台
  • 基于cookie登录,无需重复输入密码
  • 支持无头浏览器模式(默认开启)
  • 提供调试模式(关闭无头模式)
  • 兼容Java等外部代码集成(需处理编码)

Use cases of zh_mcp_server介绍

  • 批量生成并发布知乎专栏文章
  • 利用大模型创作内容后自动投稿
  • 自动化运营知乎账号的内容发布流程
  • 结合外部Java/Spring AI应用集成知乎发布能力

Frequently asked questions

1 需要哪些运行环境?

Python 3.10及以上版本,Windows系统推荐。依赖包括selenium、mcp、webdriver-manager,并需要谷歌浏览器及对应版本的ChromeDriver。

2 如何登录并保存cookie?

运行python -m zh_mcp_server.login,浏览器自动打开后使用手机号登录知乎,输入验证码到终端即可。cookie保存在本地,后续使用无需重复登录。

3 发布文章时出现乱码怎么办?

若通过Java等外部代码调用MCP服务,需要在命令参数中添加"--encoding=utf-8",并设置环境变量PYTHONIOENCODING=utf-8。

4 是否可以调试浏览器操作?

可以。在server.py中将ZhuHuPoster的headless参数设为False,即可关闭无头模式,可视化查看浏览器的自动化操作。

5 MCP客户端支持哪些?

README中提及了Cherry Studio,同时也支持通过命令行直接运行(python -m zh_mcp_server),适用于其他MCP客户端。

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬