zhihu-mcp
An MCP server that exposes Zhihu — China's largest Q&A platform — to AI agents over stdio.
This package is a thin alias: it installs zhihu-toolkit[mcp] and provides the zhihu-mcp executable. The server itself is implemented in zhihu-toolkit.
Install
uvx zhihu-mcp # run without installing
pip install zhihu-mcp # or install it
Requires Python 3.10+.
Use
Add the server to any MCP client (Claude Code, Claude Desktop, Cursor, …):
{
"mcpServers": {
"zhihu": {
"command": "zhihu-mcp"
}
}
}
Then ask, for example:
Search Zhihu for articles about Rust async, pick three, and download them as Markdown.
The server exposes one typed tool per CLI command, each with a JSON Schema derived from that command's own parameters, plus the zhihu_help and zhihu_run escape hatches. The full surface consumes a lot of context; zhihu-mcp --groups browse,search narrows it to selected command subtrees.
Authentication is shared with the zhihu CLI. Log in once with zhihu auth login, zhihu auth paste, or zhihu auth import, and the MCP server uses the same profile.
MCP Registry
The repository's server.json is the manifest for the official MCP Registry. Don't hand-edit its two version strings: the publish-mcp.yml workflow rewrites them from the tag-derived build version and uploads the result as the mcp-registry-manifest artifact. Publish from that artifact:
mcp-publisher login github
mcp-publisher publish
The version in the manifest must match a release that actually exists on PyPI, or the registry rejects the entry.
Links
- Source, documentation, and the full command reference: https://github.com/KrisTHL181/zhihu-cli
- The underlying toolkit:
zhihu-toolkit
MIT licensed. Unofficial project, not affiliated with Zhihu.
Metadata
Release files for zhihu-mcp 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zhihu_mcp-0.3.0.tar.gz | 3.4 kB | With provenance | Details for zhihu_mcp-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zhihu_mcp-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for zhihu_mcp-0.3.0-py3-none-any.whl |
Total release size: 6.1 kB
Release files / zhihu_mcp-0.3.0.tar.gz
| Download URL | zhihu_mcp-0.3.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9dd6fe1d7577417bbb01e52b6c476aa1bba638fe7fdf60e39ae57f9bf62ccb6a
|
|
BLAKE2b-256 checksum How to use checksums |
bc4f647b22a1d9fc87c77d321bf19c8a94d5d8db5ae4f9cfc5bd9d5063370215
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logRelease files / zhihu_mcp-0.3.0-py3-none-any.whl
| Download URL | zhihu_mcp-0.3.0-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8272e509dd223dd9a4c4b7c16c375c300ed625c61057600d67647fd7376b788e
|
|
BLAKE2b-256 checksum How to use checksums |
af445bc3135156b358c3b1a922f2958cfd094a0fbebdc15c8dd2305b482e916c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logSecurity for zhihu-mcp 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for zhihu_mcp-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.