IC

idleprocesscc/co-reading-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

122 stars 31 forks 质量 84 趋势 14MIT

idleprocesscc/co-reading-mcp 是从 https://github.com/idleprocesscc/co-reading-mcp. 导入的 MCP 服务器候选服务器

概览

idleprocesscc/co-reading-mcp 是从 https://github.com/idleprocesscc/co-reading-mcp. 导入的 MCP 服务器候选服务器

概述(AI 翻译)

一个为Claude提供耐用阅览室的本地MCP服务器:

  • 在保持EPUB书脊/章节边界的同时,将EPUB或纯文本导入稳定块
  • 列表书籍和区块
  • 逐块读取,使用 prevId / nextId
  • 直接从下一个未读区块继续
  • 在带有缓存区块文本的书中搜索
  • 写边距注释
  • 整理用户备注,一次性提交给Claude,并在备注下附上Claude的回复
  • 跟踪阅读进度
  • 当人类和克劳德在同一段落停下时,出现小额共享边距牌
  • 完成一本书后,进行一个小型的收尾仪式

目标不是一次性摘要。目标是建立一个共享的阅读界面,让人类和Claude都能阅读、留下锚定笔记并顺利继续。人类笔记也可以保持私密,直到读者选择与Claude分享。

关于逐步设置和使用流程,请参见 docs/user-guide.md。

快速启动

要求:

  • Node.js 18+
  • 导入脚本的 Python 3.10+

如果你也想要一个适合人类阅读的桌面,可以开始使用捆绑的阅读器:

打开http://127.0.0.1:8787。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Co-Reading MCP

A local MCP server that gives Claude a durable reading room:

  • import EPUB or plain text into stable chunks while preserving EPUB spine/chapter boundaries
  • list books and chunks
  • read chunk-by-chunk with prevId / nextId
  • continue directly from the next unread chunk
  • search across a book with cached chunk text
  • write margin annotations
  • stage user notes, submit them to Claude once, and attach Claude replies under them
  • track reading progress
  • surface small shared-margin cards when human and Claude stop at the same passage
  • return a small finish ritual when a book is completed

The goal is not one-shot summarization. The goal is a shared reading surface where a human and Claude can both read, leave anchored notes, and resume smoothly. Human notes can also stay private until the reader chooses to share them with Claude.

For a step-by-step setup and usage flow, see docs/user-guide.md.

Quick Start

Requirements:

  • Node.js 18+
  • Python 3.10+ for the import scripts
cd co-reading-mcp
cp -R data.example data
node src/server.js

If you also want a human-friendly reading surface, start the bundled reader:

npm run reader

Open http://127.0.0.1:8787. This serves a small reference reader and local HTTP API while also keeping the MCP stdio server active in the same process. In Claude Desktop / Claude Code you can point the MCP command at src/http.js instead of src/server.js when you want one process to handle both:

{
  "mcpServers": {
    "co-reading": {
      "command": "node",
      "args": ["/absolute/path/to/co-reading-mcp/src/http.js"],
      "env": {
        "READING_MCP_DATA_DIR": "/absolute/path/to/co-reading-mcp/data",
        "READING_HTTP_PORT": "8787"
      }
    }
  }
}

The reader’s Library header includes an import button for EPUB, TXT, or Markdown files. Browser imports upload the file directly to the co-reading server, so they also work with remote claude.ai setups where chat attachments are isolated from the MCP server filesystem.

For Claude Desktop / Claude Code, configure the MCP server as a stdio command:

{
  "mcpServers": {
    "co-reading": {
      "command": "node",
      "args": ["/absolute/path/to/co-reading-mcp/src/server.js"],
      "env": {
        "READING_MCP_DATA_DIR": "/absolute/path/to/co-reading-mcp/data"
      }
    }
  }
}

Remote Server

For VPS, reverse-proxy, tunnel, or remote MCP clients, run one process:

READING_MCP_DATA_DIR=./data MCP_AUTH_TOKEN="change-me" npm run start:sse

The same port serves the human reader, REST API, and remote MCP transports:

  • https://your-domain.example/: reference reader UI
  • https://your-domain.example/?token=change-me: reader UI with auth saved in a cookie (convenience shortcut — the token appears in the first request URL; avoid on shared devices or high-security setups)
  • https://your-domain.example/api/*: reader REST API
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "co-reading": { "command": "node", "args": ["/absolute/path/to/co-reading-mcp/src/http.js"], "env": { "READING_MCP_DATA_DIR": "/absolute/path/to/co-reading-mcp/data", "READING_HTTP_PORT": "8787" } } } }