zh_mcp_server介绍
@Victorzwx
About zh_mcp_server介绍
知乎自动发文章MCP服务,一种用于知乎发文章的模型上下文协议(MCP)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。基于selenium和ChromeDriver实现自动发文章。
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"zh_mcp_server": {
"command": "python",
"args": [
"-m",
"zh_mcp_server"
]
}
}
}Tools
No tools detected
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介绍?
- 克隆代码并安装依赖(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应用集成知乎发布能力
FAQ from zh_mcp_server介绍
需要哪些运行环境?
Python 3.10及以上版本,Windows系统推荐。依赖包括selenium、mcp、webdriver-manager,并需要谷歌浏览器及对应版本的ChromeDriver。
如何登录并保存cookie?
运行python -m zh_mcp_server.login,浏览器自动打开后使用手机号登录知乎,输入验证码到终端即可。cookie保存在本地,后续使用无需重复登录。
发布文章时出现乱码怎么办?
若通过Java等外部代码调用MCP服务,需要在命令参数中添加"--encoding=utf-8",并设置环境变量PYTHONIOENCODING=utf-8。
是否可以调试浏览器操作?
可以。在server.py中将ZhuHuPoster的headless参数设为False,即可关闭无头模式,可视化查看浏览器的自动化操作。
MCP客户端支持哪些?
README中提及了Cherry Studio,同时也支持通过命令行直接运行(python -m zh_mcp_server),适用于其他MCP客户端。
More Other MCP servers
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Awesome-MCP-ZH
yzflyMCP 资源精选, MCP指南,Claude MCP,MCP Servers, MCP Clients

EverArt
modelcontextprotocolModel Context Protocol Servers
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Comments