Readwise

by iamalexander

7 stars
Not rated
GitHub

About

Integrates with Readwise to provide access to saved articles, books, highlights, and documents, enabling users to reference, analyze, and search across their personal knowledge collection during conversations.

Details

Author
iamalexander
Repository
IAmAlexander/readwise-mcp
GitHub stars
7
License
MIT License
Categories
Developer Tools, Design, Workplace, File Management, AI, Search, API, Infrastructure, Security, Knowledge Base

- Books & Articles: Browse your collection of saved books and articles
- Highlights: Access all your highlighted passages
- Search: Find content across your entire Readwise library
- Recent Content: Quickly retrieve your latest saved items
- Tag Management: Organize and filter content with tags
- Advanced Search: Powerful filtering by author, date, tags, and more
- Reading Progress: Track your reading status and completion percentage
- Bulk Operations: Efficiently manage multiple documents at once
- Content Management: Save, update, and delete content in your library
- Video Support: Access and interact with videos saved in your Readwise Reader
- Rate Limiting: Smart handling of API limits to prevent throttling
- Transport Options: Support for both stdio (Claude Desktop) and SSE (web) transports
- MCP Compliance: Full protocol compliance with proper request_id handling

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Readwise
    Command (node, npx, python, etc.) readwise-mcp
    Environment
    • READWISE_API_KEY your_api_key_here

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

To install Readwise MCP for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @iamalexander/readwise-mcp --client claude

1. Obtain a Readwise API Token:
- Log in to your Readwise account
- Go to <https://readwise.io/access_token> to generate your API token
- Copy the token for later use

2. Install from npm:

   npm install -g readwise-mcp

3. Or clone and build:

   git clone https://github.com/IAmAlexander/readwise-mcp.git
cd readwise-mcp
npm install
npm run build

4. Configure your API key:


npm run setup

Once connected to Claude, unleash your Readwise knowledge with questions like:

- "Find my highlights about 'vibes-first programming' and aesthetic IDEs"
- "What did I save about Claude Code's secret Easter eggs?"
- "Show me all articles tagged with 'AI' and 'productivity'"
- "What's in my reading list that I haven't started yet?"
- "Find articles by Paul Graham that I saved in the last 3 months"
- "Show me books I've completed reading"
- "Save this article to my Readwise: https://example.com/interesting-article"
- "Add the tag 'must-read' to that article about quantum computing"
- "What's my reading progress on that book about machine learning?"

bash

Deploy on Railway

1. Click the button above or go to Railway
2. Connect your GitHub repo
3. Add environment variable: READWISE_API_KEY
4. Deploy!

get_highlights

Retrieve highlights with filtering and pagination.

get_books

Get books from your library.

get_documents

Get documents from your library.

search_highlights

Search for highlights by query.

get_tags

List all tags in your library.

get_recent_content

Get recently saved content.

document_tags

Get, update, add, or remove tags on a document.

bulk_tags

Apply tags to multiple documents.

get_reading_progress

Get progress on a specific document.

update_reading_progress

Update reading status and progress.

get_reading_list

Get documents filtered by reading status.

create_highlight

Create a new highlight.

update_highlight

Modify an existing highlight.

delete_highlight

Remove a highlight.

create_note

Add a note to a highlight.

advanced_search

Powerful multi-parameter search.

search_by_tag

Find content by tags.

search_by_date

Find content by date range.

get_videos

List videos in your library.

get_video

Get video details with transcript.

create_video_highlight

Create highlight with timestamp.

get_video_highlights

Get all highlights for a video.

update_video_position

Save playback position.

get_video_position

Get saved playback position.

save_document

Save new content to library.

update_document

Modify document metadata.

delete_document

Remove a document.

bulk_save_documents

Save multiple documents.

bulk_update_documents

Update multiple documents.

bulk_delete_documents

Delete multiple documents.

The server provides 30 tools for interacting with your Readwise library:

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "readwise": {
            "env": {
                "READWISE_API_KEY": "your_api_key_here"
            },
            "args": [],
            "command": "readwise-mcp"
        }
    }
}

Linux

{
    "env": {
        "READWISE_API_KEY": "your_api_key_here"
    },
    "args": [],
    "command": "readwise-mcp"
}

Macos

