/ Verzeichnis / Playground / ebook-mcp
● Community onebirdrocks ⚡ Sofort

ebook-mcp

von onebirdrocks · onebirdrocks/ebook-mcp

Point Claude at your EPUB and PDF library — get metadata, TOC, and chapter content in structured form so the model can quote and summarize precisely.

ebook-mcp wraps Python's common EPUB/PDF libs into MCP tools. Unlike generic 'read a file', it exposes table of contents and chapter boundaries, so Claude can fetch just the chapter you're asking about instead of dumping 500 pages into context.

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

ebook.replay ▶ bereit
0/0

Installieren

Wählen Sie Ihren Client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "ebook": {
      "command": "uvx",
      "args": [
        "ebook-mcp"
      ],
      "_inferred": true
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "ebook": {
      "command": "uvx",
      "args": [
        "ebook-mcp"
      ],
      "_inferred": true
    }
  }
}

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "ebook": {
      "command": "uvx",
      "args": [
        "ebook-mcp"
      ],
      "_inferred": true
    }
  }
}

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "ebook": {
      "command": "uvx",
      "args": [
        "ebook-mcp"
      ],
      "_inferred": true
    }
  }
}

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "ebook",
      "command": "uvx",
      "args": [
        "ebook-mcp"
      ]
    }
  ]
}

Continue nutzt ein Array von Serverobjekten statt einer Map.

~/.config/zed/settings.json
{
  "context_servers": {
    "ebook": {
      "command": {
        "path": "uvx",
        "args": [
          "ebook-mcp"
        ]
      }
    }
  }
}

In context_servers hinzufügen. Zed lädt beim Speichern neu.

claude mcp add ebook -- uvx ebook-mcp

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: ebook-mcp

Find and quote a passage you vaguely remember

👤 Readers / researchers ⏱ ~5 min beginner

Wann einsetzen: 'There was something in that book about X...' — you need the exact quote and can't be bothered to flip pages.

Voraussetzungen
  • The book file on disk — EPUB or PDF
Ablauf
  1. Load TOC
    Show me the TOC of ~/Books/deep-work.epub. Which chapter likely discusses shallow work vs deep work?✓ Kopiert
    → TOC + best-guess chapter
  2. Pull the chapter
    Get the text of chapter 3. Find the passage about shallow-work-as-default.✓ Kopiert
    → Quoted passage

Ergebnis: Quote in hand, citable, in 2 minutes.

Fallstricke
  • Scanned PDFs have no text layer — Run OCR first

Generate a chapter-by-chapter summary of a technical book

👤 Engineers learning from a book on their TBR ⏱ ~30 min intermediate

Wann einsetzen: You want to decide whether to actually read a book, or need a refresher after finishing.

Ablauf
  1. TOC first
    Load TOC of book.pdf. Show me chapter titles and approximate page ranges.✓ Kopiert
    → Outline
  2. Per-chapter summary
    For each chapter, load its content and produce a 3-bullet summary. Output as a single Markdown doc.✓ Kopiert
    → Complete book digest

Ergebnis: A 1-2 page book digest you can share or revisit.

Fallstricke
  • Huge books blow the token budget if you load all chapters at once — Process one chapter at a time; write intermediate summaries to disk
Kombinieren mit: filesystem

Audit your ebook library's metadata

👤 Calibre users, ebook hoarders ⏱ ~15 min beginner

Wann einsetzen: Your library has 500 ebooks and you want to find ones with missing title/author metadata.

Ablauf
  1. Scan
    For each .epub under ~/Books, get metadata. List any where title or author is missing or contains 'Unknown'.✓ Kopiert
    → Incomplete-metadata list

Ergebnis: Quick metadata hygiene pass.

Kombinieren mit: filesystem

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

ebook + local-rag

Build a searchable library index

For each book, get_chapter by chapter, ingest into local-rag with book title as source.✓ Kopiert
ebook + notion

Auto-populate your reading journal

Take this just-finished book; summarize each chapter; create a Notion page in 'Books Read'.✓ Kopiert

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
get_metadata path: str First pass on any book free
get_toc path: str Before pulling chapter content free
get_chapter path, chapter_id or id_range Load a specific chapter free
get_pages path, from_page, to_page (PDF only) Page-range extraction for PDFs free

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
None
Tokens pro Aufruf
Chapters 2k-30k tokens depending on length
Kosten in €
Free (Apache 2.0)
Tipp
Always load TOC first. Then load chapters one at a time rather than the whole book.

Sicherheit

Rechte, Secrets, Reichweite

Credential-Speicherung: None — local files only
Datenabfluss: Book content goes to your LLM provider

Fehlerbehebung

Häufige Fehler und Lösungen

Unable to parse PDF

Scanned/image-only PDF has no text layer. Run ocrmypdf first.

Prüfen: pdftotext input.pdf - | head
EPUB chapter ID not found

IDs come from the TOC exactly. Call get_toc first.

Large PDF makes get_chapter timeout

Use get_pages with a smaller page range; batch.

Alternativen

ebook-mcp vs. andere

AlternativeWann stattdessenKompromiss
Calibre + custom scriptYou want full Calibre integrationMore setup; no MCP wrapper
pdfplumber / pymupdf directlyYou build your own toolingBuild your own MCP wrapper

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen