Integrations
The server mentions a CSDN account link, suggesting some form of integration or reference to CSDN, though specific capabilities aren't detailed.
Code repository is hosted on GitHub, and users need to clone the repository to use the MCP server.
Uses Puppeteer-related tools for browser installation and management, specifically for ChromeDriver installation.
zh_mcp_server介绍
一种用于知乎发文章的模型上下文协议(MCP)服务器,使用者可以通过该服务与大模型自动生成文章并在知乎发文章。
使用方法
1. 环境配置前提
建议在Windows环境下运行
python版本要求 >= 3.10
- 方式1:
配置环境要求满足 requirements.txt 文件的要求
- selenium>=4.0.0
- requests>=2.25.1
- mcp>=0.1.0
- webdriver-manager>=3.8.0 可以通过如下代码安装:
然后安装ChromeDriver,本项目依赖于谷歌浏览器,134.0.6998.166是版本号,需要手动查询使用者电脑上的谷歌浏览器版本
- 方式2:
运行setup_environment.py,如果该方式失败则有可能是ChromeDriver版本不正确,建议以方式1重新安装
2. 克隆代码
在该代码文件夹下运行初始化代码,保存个人cookie
- 注意运行后会自动打开谷歌浏览器
- 在谷歌浏览器输入使用者的手机账号,然后点击获取验证码
- 然后,将得到的验证码输入到Terminal,即运行python -m zh_mcp_server.__login__的终端,这很重要!
3. 配置MCP服务
通过python的方式运行
然后就可以使用了
如果是通过代码使用该MCP服务,如基于Spring AI的JAVA代码,还需要加上编码方式,以避免生成乱码:
调试
如果需要调试大模型调用该MCP服务时的具体过程或者可视化浏览器的操作,需要关闭无头浏览器模式,如下:
代码位于server.py中
CSDN
微信
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
A Model Context Protocol server that enables users to automatically generate articles using large language models and publish them directly to Zhihu (a Chinese Q&A platform).
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.Last updated -12PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables Large Language Models to seamlessly interact with ClickHouse databases, supporting resource listing, schema retrieval, and query execution.Last updated -1PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server implementation that provides a standardized interface for interacting with Spiral's language models, offering tools to generate text from prompts, files, or web URLs.Last updated -12Python
- -securityFlicense-qualityA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.Last updated -TypeScript