{
    "env": {
        "READWISE_API_KEY": "your_api_key_here"
    },
    "args": [],
    "command": "readwise-mcp"
}

Windows

{
    "env": {
        "READWISE_API_KEY": "your_api_key_here"
    },
    "args": [
        "/c",
        "readwise-mcp"
    ],
    "command": "cmd"
}

Readwise MCP Server

smithery badge
Install in Cursor
Install in VS Code
Install in Claude Desktop
npm version

A Model Context Protocol (MCP) server for Readwise, allowing AI assistants to access your saved articles, books, highlights, and documents.

Features

- Books & Articles: Browse your collection of saved books and articles
- Highlights: Access all your highlighted passages
- Search: Find content across your entire Readwise library
- Recent Content: Quickly retrieve your latest saved items
- Tag Management: Organize and filter content with tags
- Advanced Search: Powerful filtering by author, date, tags, and more
- Reading Progress: Track your reading status and completion percentage
- Bulk Operations: Efficiently manage multiple documents at once
- Content Management: Save, update, and delete content in your library
- Video Support: Access and interact with videos saved in your Readwise Reader
- Rate Limiting: Smart handling of API limits to prevent throttling
- Transport Options: Support for both stdio (Claude Desktop) and SSE (web) transports
- MCP Compliance: Full protocol compliance with proper request_id handling

Installation

Installing via Smithery

To install Readwise MCP for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @iamalexander/readwise-mcp --client claude

Installing Manually

1. Obtain a Readwise API Token:
- Log in to your Readwise account
- Go to <https://readwise.io/access_token> to generate your API token
- Copy the token for later use

2. Install from npm:

   npm install -g readwise-mcp

3. Or clone and build:

   git clone https://github.com/IAmAlexander/readwise-mcp.git
cd readwise-mcp
npm install
npm run build

4. Configure your API key:

   # Run the setup wizard
npm run setup

# Or start with the API key directly
readwise-mcp --api-key YOUR_API_KEY

Docker Support

If you prefer using Docker:

1. Create config directory:

   mkdir -p ~/.readwise-mcp

2. Build and run:

   docker build -t readwise-mcp .
docker run -p 3001:3001 -e READWISE_API_KEY=your_key readwise-mcp

Usage Examples

Once connected to Claude, unleash your Readwise knowledge with questions like:

- "Find my highlights about 'vibes-first programming' and aesthetic IDEs"
- "What did I save about Claude Code's secret Easter eggs?"
- "Show me all articles tagged with 'AI' and 'productivity'"
- "What's in my reading list that I haven't started yet?"
- "Find articles by Paul Graham that I saved in the last 3 months"
- "Show me books I've completed reading"
- "Save this article to my Readwise: https://example.com/interesting-article"
- "Add the tag 'must-read' to that article about quantum computing"
- "What's my reading progress on that book about machine learning?"

Video-Related Examples

- "Show me all YouTube videos I've saved in Readwise"
- "What highlights did I make on that video about TypeScript?"
- "What's my current playback position for that AI conference video?"
- "Find videos in my library that mention 'machine learning'"
- "Create a highlight at 23:45 in the TypeScript tutorial with the note 'Important pattern'"
- "What did the speaker say around the 15-minute mark in that AI safety video?"
- "Show me the transcript of the programming tutorial I saved yesterday"

Feature Documentation

Basic Features

Browsing Content

- List books and articles: Retrieve your saved books with pagination - Get highlights: Access all your highlighted passages with filtering options - Search content: Full-text search across your entire library - Get recent content: Quickly access your latest saved items

Tag Management

Organize your content with tags:

- List all tags: Get all tags in your library
- Get tags for a document: View tags on a specific document
- Update tags: Replace all tags on a document
- Add a specific tag: Add a single tag to a document
- Remove a specific tag: Remove a tag from a document
- Bulk tagging: Apply tags to multiple documents at once

Advanced Search

Powerful filtering options for finding exactly what you need:

- query: Search text
- category: Filter by content type (book, article, etc.)
- tags: Filter by tags (comma-separated)
- author: Filter by author
- title: Filter by title
- location: Filter by location (new, later, archive, feed)
- dateFrom & dateTo: Date range in ISO 8601 format
- sortBy: Field to sort by (created_at, updated_at, title, author)
- sortOrder: Sort direction (asc, desc)

