Skip to main content
Glama

读者 MCP 服务器

概述

一个模型上下文协议 (MCP) 服务器,可与您的Readwise 阅读器库无缝集成。此服务器支持兼容 MCP 的客户端(例如 Claude 和 VS Code)与您的阅读器库进行交互,提供文档列表、检索和更新功能。它充当 MCP 客户端与您在 Readwise 阅读器中的个人知识库之间的桥梁。

Related MCP server: @lex-tools/codebase-context-dumper

成分

工具

  • list_documents

    • 通过灵活的过滤和分页功能列出阅读器中的文档。

    • 输入:

      • location (字符串,可选):要筛选的文件夹。以下选项之一: new 、 later 、 shortlist 、 archive 、 feed 。

      • updatedAfter (字符串,可选):仅返回在此 ISO8601 时间戳之后更新的文档。

      • withContent (布尔值,可选):如果为真,则在结果中包含 HTML 内容(默认值:false)。

      • pageCursor (字符串,可选):用于获取下一页的分页游标。

    • 返回:

      • 包含文档列表的 JSON 对象,每个文档包括元数据和(可选)内容,以及分页信息。

与 MCP 客户端一起使用

Claude Desktop / VS Code / 其他 MCP 客户端

要将此服务器与 Claude Desktop、VS Code 或任何与 MCP 兼容的客户端一起使用,请将以下配置添加到客户端设置中(例如, claude_desktop_config.json或.vscode/mcp.json ):

uv(本地服务器)

{
  "mcpServers": {
    "reader": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/your/reader/server",
        "run",
        "main.py"
      ],
      "env": {
        "ACCESS_TOKEN": "your_readwise_access_token"
      }
    }
  }
}
  • 将/absolute/path/to/your/reader/server替换为此项目目录的实际路径。

  • 将your_readwise_access_token替换为您的实际 Readwise Reader API 访问令牌。

  • 或者,您可以在项目目录中的.env文件中指定ACCESS_TOKEN 。


有关更多信息,请参阅Readwise Reader API 文档和MCP 文档。

Available Tools

7 tools
reader_auth_checkA
Read-onlyIdempotent
Verify authentication with the Readwise Reader API.

Returns:
    AuthCheckResponse with authenticated status

Raises:
    ValueError: If authentication fails (401) or rate limited (429)

Inputs: no named parameters. Returns: authenticated

reader_bulk_update_documentsA
Bulk update multiple documents (max 50 per request).

Args:
    updates: (Required) Array of update objects. Each object must have:
        - id: (Required) Document ID to update
        - title: (Optional) New title
        - author: (Optional) New author
        - summary: (Optional) New summary
        - published_date: (Optional) Publication date (ISO 8601)
        - image_url: (Optional) Cover image URL
        - location: (Optional) New location (new, later, shortlist, archive, feed)
        - category: (Optional) New category (article, email, rss, highlight, note, pdf, epub, tweet, video)
        - tags: (Optional) Replace tags
        - notes: (Optional) Update notes
        - seen: (Optional) Mark as seen/unseen

Returns:
    BulkUpdateResponse with count and results

Inputs: updates (required). Returns: count, results

reader_create_documentA
Save a new document (URL) to your Readwise Reader library.

Args:
    url: (Required) URL to save. Can be a placeholder if no URL is available (e.g., https://yourapp.com#document1)
    html: Provide the document's content as valid HTML (Readwise will not scrape the URL)
    should_clean_html: Auto-clean HTML and parse metadata when html is provided (default: false)
    title: Override the detected title
    author: Override the detected author
    summary: Override the detected summary
    publishedDate: Publication date (ISO 8601 format)
    imageUrl: Cover image URL
    location: Where to save the document (new, later, archive, feed; default: new)
    category: Override the detected category (article, email, rss, highlight, note, pdf, epub, tweet, video)
    saved_using: Source identifier for the document (e.g., "MyApp")
    tags: List of tags to apply
    notes: Personal notes about the document

Returns:
    CreateDocumentResponse with id, url, title, and status

Inputs: url (required), html, should_clean_html, title, +9 more. Returns: id, url, title, status

reader_delete_documentA
Destructive
Delete one or more documents from your Readwise Reader library.

Args:
    ids: (Required) Array of document IDs to delete (at least one)

Returns:
    DeleteDocumentResponse with deleted count and ids

Inputs: ids (required). Returns: deleted, ids

reader_list_documentsA
Read-onlyIdempotent
List documents from your Readwise Reader library.

Args:
    id: Get a single document by ID (returns only that document)
    location: Filter by folder location (new, later, shortlist, archive, feed)
    category: Filter by category (article, email, rss, highlight, note, pdf, epub, tweet, video)
    tag: Filter by tag keys (pass empty list [] for untagged documents)
    updatedAfter: Filter by update time (ISO 8601 format, e.g., 2024-01-01T00:00:00Z)
    limit: Number of results to return (1-100, default: 100)
    withContent: Include full HTML content in response (default: false)
    pageCursor: Pagination cursor for next page

Returns:
    ListDocumentResponse with count, results, and nextPageCursor

Inputs: id, location, category, tag, +4 more. Returns: count, results, nextPageCursor

reader_list_tagsA
Read-onlyIdempotent
List all tags from your Readwise Reader library.

Returns:
    ListTagsResponse with count and results

Inputs: no named parameters. Returns: count, results

reader_update_documentA
Update a document in your Readwise Reader library.

Args:
    id: (Required) Document ID to update
    title: New title
    author: New author
    summary: New summary
    published_date: Publication date (ISO 8601 format)
    image_url: Cover image URL
    location: New location (new, later, shortlist, archive, feed)
    category: New category (article, email, rss, highlight, note, pdf, epub, tweet, video)
    tags: Replace existing tags (note: this replaces, not appends)
    notes: Update personal notes (empty string clears notes)
    seen: Mark as seen (true) or unseen (false)

Returns:
    UpdateDocumentResponse with id, updated status, and document

Inputs: id (required), title, author, summary, +7 more. Returns: id, updated, document

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a distinct purpose: authentication, document CRUD (create, read, update, delete), bulk update, and tag listing. No overlapping functionality.

    Naming Consistency5/5

    All tools follow the 'reader_verb_noun' snake_case pattern, e.g., reader_create_document, reader_list_documents. Consistent and predictable.

    Tool Count5/5

    Seven tools cover the core operations for the domain without excess. The count feels well-scoped and purposeful.

    Completeness5/5

    The tool set covers CRUD, bulk operations, tags, and authentication. The list_documents tool can retrieve individual documents via ID and includes content, so no major gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers