zh_mcp_server介绍
一种用于知乎发文章的模型上下文协议(MCP)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。
使用方法
1. 克隆代码
git https://github.com/Victorzwx/zh_mcp_server.git
Potencia tu agente
Instalación del publicador. No es un endpoint de PlugMCP.
Host a copy with our keys and logs.
Aún no hay una versión empaquetada en el registro. Sigue el README del repositorio.
¿URL remota o un comando en tu máquina? En qué se diferencian las dos instalaciones
Ejecutar en PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
AbrirDel publicador
一种用于知乎发文章的模型上下文协议(MCP)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。
git https://github.com/Victorzwx/zh_mcp_server.git
知乎自动发文章MCP服务,一种用于知乎发文章的模型上下文协议(MCP)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。基于selenium和ChromeDriver实现自动发文章。
建议在Windows环境下运行
python版本要求 >= 3.10
配置环境要求满足 requirements.txt 文件的要求
pip install -r requirements.txt
然后安装ChromeDriver,本项目依赖于谷歌浏览器,134.0.6998.166是版本号,需要手动查询使用者电脑上的谷歌浏览器版本
npx @puppeteer/browsers install [email protected]
运行setup_environment.py,如果该方式失败则有可能是ChromeDriver版本不正确,建议以方式1重新安装
python setup_environment.py
在该代码文件夹下运行保存cookie的代码:
python -m zh_mcp_server.__login__
通过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中
知乎自动发文章MCP服务,一种用于知乎发文章的模型上下文协议(MCP)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。基于selenium和ChromeDriver实现自动发文章。
Herramientas
Aún no hay lista de herramientas. Los servidores remotos la reciben tras la primera comprobación de estado.
Preguntas frecuentes
Copia en esta página la configuración stdio para Cursor, Claude Desktop, Claude Code o VS Code. Usa la instalación del publicador, no un proxy de PlugMCP.
Este registro no indica ninguna variable de entorno obligatoria.
Zh se ejecuta localmente por stdio.
Última comprobación: 2026-10-28. 知乎自动发文章MCP服务,一种用于知乎发文章的模型上下文协议(MCP)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。基于selenium和ChromeDriver实现自动发文章。