Reading Progress Tracking

Track your reading status and progress:

- Get reading progress: View current progress on any document
- Update reading progress: Set status, percentage, and page numbers
- Get reading list: Filter by reading status

Reading statuses:
- not_started: Haven't begun reading
- in_progress: Currently reading
- completed: Finished reading

Video Features

Access and interact with videos saved in your Readwise Reader:

Video Listing and Details

- List all videos: Browse videos from YouTube, Vimeo, and other platforms
- Get video details with transcript: Access complete metadata and time-synced transcripts

Video Highlights

- Create highlight with timestamp: Mark important moments in videos
- Get video highlights: Retrieve all highlights for a video, sorted by timestamp

Video Playback Position

- Update playback position: Save your current position for later resuming
- Get playback position: Resume where you left off

How Transcript Access Works

The video transcript feature:
1. Extracts the time-synced transcript from the video's HTML content
2. Parses timestamp and text pairs
3. Returns transcript as an array of segments with timestamps

This allows you to:
- Search for specific content within videos
- Create highlights at precise moments
- Jump directly to important points
- Reference video content with exact time context

Content Management

Save, update, and delete content:

- Save new content: Add URLs, articles, or custom content to your library
- Update document: Modify title, author, summary, tags, and more
- Delete document: Remove content (with safety confirmation)

Bulk Operations

Efficiently manage multiple documents at once:

- Bulk save: Save multiple URLs/content items
- Bulk update: Update multiple documents
- Bulk delete: Remove multiple documents
- Bulk tag: Apply tags to multiple documents

Safety Confirmations

All bulk operations and deletions require explicit confirmation to prevent accidental data loss:

- Single document deletion: Requires confirmation parameter
- Bulk operations: Require specific confirmation strings

These confirmations act as a "human in the loop" safety mechanism.

API Status

Check the API status and rate limit information at any time.

Available Tools

The server provides 30 tools for interacting with your Readwise library:

Core Tools

- get_highlights: Retrieve highlights with filtering and pagination - get_books: Get books from your library - get_documents: Get documents from your library - search_highlights: Search for highlights by query - get_tags: List all tags in your library - get_recent_content: Get recently saved content

Tag Management

- document_tags: Get, update, add, or remove tags on a document - bulk_tags: Apply tags to multiple documents

Reading Progress

- get_reading_progress: Get progress on a specific document - update_reading_progress: Update reading status and progress - get_reading_list: Get documents filtered by reading status

Highlight Management

- create_highlight: Create a new highlight - update_highlight: Modify an existing highlight - delete_highlight: Remove a highlight - create_note: Add a note to a highlight

Search Tools

- advanced_search: Powerful multi-parameter search - search_by_tag: Find content by tags - search_by_date: Find content by date range

Video Tools

- get_videos: List videos in your library - get_video: Get video details with transcript - create_video_highlight: Create highlight with timestamp - get_video_highlights: Get all highlights for a video - update_video_position: Save playback position - get_video_position: Get saved playback position

Document Management

- save_document: Save new content to library - update_document: Modify document metadata - delete_document: Remove a document

Bulk Operations

- bulk_save_documents: Save multiple documents - bulk_update_documents: Update multiple documents - bulk_delete_documents: Delete multiple documents

Available Resources

MCP Resources provide direct data access for LLM clients:

- books (readwise://books): List of books in your Readwise library
- recent-highlights (readwise://highlights/recent): Recent highlights from your library
- tags (readwise://tags): List of all tags in your Readwise library

Available Prompts

- readwise_highlight: Process highlights from Readwise
- Supports summarization, analysis, connection finding, and question generation
- Includes robust error handling and parameter validation
- Formats highlights in a reader-friendly way

- readwise_search: Search and process highlights from Readwise
- Provides formatted search results with source information
- Handles API errors gracefully with user-friendly messages
- Includes validation for required parameters

Demo and Testing

The repository includes demo files to help you test and explore functionality:

Demo Files

- demo/test-connection.html: Test basic connection to the server
- demo/mcp-demo.html: Comprehensive UI for all features
- demo/video-features.html: Specialized interface for video functionality
- demo/enhanced-transcript-features.html: Advanced transcript features

Running Tests

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.