Uses python-dotenv to load environment variables from a .env file, specifically for managing the Readwise API key
Used in the installation process to clone the repository
Mentioned as an example text editor for modifying configuration files
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: MCP File Context Server
Installation
Clone the repository:
git clone <your-repository-url> cd readwise_mcpInitialise dependencies with uv (Assuming you have
uv sync
Configuration
This server requires a Readwise API key to function.
Obtain your API key from Readwise.
Create a
.envfile in the root directory of the project.Add your API key to the
.envfile:READWISE_API_KEY=your_readwise_api_key_hereThe server uses
python-dotenvto 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:
Running the Server
Development Mode
To run the MCP server in dev mode, execute the following command from the project's root directory:
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:
For instance using vim open this file you can run the command:
Then add the appropriate entry under the mcpServers object, like in the example below:
Save the file with those changes.
Finally, restart Claude. After restart, the Kiseki-Labs-Readwise-MCP MCP Server should be available.