Zhihu — Claude Code MCP server: what it does, how to install
Connects AI assistants to Zhihu for searching questions, reading posts, saving content to local Markdown files, and publishing answers.
MIT ★ 29 updated 2026-10-29
claude mcp add zhihu-mcp -- uvx zhihu-mcpWhat Zhihu does
This server links coding agents directly to the Zhihu platform. The assistant can search discussions, fetch recommended feeds, and save posts alongside their comments as Markdown files in ~/.zhihu-cli/downloads/. It can also push newly written answers directly to the site.
Network requests rely on curl_cffi to mimic Chrome TLS signatures, and outbound calls are signed with x-zse-93 and x-zse-96 headers. Python 3.10 or newer is mandatory. The tool requires a pre-authenticated session created via QR code, cURL header import, or browser extraction, so unauthenticated runs will fail.
What it helps with
- Search questions, articles, and topics across Zhihu
- Save threads and articles to disk as Markdown with YAML frontmatter
- Publish markdown answers and articles directly to the platform
- Export user history and account metrics as JSON
Example prompts for the agent
- Search Zhihu for recent discussions about machine learning compilers and summarize the top answers.
- Download this Zhihu question thread to my notes as Markdown.
- Publish the draft answer from my active file to Zhihu.
How to install Zhihu
Platform CLI
claude mcp add zhihu-mcp -- uvx zhihu-mcpuvx runs the command named after the package; if the README names another one, use uvx --from zhihu-mcp <command>
Platform CLI
codex mcp add zhihu -- uvx zhihu-mcpuvx runs the command named after the package; if the README names another one, use uvx --from zhihu-mcp <command>
Config file
{
"mcpServers": {
"zhihu": {
"command": "uvx",
"args": [
"zhihu-mcp"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from zhihu-mcp <command>
Config file
{
"servers": {
"zhihu": {
"type": "stdio",
"command": "uvx",
"args": [
"zhihu-mcp"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from zhihu-mcp <command>
Platform CLI
gemini mcp add zhihu uvx zhihu-mcpuvx runs the command named after the package; if the README names another one, use uvx --from zhihu-mcp <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Zhihu
How to install Zhihu in Claude Code?
Run claude mcp add zhihu-mcp -- uvx zhihu-mcp in your terminal, or use claude mcp add zhihu -- uvx zhihu-mcp.
What does Zhihu MCP server do?
It gives agents tools to search, read, archive, and publish content on the Zhihu platform.
What is required before using the MCP server?
You need Python 3.10+ and an active session stored via zhihu auth paste, zhihu auth login, or browser import.