Skip to main content
Glama
WloBy-Labs

ZhihuMCP

by WloBy-Labs

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
zhihu_loginA

打开浏览器窗口扫码登录知乎。登录态保存在本地独立浏览器目录,不经由 MCP 返回。注意:需要在有图形界面的机器上使用;若客户端工具调用超时时间较短(<3 分钟),建议改在终端运行 npm run login

zhihu_check_loginA

检查当前知乎登录状态,返回 logged_in 与用户名。

zhihu_get_contentA

读取知乎想法、专栏文章或回答的正文与元信息(作者、发布时间、赞数、评论数)。支持 https://www.zhihu.com/pin/{id}、https://zhuanlan.zhihu.com/p/{id}、https://www.zhihu.com/question/{qid}/answer/{aid}。评论请用 zhihu_list_comments。

zhihu_list_commentsA

分页读取知乎想法或专栏文章的一级评论。首页不传 cursor;用返回的 next_cursor 取下一页,has_more=false 表示读完。楼中楼回复请用 zhihu_list_replies。

zhihu_list_repliesA

分页读取某条一级评论的楼中楼回复。comment_id 来自 zhihu_list_comments 返回的评论 id。首页不传 cursor;用返回的 next_cursor 取下一页。

zhihu_draft_answerA

把纯文本写入指定知乎问题的回答编辑器。默认只存草稿(不发布),需要人工在网页端/App 检查后手动发布;publish=true 才会直接点击发布。文本按换行分段,不支持 Markdown 渲染。写操作有独立严格限频(默认间隔≥60s、每小时≤3次)。若该问题已有未发布草稿或已回答过,会拒绝写入以防覆盖。

zhihu_edit_answerA

编辑你【已发布】的知乎回答。这会改动线上公开内容,因此有两步确认:默认 confirm=false 时只返回当前线上内容做预览、不修改;核对后带 confirm=true 才真正修改并提交。mode=append(默认)在原回答末尾追加,保留原内容与图片;mode=replace 整篇替换(注意:写入的是纯文本,原回答的图片/富文本格式会丢失)。修改前会自动本地备份原文。只能编辑本人发布的回答。

zhihu_list_followeesA

分页读取某用户「关注的人」列表。url_token 省略时查当前登录用户。首页不传 cursor;用返回的 next_cursor 取下一页,has_more=false 表示读完。

zhihu_search_questionsA

按关键词搜索知乎问题(如「如何看待X月X日A股行情」),返回按回答数降序的问题列表,每条含 answer_count(回答数)、visits_count(浏览量=热度代理)、follower_count(关注数)、url。并直接给出 most_answers(回答最多的一个)与 hottest(浏览量最高的一个)两个候选。搜索是模糊匹配、会混入其它日期,传入 date(YYYY-MM-DD)会按标题精确过滤到当天再选候选。适合先定位当天的「今日行情」问题,再把它的 url 交给 zhihu_draft_answer。

zhihu_list_user_activityA

发现某用户在指定自然日(默认今天,Asia/Shanghai)发布的回答/文章/想法,返回条目列表(含 url、标题、摘要、发布时间、赞数、评论数),不含正文全文与评论。拿到列表后请用 zhihu_get_content 读正文、zhihu_list_comments 读热评。三类内容按发布时间降序拉取,翻到早于目标日即停止。url_token 是主页 URL 中 /people/ 后的部分。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/WloBy-Labs/ZhihuMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server