WeRead MCP Server
This server provides access to a user's WeChat Reading (WeRead) data through a Model Context Protocol (MCP) interface, enabling integration with LLM clients. Key features include:
Get bookshelf information: Retrieve comprehensive data about books in your library, including statistics and categories
Search books: Query your bookshelf using keywords with options for fuzzy/exact matching and result customization
Fetch notes and highlights: Access your annotations from specific books, with filtering by highlight style and chapter organization
Access popular reviews: Retrieve community reviews for books with pagination control
This integration provides personalized reading context for MCP-enabled language models.
Requires Node.js 16.x or higher to run the MCP server, providing the runtime environment for the WeRead integration.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WeRead MCP Servershow me my recent notes from Thinking, Fast and Slow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
微信读书 MCP Server 是一个为微信读书提供 MCP(Model Context Protocol)服务的工具,支持将微信读书的书籍、笔记和划线数据提供给支持MCP的大语言模型客户端,如Cursor、Claude Desktop。
功能特点
从微信读书获取书架信息
搜索书架中的图书
获取图书的笔记和划线
获取图书的热门书评
支持按章节组织笔记和划线
与支持MCP协议的LLM客户端无缝集成
Related MCP server: Notion MCP Server
主要工具
get_bookshelf - 获取用户书架上所有书籍
返回书籍基本信息,包括书名、作者、译者和分类等
search_books - 通过关键词检索用户书架上的书籍
支持模糊匹配和精确匹配
可选是否包含详细信息
可设置最大结果数量
get_book_notes_and_highlights - 获取指定书籍的所有划线和笔记
支持按章节组织结果
支持筛选划线样式
返回结构化的数据以便于LLM理解
get_book_best_reviews - 获取指定书籍的热门书评
支持设置返回数量
支持分页浏览
包含评分、点赞数和评论者信息
安装与使用
先决条件
Node.js 16.x 或更高版本
微信读书账号和有效的Cookie
安装教程
详见:
与Claude Desktop集成
有多种方式可以与Claude Desktop集成:
方式一:通过 npx 使用(最简单,推荐)
打开Claude Desktop
进入设置 -> MCP配置
添加工具,使用以下JSON配置:
{ "mcpServers": { "mcp-server-weread": { "command": "npx", "args": ["-y", "mcp-server-weread"], "env": { // 方式1:使用Cookie Cloud(推荐) "CC_URL": "https://cc.chenge.ink", // Cookie Cloud的URL "CC_ID": "您的ID", // Cookie Cloud的ID "CC_PASSWORD": "您的密码" // Cookie Cloud的密码 // 或方式2:直接提供Cookie // "WEREAD_COOKIE": "您的微信读书Cookie" } } } }
方式二:全局安装后使用
全局安装包:
npm install -g mcp-server-weread在Claude配置中使用:
{ "mcpServers": { "mcp-server-weread": { "command": "mcp-server-weread", "env": { // 同上方式配置环境变量 } } } }
提示:直接在Claude配置中提供环境变量的方式更加方便,无需设置.env文件,推荐使用。
CookieCloud 配置说明
为了解决 Cookie 频繁过期,需要重新获取并更新环境变量的问题。本项目支持 CookieCloud 服务来自动同步和更新 Cookie。CookieCloud 是一个开源的跨浏览器 Cookie 同步工具,支持自建服务器。
配置步骤:
安装浏览器插件 Edge商店:CookieCloud for Edge Chrome商店:CookieCloud for Chrome
配置 CookieCloud 插件
服务器地址:使用默认服务器 https://cc.chenge.ink 或填入自建服务器地址 点击 "自动生成密码" 同步域名关键词中填入 "weread" 点击"保存" ,然后点击 "手动同步"确保配置生效 [可选] 如果需要插件自动保活,可以在保活中填入 https://weread.qq.com,插件会自动刷新 Cookie
在MCP Json中配置CookieCloud变量: CC_URL=你的CookieCloud服务器地址 (或使用我的默认服务器地址 https://cc.chenge.ink ) CC_ID=你的CookieCloud用户UUID CC_PASSWORD=你的CookieCloud密码 注意:配置 CookieCloud 后,系统会优先使用 CookieCloud 获取 Cookie,获取失败才会使用 WEREAD_COOKIE 环境变量的值。
Cookie获取方法
微信读书的Cookie可以通过以下步骤获取:
使用Chrome浏览器登录微信读书网页版
按F12打开开发者工具,切换到Network标签页
刷新页面,在请求列表中找到weread.qq.com的请求
在Headers中找到Cookie字段,复制其完整内容
将复制的内容添加到MCP Json 或 .env文件的WEREAD_COOKIE变量中
使用示例
以下是一些与LLM对话的示例:
获取书架信息
用户: 帮我查看我的微信读书书架
LLM: 我将获取您的微信读书书架信息。
[LLM调用get_bookshelf工具]
我从您的微信读书书架获取到了208本书籍。以下是部分书籍:
1. 《隐藏的自我》- 大卫·伊格曼
2. 《思考,快与慢》- 丹尼尔·卡尼曼
3. 《人类简史》- 尤瓦尔·赫拉利
...搜索特定书籍
用户: 帮我找关于心理学的书
LLM: 我将搜索您书架上与心理学相关的书籍。
[LLM调用search_books工具,参数为keyword="心理学"]
在您的书架上,我找到了3本与心理学相关的书籍:
1. 《思考,快与慢》- 丹尼尔·卡尼曼(进度:75%)
2. 《乌合之众》- 古斯塔夫·勒庞(进度:50%)
3. 《心理学与生活》- 理查德·格里格(进度:30%)
您想了解哪一本书的更多信息?获取笔记和划线
用户: 帮我整理《思考,快与慢》这本书的笔记
LLM: 我将获取《思考,快与慢》的笔记和划线。
[LLM调用search_books工具,找到书籍ID]
[LLM调用get_book_notes_and_highlights工具]
以下是您在《思考,快与慢》中的笔记和划线(按章节组织):
第一章:系统1和系统2
- 划线:「系统1的运行是无意识且快速的,不怎么费脑力,没有感觉,完全处于自主控制状态。」
- 您的笔记:「系统1负责直觉和快速判断,系统2负责缓慢的理性思考。」
第三章:锚定效应
- 划线:「锚定效应指的是在不确定情境下进行数字估计时,会过度受到事先接触的不相干数字的影响。」
...获取热门书评
用户: 这本《原则》有哪些热门书评?
LLM: 我会为您查找《原则》的热门书评。
[LLM调用search_books工具,找到书籍ID]
[LLM调用get_book_best_reviews工具]
以下是《原则》的热门书评:
1. 评论者"思考者"(评分:5星):
"这是一本关于如何思考的书。达利欧将自己多年的经验总结为可操作的原则,帮助我们做出更好的决策。特别喜欢他关于'痛苦+反思=进步'的观点,非常实用。"
👍 182 | 💬 23
2. 评论者"投资学习者"(评分:4星):
"桥水基金创始人的思想精华,值得反复阅读。书中的工作原则部分对管理者特别有帮助,建议先读生活原则,再读工作原则。"
👍 94 | 💬 12
...九、友情链接
mcp-server-weread :🚀一个为微信读书提供MCP(Model Context Protocol)服务的工具,支持将微信读书的书籍、笔记和划线数据提供给支持MCP的大语言模型客户端,如Claude Desktop。
CodeCanvas :📚本代码仓库是作者苍何多年从事一线互联网Java开发的学习历程技术汇总,旨在为大家提供一个清晰详细的学习教程,侧重点更倾向编写Java核心内容。💪🏻
PmHub :🔥PmHub 是一套基于 SpringCloud & LLM 的微服务智能项目管理系统,这个项目旨在帮助小伙伴们快速掌握微服务/分布式项目的架构设计和开发流程,如果想在校招或者社招中拿到一个满意的 offer,PmHub 将是一个非常 nice 的选择。
十、鸣谢
此项目 fork 自 ChenyqThu 的mcp-server-weread项目,做了一些小修改,突然就🔥了,这里也请大家去作者GitHub原项目上star,另外ChenyqThu新的更新我也会做同步,项目也会保持使用教程的更新,感谢大家的喜欢。
十一、star 趋势图
十二、公众号
微信搜 苍何 或扫描下方二维码关注苍何的原创公众号,回复 AI 即可和 5000+ 好友一同探讨AI,一同学习MCP。

十三、许可证
MIT License (MIT) The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Copyright (c) 2025-2026 mcp-server-weread
Available Tools
4 toolsget_book_best_reviewsB
Get popular reviews for a specific book
| Name | Required | Description | Default |
|---|---|---|---|
| book_id | Yes | Book ID | |
| count | No | Number of reviews to return | |
| max_idx | No | Pagination index | |
| synckey | No | Sync key for pagination |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It only says 'Get popular reviews' without explaining pagination behavior (max_idx, synckey), how 'popular' is determined, required authentication, or error handling.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence, which is concise but lacks necessary behavioral context. While it is not verbose, it under-specifies the tool's behavior, making it merely adequate.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has 4 parameters with pagination and no output schema. The description does not explain the pagination mechanism, the sorting order of reviews, or potential error conditions. Given no annotations, the description is insufficient for complete understanding.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all parameters. The tool description adds no additional meaning beyond what the schema provides, meeting the baseline for high coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states 'Get popular reviews for a specific book', identifying the action (get), resource (popular reviews), and scope (for a specific book). This distinguishes it from sibling tools like get_book_notes_and_highlights or get_bookshelf.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit guidance on when to use this tool versus alternatives. The description only implies usage when popular reviews are needed, but does not mention exclusions or compare to siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_book_notes_and_highlightsB
Get all highlights and notes for a specific book, organized by chapter
| Name | Required | Description | Default |
|---|---|---|---|
| book_id | Yes | Book ID | |
| highlight_style | No | Highlight style filter, null means all | |
| include_chapters | No | Whether to include chapter information | |
| organize_by_chapter | No | Whether to organize by chapter |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. It only describes the basic function and output organization, lacking details on permissions, side effects, error handling, or limits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence of 12 words, front-loading the key action and resource. No unnecessary or redundant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the absence of an output schema, the description partially explains the structure ('organized by chapter') but omits details on returned fields, pagination, or error handling. Adequate but not fully complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with parameter descriptions. The description adds no new semantic value beyond the schema, but it does reinforce the 'organize_by_chapter' parameter. Baseline for high coverage is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states 'Get all highlights and notes for a specific book, organized by chapter', specifying verb, resource, scope, and organization. It distinctly differs from sibling tools like get_book_best_reviews, get_bookshelf, and search_books.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not provide any guidance on when to use this tool versus alternatives, nor does it mention when not to use it. Implicit differentiation from siblings is not enough.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_bookshelfA
Get all books in the user's bookshelf with comprehensive statistics and categorization information
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description must disclose behavioral traits. It states 'Get all books' implying a read operation, but does not mention authentication needs, rate limits, or potential side effects. Adequate for a simple retrieval but lacks depth.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence that conveys the tool's function without any redundant or unnecessary words. It is front-loaded and efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the absence of an output schema and annotations, the description provides an adequate overview ('books, statistics, categorization') but lacks specifics about the return structure or potential constraints. It is sufficient for a simple tool but not comprehensive.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has zero parameters, so the description has no parameter details to add. Baseline 4 is appropriate as no extra information is needed.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states 'Get all books in the user's bookshelf with comprehensive statistics and categorization information', which specifies the exact resource and action. It effectively distinguishes from sibling tools like get_book_best_reviews and search_books that focus on different aspects.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies use for retrieving all bookshelf books with stats, but provides no explicit guidance on when to use versus siblings or any exclusions. Context signals (sibling names) help differentiate, but the description itself lacks usage direction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_booksB
Search for books in the user's bookshelf by keywords and return matching books with details and reading progress
| Name | Required | Description | Default |
|---|---|---|---|
| exact_match | No | Whether to use exact matching, default is fuzzy matching | |
| include_details | No | Whether to include detailed information | |
| keyword | Yes | Search keyword to match book title, author, translator or category | |
| max_results | No | Maximum number of results to return |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It mentions return of 'details and reading progress' but does not disclose side effects, read-only nature, auth needs, rate limits, or error behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence that is front-loaded with the core action. No wasted words, though structure could be improved with bullet points or separate outcome statements.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With four parameters, siblings, and no output schema or annotations, the description is insufficiently complete. It does not explain the meaning of 'details and reading progress', handling of no results, or pagination, which would be helpful given the missing output schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with all parameters described. The description adds minimal extra meaning beyond the schema, only tying keyword and include_details to the search output. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's action (search), resource (books in bookshelf), and output (matching books with details and reading progress). It distinguishes from siblings which focus on reviews, notes, or the entire bookshelf.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for keyword-based search but provides no explicit guidance on when to use versus siblings like get_book_best_reviews or get_bookshelf. No when-not-to-use or alternative selection advice.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
v1.0.0- First observed
get_book_best_reviews - First observed
get_book_notes_and_highlights - First observed
get_bookshelf - First observed
search_books
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: get_book_best_reviews retrieves reviews, get_book_notes_and_highlights fetches user annotations, get_bookshelf lists all books with stats, and search_books finds books by keyword. There is no overlap in functionality, making tool selection straightforward for an agent.
All tool names follow a consistent verb_noun pattern with snake_case: get_book_best_reviews, get_book_notes_and_highlights, get_bookshelf, and search_books. The naming is predictable and readable, with no deviations in style or convention.
With 4 tools, the count is reasonable for a WeRead server focused on book management and reading insights. It covers core operations without being overwhelming, though it might benefit from additional tools for actions like updating notes or managing bookshelves to be fully comprehensive.
The tool set provides good coverage for reading and book management, including retrieval of reviews, notes, bookshelf data, and search. Minor gaps exist, such as the inability to create or update notes/highlights or manage bookshelf entries, but agents can still perform key workflows with the available tools.
Maintenance
Related MCP Connectors
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceServer for managing academic literature with structured note-taking and organization, designed for seamless interaction with Claude. Built with SQLite for simplicity and portability.19MIT
- AlicenseNot gradedqualityDmaintenanceA simple server that integrates with Claude to allow querying and manipulating Notion pages and databases through natural language prompts.1,642 npmMIT
- AlicenseAqualityCmaintenanceA lightweight Node.js server that connects Claude Desktop to Taiwan's Central Weather Administration (CWA) API, allowing users to retrieve weather forecast data for all cities and counties in Taiwan.11MIT
- FlicenseAqualityFmaintenanceAn MCP server enabling LLMs to access WeChat Reading bookshelf, notes, highlights, and reviews via tools like get_bookshelf, search_books, and get_book_notes_and_highlights.4131 npm170-