# Zhihu

Connects AI assistants to Zhihu for searching questions, reading posts, saving content to local Markdown files, and publishing answers.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 29 repo stars
- Author: KrisTHL181
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/KrisTHL181/zhihu-cli
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/zhihu

## What it 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.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add zhihu-mcp -- uvx zhihu-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from zhihu-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add zhihu -- uvx zhihu-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from zhihu-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "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>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "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>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add zhihu uvx zhihu-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from zhihu-mcp <command>

## When to use it
- 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
- 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.

## Similar
- [fiverr-mcp-server](https://affpapa.org/en/nevibecode/mcp/fiverr-mcp-server.md) — MCP server · ★ 18 repo stars
- [daily-news-report](https://affpapa.org/en/nevibecode/skills/daily-news-report.md) — skill · 1000 installs
- [Nstdata Crawl](https://affpapa.org/en/nevibecode/mcp/nstdata-crawl.md) — MCP server · ★ 21 repo stars
- [Exa Search](https://affpapa.org/en/nevibecode/mcp/exa-search.md) — MCP server · 9181 installs
- [Ghostrouter](https://affpapa.org/en/nevibecode/mcp/ghostrouter.md) — MCP server · 5398 installs
- [firecrawl-scrape](https://affpapa.org/en/nevibecode/skills/firecrawl-scrape.md) — skill · 84600 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
