Skip to main content

Readwise MCP Server - Connect your Readwise account to Claude AI

Project description

Readwise MCP Server ๐Ÿ“š

Connect your Readwise account to Claude AI and access all your highlights, books, and reading list directly in conversations!

Python 3.10+ FastMCP

โœจ What Can You Do?

Once set up, you can ask Claude:

  • "What's in my Readwise reading list?" - View all saved articles
  • "Show me my daily review highlights" - Get your spaced repetition review
  • "Search my highlights for 'productivity tips'" - Find specific highlights
  • "Save this article: https://example.com" - Add to your reading list
  • "List all my tags" - See your document tags
  • "Export all my highlights" - Backup your entire library

๐Ÿš€ 10-Minute Setup

What You Need

  • โœ… Readwise account (Get one here)
  • โœ… Claude AI (Pro/Team/Enterprise - any plan with MCP support)
  • โœ… Free Render account for hosting

Step 1: Get Your Readwise Token (1 min)

  1. Go to https://readwise.io/access_token
  2. Copy your access token
  3. Keep it handy

Step 2: Fork & Deploy Server (5 min)

Option A: Deploy to Render (Recommended)

  1. Fork this repository:

    • Click "Fork" button at the top of this GitHub page
    • This creates your own copy of the code
  2. Sign up at Render (free tier available)

  3. Create New Web Service:

    • Click "New +" โ†’ "Web Service"
    • Choose "Connect a Git repository"
    • Select your forked repository from the list
  4. Configure:

    • Name: readwise-mcp (or your choice)
    • Runtime: Docker (auto-detected)
    • Plan: Free
  5. Add Environment Variable (in Render dashboard):

    READWISE_TOKEN=<paste_your_token_from_step_1>
    

    That's it! No API key needed.

  6. Click Create Web Service and wait ~2 minutes

Option B: Other Platforms

Railway / Fly.io / Google Cloud Run

The server works on any platform that supports Docker. See Dockerfile for configuration.

Step 3: Verify It's Running (1 min)

Visit: https://YOUR-SERVICE-NAME.onrender.com/health

You should see:

{
  "status": "healthy",
  "service": "readwise-mcp-enhanced",
  "authentication": "enabled"
}

โœ… If you see this, you're good to go!

Step 4: Connect to Claude (3 min)

  1. Open Claude AI at https://claude.ai

  2. Go to Settings โ†’ Integrations (or similar MCP section)

  3. Add MCP Server:

    Name: Readwise
    URL: https://YOUR-SERVICE-NAME.onrender.com
    

    No API key needed!

  4. Test Connection - Should show "12 tools available"

  5. Save and you're done! ๐ŸŽ‰

Step 5: Start Using!

Try asking Claude:

  • "What did I save to Readwise today?"
  • "Show me highlights from my AI books"
  • "Get my daily review"

๐Ÿ“– All Available Features

Reader Tools (5 tools)

  • Save documents - Add URLs to your reading list
  • List documents - Browse with filters (location, category, author, date)
  • Update documents - Edit titles, tags, notes
  • Delete documents - Remove from library
  • List tags - View all your tags

Highlights Tools (7 tools)

  • List highlights - Browse with date filters
  • Daily review - Spaced repetition system
  • Search highlights - Find by text query using enhanced MCP endpoint with vector/semantic search
  • List books - View books with highlight counts
  • Get book highlights - All highlights from a specific book
  • Export highlights - Backup everything
  • Create highlights - Add manual highlights

๐Ÿš€ Advanced Features

  • โœ… Enhanced MCP Search - Uses Readwise's MCP endpoint with vector/semantic search for better results
  • โœ… Unlimited pagination - Fetch ALL your data
  • โœ… Incremental sync - Get only new/updated items
  • โœ… Smart filtering - Filter by author, site, dates
  • โœ… Bulk export - Backup your entire library

๐Ÿ†“ Cost

100% Free for Personal Use:

  • โœ… Render: 750 hours/month (runs 24/7)
  • โœ… Uses your existing Readwise subscription
  • โš ๏ธ Server "sleeps" after 15 min (10 sec wake-up on first request)

Optional Upgrade:

  • ๐Ÿ’ต $7/month for Render Starter (always-on, no sleep)

๐Ÿ› ๏ธ Troubleshooting

"Connection Failed" in Claude

  1. Visit https://YOUR-SERVICE.onrender.com/health - Should return healthy status
  2. Verify the URL is correct in Claude settings
  3. Wait 10 seconds if server was sleeping (free tier)

Server Takes Long to Respond

  • Free tier "sleeps" after 15 min inactivity
  • First request after sleep takes ~10 seconds to wake up
  • This is normal - subsequent requests are fast!

"Readwise API Error"

Still Need Help?

๐Ÿ”’ Security & Privacy

  • โœ… All requests encrypted via HTTPS
  • โœ… Your Readwise token stays on your server (never exposed to Claude)
  • โœ… Open source - inspect the code yourself!
  • โš ๏ธ Important: Your server URL is public but only works with YOUR Readwise token

Keep your secrets safe:

  • Never commit .env files with tokens
  • Don't share your Readwise token
  • Only you can access your data through your server

๐Ÿงช For Developers

Run Locally

# Install dependencies
pip install -r requirements.txt

# Configure
cp .env.example .env
# Edit .env with your tokens

# Run
python main.py

# Test
python test_all_tools.py

Docker

docker build -t readwise-mcp .
docker run -p 8000:8000 \
  -e READWISE_TOKEN=your_token \
  readwise-mcp

Project Structure

readwise-mcp-server/
โ”œโ”€โ”€ main.py              # FastMCP server (12 tools with enhanced MCP search)
โ”œโ”€โ”€ readwise_client.py   # Readwise API client (supports MCP endpoints)
โ”œโ”€โ”€ requirements.txt     # Python dependencies
โ”œโ”€โ”€ Dockerfile          # Container config
โ”œโ”€โ”€ render.yaml         # Render deployment
โ””โ”€โ”€ test_all_tools.py   # Test suite

๐Ÿค Contributing

Contributions welcome! Please:

  1. Fork the repo
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

๐Ÿ™ Credits

Built with:

โญ Support

If you find this useful, please star the repository!


Made with โค๏ธ for the Readwise and Claude AI community

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_mayankbohra_remote_readwise_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_mayankbohra_remote_readwise_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_mayankbohra_remote_readwise_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4391162c141d4c66aea400c972527febdd1aa097bc457efdbfbcec5343261f40
MD5 19efb3dc3d36b449df1b62c0afc088a0
BLAKE2b-256 ee361c8b90518de227ec553a4b735fb02842205e1d7b0d1469e34cd2fef7abcb

See more details on using hashes here.

File details

Details for the file iflow_mcp_mayankbohra_remote_readwise_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_mayankbohra_remote_readwise_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 42.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_mayankbohra_remote_readwise_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66b2bd257218201dab8127485fe4605b8e258549cc9de6738ee64e92bf99ecc4
MD5 f02b34c71adebb2801ea66eb4ae38ff9
BLAKE2b-256 4860527733621007182b4780bf0d1852ec9dd161af48f656ce0b571f97b37531

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page