Provides access to Readwise highlights and documents through vector and full-text search capabilities, enabling retrieval and exploration of saved reading materials and annotations.
Readwise MCP HTTP Server
A Node.js HTTP server that provides proper MCP (Model Context Protocol) over HTTP access to Readwise highlights and documents, using the official @readwise/readwise-mcp
module.
Features
- 🔍 Search Highlights: Vector and full-text search through your Readwise highlights (using official Readwise MCP module)
- 📡 Streaming Responses: Real-time streaming of search results
- 🏥 Health Checks: Server health monitoring
- 🔄 Automatic Retries: Built-in retry logic for API failures
- 🛡️ CORS Support: Cross-origin request support
- 🔍 Comprehensive Debugging: Detailed logging for development and troubleshooting
- 🌐 Network Access: Accessible from all network interfaces
- ✅ Official Module: Uses the same tool implementation as the official Readwise MCP module
Installation
- Install dependencies:
- Create environment file:
- Add your Readwise access token to
.env
:
Usage
Development
Production
Watch Mode
Debug Mode
Enable detailed debugging by setting the DEBUG
environment variable:
Debug mode provides detailed logging for:
- Connection attempts
- Request/response details
- Tool execution steps
- API calls to Readwise
- Error details
API Endpoints
MCP Protocol Endpoint
MCP Streaming Endpoint
Server Info
Health Check
Available Tools
The server provides the same tools as the official Readwise MCP module:
search_readwise_highlights
Search through your Readwise highlights using vector search and full-text queries.
Parameters:
vector_search_term
(required): Semantic search term for vector searchfull_text_queries
(required): Array of field-specific searches
Note: Both parameters are required. Empty arguments will result in a validation error.
Search Field Types:
document_author
- Author of the source documentdocument_title
- Title of the source documenthighlight_note
- Notes you've added to highlightshighlight_plaintext
- The actual highlighted texthighlight_tags
- Tags you've applied to highlights
Example Usage
Initialize MCP Connection
List Available Tools
Search Highlights (MCP Protocol)
Stream Search Results (MCP Protocol)
Invalid Arguments Example
Response:
Environment Variables
ACCESS_TOKEN
(required): Your Readwise access tokenPORT
(optional): Server port (default: 3000)BASE_URL
(optional): Readwise API base URL (default: https://readwise.io)DEBUG
(optional): Enable debug logging (set totrue
for detailed logs)NODE_ENV
(optional): Set todevelopment
to enable debug mode automatically
Network Connectivity
The servers are configured to bind to all network interfaces (0.0.0.0
), making them accessible from:
- Localhost:
http://localhost:3000
- Local Network:
http://YOUR_IP_ADDRESS:3000
- Docker:
http://host.docker.internal:3000
To find your server's IP address:
Error Handling
The server includes comprehensive error handling:
- Input validation using Zod schemas
- Automatic retry logic for failed API calls
- Proper HTTP status codes
- Detailed error messages
- Comprehensive logging for debugging
Debugging
The server provides extensive debugging capabilities:
Debug Logs
When debug mode is enabled, you'll see detailed logs for:
- Connection tracking: Every incoming request with IP and user agent
- Request processing: Step-by-step MCP request handling
- Tool execution: Detailed tool call processing
- API interactions: Readwise API calls and responses
- Streaming: Real-time streaming progress
- Error details: Full error stack traces and context
Debug Output Example
Development
Project Structure
Scripts
npm run build
- Compile TypeScript to JavaScriptnpm run dev
- Run in development mode with hot reloadnpm run watch
- Watch for changes and restartnpm start
- Run compiled JavaScript
License
MIT
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables searching and accessing Readwise highlights and documents through HTTP endpoints using the Model Context Protocol. Provides vector and full-text search capabilities with streaming responses for retrieving reading highlights and notes.
Related MCP Servers
- -securityAlicense-qualityEnables access and interaction with your Readwise library, allowing you to retrieve and search highlights, books, and documents through natural language queries when using Claude or other MCP-compatible assistants.Last updated -20MIT License
- -securityFlicense-qualityA Model Context Protocol Server that enables language models to access and manipulate Readwise documents and highlights programmatically.Last updated -7
- AsecurityAlicenseAqualityA Model Context Protocol server that connects MCP-compatible clients like Claude and VS Code to your Readwise Reader library, allowing them to list, retrieve, and update documents in your personal knowledge repository.Last updated -110MIT License
- -securityAlicense-qualityA Model Context Protocol server that provides intelligent file reading and semantic search capabilities across multiple document formats with security-first access controls.Last updated -5MIT License