一个全面的模型上下文协议(MCP)服务器,统一了Readwise Reader文档管理和完整的Readwise高亮功能。适用于Claude Desktop、Continue以及任何兼容MCP的人工智能工具。使用TypeScript构建,具有高级文本处理、智能内容控制和上下文优化响应。
首个统一的MCP,结合了以下功能:
相当于官方的Readwise MCP,但更高效且功能齐全。兼容所有MCP客户端。
无需安装!任何MCP客户端都会自动下载并运行该包。
npm install -g readwise-mcp-enhanced
git clone https://github.com/arnaldo-delisio/readwise-mcp-enhanced.git
cd readwise-m_ _mcp-enhanced
npm install
npm run build
获取你的Readwise令牌:https://readwise.io/access_token
添加到你的MCP客户端配置中:
Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.jsonContinue IDE扩展:
其他MCP工具:
{
"mcpServers": {
"readwise-mcp-enhanced": {
"command": "npx",
"args": ["readwise-mcp-enhanced"],
"env": {
"READWISE_TOKEN": "your_readwise_access_token_here"
}
}
}
}
{
"mcpServers": {
"readwise-mcp-enhanced": {
"command": "readwise-mcp-enhanced",
"env": {
"READWISE_TOKEN": "your_readwise_access_token_here"
}
}
}
}
{
"mcpServers": {
"readwise-mcp-enhanced": {
"command": "node",
"args": ["/path/to/readwise-mcp-enhanced/dist/index.js"],
"env": {
"READWISE_TOKEN": "your_readwise_access_token_here"
}
}
}
}
重启你的MCP客户端(Claude Desktop、Continue等)
readwise_save_document保存文档并完全控制元数据。
{
"url": "https://example.com/article",
"tags": ["ai", "productivity"],
"location": "later",
"category": "article"
}
readwise_list_documents⭐ 带有智能内容控制
{
"withFullContent": true,
"contentMaxLength": 10000,
"contentStartOffset": 0,
"contentFilterKeywords": ["AI", "machine learning"],
"limit": 10
}
智能内容参数:
contentMaxLength:每个文档的内容限制(默认:50,000字符)contentStartOffset:从特定位置开始提取(分页)contentFilterKeywords:仅提取包含关键词的部分readwise_update_document更新文档元数据(标题、作者、摘要、位置等)
readwise_delete_document从你的阅读器库中删除文档
readwise_list_tags获取所有文档标签
readwise_topic_search⭐ 带有基于AI的文本处理
readwise_list_highlights列出高亮并进行高级过滤:
{
"book_id": 12345,
"highlighted_at__gt": "2024-01-01T00:00:00Z",
"page_size": 100
}
readwise_get_daily_review获取间隔重复高亮:
{
"review_id": 168844911,
"highlights": [
{
"text": "战略智慧引用...",
"title": "孙子兵法",
"author": "孙武"
}
]
}
readwise_search_highlights⭐ 带有特定字段查询的高级搜索:
{
"textQuery": "策略战术",
"fieldQueries": [
{
"field": "document_title",
"searchTerm": "孙子兵法"
}
],
"limit": 20
}
readwise_list_books获取带有高亮元数据的书籍:
{
"category": "books",
"last_highlight_at__gt": "2024-01-01T00:00:00Z"
}
readwise_get_book_highlights获取特定书籍的所有高亮:
{
"bookId": 53827741
}
readwise_export_highlights批量导出用于分析和备份:
{
"updatedAfter": "2024-01-01T00:00:00Z",
"includeDeleted": false
}
readwise_create_highlight手动添加高亮并附带元数据:
{
"highlights": [
{
"text": "重要见解...",
"title": "书名",
"author": "作者名",
"note": "我对这个的看法",
"category": "books"
}
]
}
在保持全部功能的同时减少94%的令牌使用:
| 工具 | 之前 | 现在 | 节省 |
|---|---|---|---|
| 列出高亮(32项) | ~25,600个令牌 | ~1,600个令牌 | 94% |
| 每日复习(5项) | ~5,000个令牌 | ~400个令牌 | 92% |
| 列出书籍(10项) | ~8,000个令牌 | ~600个令牌 | 93% |
优化字段:
id、text、note、book_idid、title、author、category、num_highlightstext、book、author、score自动修复常见的文本提取问题:
whatyou → what youfromdissatisfaction → from dissatisfactiontimeago → time ago// 无缝API切换
v2 API: 高亮、书籍、每日复习、导出
v3 API: 阅读器文档、标签、搜索
READWISE_TOKEN安全存储令牌// 对大型文档进行分页
readwise_list_documents({
withFullContent: true,
contentMaxLength: 5000,
contentStartOffset: 0,
contentFilterKeywords: ["机器学习", "AI"]
})
// 在文档和高亮之间进行搜索
readwise_search_highlights({
textQuery: "生产力习惯",
fieldQueries: [
{ field: "document_author", searchTerm: "詹姆斯·克利尔" }
],
limit: 10
})
// 获取每日复习进行间隔重复
readwise_get_daily_review()
// 搜索相关高亮进行深入研究
readwise_search_highlights({
textQuery: "来自每日复习主题",
limit: 20
})
{
"@modelcontextprotocol/sdk": "^1.0.0",
"dotenv": "^16.3.0",
"node-html-parser": "^7.0.1",
"wordsninja": "^1.0.0"
}
关键新增:wordsninja用于基于AI的分词
此统一的MCP是完全向后兼容的。所有现有的阅读器工具保持不变,同时增加了7个新的高亮工具。
无破坏性更改 - 只有增强的功能和更好的性能。
MIT
基于edricgan/Readwise-Reader-MCP的基础进行了显著增强:
这代表了从基本文档管理到全面、生产就绪的Readwise平台的完整演变。 🚀