Skip to main content
Glama

Kiseki-Labs-Readwise-MCP

Overview

Kiseki-Labs-Readwise-MCP is a Model Context Protocol (MCP) Server designed to interact with the Readwise API.

It allows language models to access and manipulate your Readwise documents and highlights programmatically. This server is developed by Kiseki Labs.

Related MCP server: Unstructured Document Processor MCP

Installation

  1. Clone the repository:

    git clone <your-repository-url>
    cd readwise_mcp
  2. Initialise dependencies with uv (Assuming you have uv installed)

    uv sync

Configuration

This server requires a Readwise API key to function.

  1. Obtain your API key from Readwise.

  2. Create a .env file in the root directory of the project.

  3. Add your API key to the .env file:

    READWISE_API_KEY=your_readwise_api_key_here

    The server uses python-dotenv to automatically load this variable when run.

Available Tools

The server exposes the following tools for interaction:

  • find_readwise_document_by_name(document_name: str) -> Book | None: Finds a specific document in Readwise by its exact name.

  • list_readwise_documents_by_filters(document_category: str = "", from_date: Optional[date] = None, to_date: Optional[date] = None) -> List[Book]: Lists documents based on category (e.g., 'books', 'articles') and/or a date range. Requires at least one filter.

  • get_readwise_highlights_by_document_ids(document_ids: List[int]) -> List[Highlight]: Retrieves all highlights associated with a list of specific document IDs.

  • get_readwise_highlights_by_filters(from_date: Optional[date] = None, to_date: Optional[date] = None, tag_names: List[str] = []) -> List[Highlight]: Fetches highlights based on a date range and/or a list of tags. Requires at least one filter.

(Note: Book and Highlight refer to the data structures defined in the readwise_mcp.types module.)

Running the Server

Development Mode

To run the MCP server in dev mode, execute the following command from the project's root directory:

uv run mcp dev server.py

The dev server will start and become accessible online by default on http://127.0.0.1:6274/ if you haven't modified the host and port.

Installing the MCP Server with Claude

On MacBook open the file below in your favourite text editor:

~/Library/Application\ Support/Claude/claude_desktop_config.json

For instance using vim open this file you can run the command:

vim ~/Library/Application\ Support/Claude/claude_desktop_config.json

Then add the appropriate entry under the mcpServers object, like in the example below:

"mcpServers": {
    "Kiseki-Labs-Readwise-MCP": {
      "command": "/Users/eddie/.pyenv/shims/uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "fastmcp",
        "run",
        "/Users/eddie/Development/AI/mcp_servers/readwise_mcp/server.py"
      ]
    }
    ...

Save the file with those changes. Finally, restart Claude. After restart, the Kiseki-Labs-Readwise-MCP MCP Server should be available.

Available Tools

4 tools
find_readwise_documents_by_namesB

Find documents in Readwise by a list of names.

Args:
    document_names (List[str]): The names of the documents to search for in Readwise.

Returns:
    Dict[str, Optional[Book]]: A dictionary where keys are the requested document names
    and values are the corresponding Book objects if found, or None otherwise.

Inputs: document_names (required).

get_readwise_highlights_by_document_idsB
Get highlights from Readwise by document ids.

Args:
    document_ids (List[int]): The IDs of the documents to retrieve highlights for.

Returns:
    List[Highlight]: A list of Highlight objects containing the highlights from the specified document.

Raises:
    ValueError: If no document IDs are provided.

Inputs: document_ids (required).

get_readwise_highlights_by_filtersA
Get highlights from Readwise by filters.

This function retrieves highlights from Readwise based on date range and/or tags.
At least one filter (from_date, to_date, or tag_names) must be provided.

Args:
    duration_expression (Optional[str]): A duration expression to filter highlights by creation date.
        Valid formats: "1w", "2h", "30m", etc.
    from_date (Optional[date]): The start date to filter highlights (inclusive).
        Highlights created on or after this date will be returned.
    to_date (Optional[date]): The end date to filter highlights (inclusive).
        Highlights created on or before this date will be returned.
    tag_names (List[str]): List of tag names to filter highlights by.
        Only highlights with at least one of these tags will be returned.

Returns:
    List[Highlight]: A list of Highlight objects matching the specified filters.

Raises:
    ValueError: If no filters are provided (all parameters are None or empty).

Inputs: duration_expression, from_date, to_date, tag_names.

list_readwise_documents_by_filtersA

List all documents in Readwise based on either category or date range At least one filter must be provided.

Args:
    document_category (str, optional): The category of the documents to list in Readwise.
        Allowed values are 'books', 'articles', 'tweets', 'podcasts', 'supplementals',
        or simply empty string '' if no category is specified. Defaults to "".
    duration_expression (Optional[str]): A duration expression to filter documents by creation date.
        Valid formats: "1w", "2h", "30m", etc.
    from_date (Optional[date]): The start date to filter documents (inclusive).
        Documents created on or after this date will be returned.
    to_date (Optional[date]): The end date to filter documents (inclusive).
        Documents created on or before this date will be returned.

Returns:
    List[Book]: A list of Book objects containing the documents from the specified category.

Raises:
    ValueError: If no filters are provided (all parameters are None or empty).

Inputs: document_category, duration_expression, from_date, to_date.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: finding documents by names, getting highlights by document IDs, getting highlights by filters, and listing documents by filters. There is no overlap in functionality, and the descriptions make it easy to differentiate between document-focused and highlight-focused operations.

    Naming Consistency4/5

    The naming follows a consistent verb_noun_by_filters pattern for three tools (find_readwise_documents_by_names, get_readwise_highlights_by_document_ids, get_readwise_highlights_by_filters, list_readwise_documents_by_filters), with 'find' and 'list' being slightly different verbs but still semantically clear. The structure is predictable and readable throughout.

    Tool Count4/5

    With 4 tools, the count is reasonable for a Readwise integration, covering core operations like retrieving documents and highlights. It might be slightly thin for a full-featured server, but it effectively handles key use cases without being overwhelming.

    Completeness3/5

    The toolset covers reading operations (finding and listing documents, retrieving highlights) but lacks create, update, or delete capabilities, which are common in CRUD workflows for a service like Readwise. This creates notable gaps that could limit agent functionality for managing documents or highlights.

    Related MCP Connectors

    Related MCP Servers