Skip to main content

MCP server for extracting annotations and highlights from e-readers (Kobo, Kindle, and more)

Project description

annotation-extractor

MCP server for extracting annotations, highlights, and reading progress from e-readers.

Currently supports Kobo, with an extensible backend architecture for Kindle and others (coming soon)

Quick start

pip install annotation-extractor

# Or install from source
git clone https://github.com/rohitkaushik/annotation-extractor.git
cd annotation-extractor
pip install -e .

Usage

With Claude Code

claude mcp add annotations annotation-extractor

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "annotations": {
      "command": "annotation-extractor"
    }
  }
}

Manual

# Auto-detect mounted e-reader
annotation-extractor

# Or point to a specific Kobo database
KOBO_DB_PATH=/path/to/KoboReader.sqlite annotation-extractor

Tools

Tool Description
list_books List all books, optionally filtered to those with annotations
get_annotations Get highlights and notes for a specific book (by title or ID)
search_annotations Full-text search across all highlights and notes
get_reading_progress Reading progress, time spent, and status for all books
get_book_details Detailed metadata for a specific book

All tools accept optional backend_name (e.g., "kobo") and db_path parameters. When omitted, the server auto-detects connected devices.

Supported e-readers

Reader Status Data source
Kobo Supported .kobo/KoboReader.sqlite via USB
Kindle Planned My Clippings.txt via USB

Adding a new backend

  1. Create src/annotation_extractor/backends/yourreader.py implementing EReaderBackend
  2. Add your backend to _ALL_BACKENDS in registry.py
  3. No changes needed to server.py or models.py

Development

git clone https://github.com/rohitkaushik/annotation-extractor.git
cd annotation-extractor
pip install -e ".[dev]"
pytest

License

MIT

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

annotation_extractor-0.2.1.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

annotation_extractor-0.2.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file annotation_extractor-0.2.1.tar.gz.

File metadata

  • Download URL: annotation_extractor-0.2.1.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for annotation_extractor-0.2.1.tar.gz
Algorithm Hash digest
SHA256 47fc1ebd4f2ca746c6e9f014185ee08a6c317e34f2e3c2ea16b8644d77ec2b00
MD5 d83a51d16dedfb04b9bd08b2ec52feef
BLAKE2b-256 c2810315f5d49713e5113618a88df826cb18cfe86a4151d8f2007ba4324d62a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for annotation_extractor-0.2.1.tar.gz:

Publisher: publish.yml on rkaushik29/annotation-extractor-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file annotation_extractor-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for annotation_extractor-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24d104e0d8761b9490dbe65337afc3b9901050f2982811ded89e10befc220af0
MD5 67b772087b2602d22d35c1c27bf2e1a7
BLAKE2b-256 740691c58ec2e874452e48435a95dfb9a5e760699d047a00e0f3686470c31500

See more details on using hashes here.

Provenance

The following attestation bundles were made for annotation_extractor-0.2.1-py3-none-any.whl:

Publisher: publish.yml on rkaushik29/annotation-extractor-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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