reader-mcp-server CLAUDE.md

reader-mcp-server CLAUDE.md is an instructions file for coding agents from xinthink/reader-mcp-server. It costs 707 tokens per session, scanned A, original, MIT.

Project instructions for a Model Context Protocol server that connects Readwise Reader, a service for saving and reading articles, to compatible AI clients.

In plain words
What is it for?
Use them when installing dependencies, configuring the Readwise token, running the server, or working on its document-listing tool.
Why use it?
They explain the project structure, dependencies, required access token, and commands needed to run or develop the server.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/xinthink/reader-mcp-server/claude-md
Clone the repo
git clone --depth 1 https://github.com/xinthink/reader-mcp-server

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reader-mcp-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xinthink/reader-mcp-server/claude-md.svg)](https://agentmods.dev/instructions/xinthink/reader-mcp-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/xinthink/reader-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/xinthink/reader-mcp-server/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 707 This file is loaded in full into every session.
When invoked 707 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00707 $0.00707
Opus 5 $0.00353 $0.00353
Sonnet 5 $0.00141 $0.00141
Haiku 4.5 $0.00071 $0.00071

Measured 3d ago against content hash c7ad64d8f42d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

reader-mcp-server CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

This is a Model Context Protocol (MCP) server that integrates with Readwise Reader API. It exposes a list_documents tool that allows MCP-compatible clients like Claude Desktop to interact with a user's Readwise Reader library.

Commands for Development

Running the Server

To run the server locally:

uv run main.py

Dependencies

This project uses uv for dependency management. Key dependencies include:

  • mcp[cli] - The Model Context Protocol Python SDK
  • httpx - For async HTTP requests to the Readwise API
  • dotenv - For loading environment variables

To install dependencies:

uv sync

Environment Setup

The server requires an ACCESS_TOKEN environment variable with a Readwise Reader API token. This can be provided either:

  1. As an environment variable
  2. In a .env file in the project directory

Code Architecture

Core Components

  1. main.py - The main server implementation:

    • Uses FastMCP from the MCP Python SDK
    • Implements the list_documents tool
    • Manages the Readwise API client lifecycle
    • Handles parameter validation and API communication
  2. models.py - Data models:

    • ReaderDocument - Represents a document from Readwise Reader
    • ListDocumentResponse - Response format for the document list API

Key Implementation Details

  • The server uses the FastMCP framework which handles all MCP protocol details
  • It connects to the Readwise Reader API at https://readwise.io/api/v3
  • The list_documents tool supports filtering by location, update time, content inclusion, and pagination
  • Authentication is handled via the ACCESS_TOKEN environment variable
  • The server implements proper error handling and logging

MCP Integration

The server exposes one tool:

  • list_documents - Lists documents from the Readwise Reader library with flexible filtering options

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 100 lines · 707 tokens per session scan A c7ad64d8f42d

Subscribe to this mod's changes

reader-mcp-server CLAUDE.md is an instructions file published in the GitHub repository xinthink/reader-mcp-server (11 stars, last pushed 5mo ago), licensed MIT. It adds 707 tokens to every session, about $0.0035 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.