mcp-readwise: Instructions file for Claude Code

CLAUDE.md

mcp-readwise CLAUDE.md is an instructions file for Claude Code from CaseyRo/mcp-readwise. It costs 370 tokens per session, scanned A, original, MIT.

A set of development instructions for an MCP server that connects Claude to Readwise, a service for saving and reviewing reading highlights. The server adds selected reading, EPUB, tagging, progress, and writing-material tools beyond the official connector.

In plain words
What is it for?
Use it when changing the server, its FastMCP tool definitions, output models, tests, or release process.
Why use it?
It helps contributors avoid duplicating tools already provided by the official connector and keeps the server's interfaces and tests compatible. It also documents how to run checks and test the server through the MCP protocol.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is CaseyRo/mcp-readwise's own configuration. It tells Claude Code how to work on mcp-readwise itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-readwise configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CaseyRo/mcp-readwise. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CaseyRo/mcp-readwise/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/CaseyRo/mcp-readwise

Made for: Claude Code.

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 mcp-readwise CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/caseyro/mcp-readwise/claude-md/github.svg)](https://agentmods.dev/instructions/caseyro/mcp-readwise/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/caseyro/mcp-readwise/claude-md"><img src="https://agentmods.dev/badge/instructions/caseyro/mcp-readwise/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-readwise CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/caseyro/mcp-readwise/claude-md"><img src="https://agentmods.dev/badge/instructions/caseyro/mcp-readwise/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 370 This file is loaded in full into every session.
When invoked 370 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00370 $0.00370
Opus 5.5 $0.00148 $0.00148
Sonnet 5.5 $0.00074 $0.00074
Haiku 4.5 $0.00037 $0.00037

Measured 1mo ago against content hash 52be9e2f9502, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-readwise 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 1mo 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 · 20 lines

What it actually says

CLAUDE.md

Project overview, structure and conventions: see AGENTS.md and README.md.

uv sync && uv run pytest && uv run ruff check .

Scope: what this server adds over the official connector

The official claude.ai Readwise connector (mcp__claude_ai_readwise_MCP__…) covers Reader search/list/create/move/tags, highlight CRUD and highlight tags, highlight vector search and daily review. This server keeps only the gap: EPUB delivery (save_markdown_as_epub, verify_epub_received), branded save_markdown, engagement-scored reading_status / writing_material, update_progress, reader_get_by_url (exact URL lookup) and v2 tags (list_tags for ids, create_tag, delete_tag). Don't re-add tools the connector already has.

fastmcp 4 idioms

  • Tools are plain async functions registered in server.py with mcp.tool(fn, title=..., annotations=...); output models must stay additive-only (tests/test_output_schema_contract.py).
  • Raise fastmcp.exceptions.ToolError for caller mistakes.
  • Test over the wire with the in-memory fastmcp.Client(mcp) (tests/test_mcp_protocol.py); see the mcp-testing skill.
  • Releases are tag-only: after a merge, release.yml pushes the next v* tag; no version-bump commits. Deploys rebuild from source. main is protected (PR + test check). See the cdit-release-pipeline skill.
  • Behind an MCP portal, the portal's tool catalog needs a manual sync after tool-surface changes.
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. 1mo ago Changed · +6 tokens per session 52be9e2f9502
  2. 1mo ago First seen · 20 lines · 364 tokens per session scan A 6afc790a8546

Subscribe to this mod's changes

mcp-readwise CLAUDE.md is an instructions file published in the GitHub repository CaseyRo/mcp-readwise (1 stars, last pushed 8d ago), licensed MIT. It adds 370 tokens to every session, about $0.0015 per session on Opus 5.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-09-29.

Related

mcp-readwise CLAUDE.md compared with instructions from other repositories

mcp-readwise CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-readwise CLAUDE.mdCaseyRo/mcp-readwiseInstructions file18d agoMITA370Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode