reading-companion

reading-companion

A 4-stage reading companion that helps users set reading goals, discover books, track progress, and deepen learning through reflection, integrated with Claude Desktop.

Category
Visit Server

README

Reading Companion

A 4-stage reading companion that helps you set goals, discover books, track progress, and deepen learning through reflection.

Works as an MCP (Model Context Protocol) server integrated with Claude Desktop.

The 4 Stages

┌──────────────┐     ┌──────────────┐     ┌──────────────┐
│   STAGE 1    │     │   STAGE 2    │     │   STAGE 3    │
│ Interviewer  │ ──▶ │   Context    │ ──▶ │   Syllabus   │
│              │     │   Builder    │     │   Builder    │
│ "Who are you │     │  "Extract    │     │ "Build your  │
│  as a reader"│     │   patterns"  │     │  book stacks"│
└──────────────┘     └──────────────┘     └──────────────┘
       │                                          │
       │              ┌──────────────┐            │
       └────────────▶ │   STAGE 4    │ ◀──────────┘
                      │  Reflection  │
                      │   Partner    │
                      │              │
                      │ "What did    │
                      │  you learn?" │
                      └──────────────┘
  1. Interviewer - Builds your reading profile through conversation
  2. Context Builder - Extracts deeper patterns from your profile
  3. Syllabus Builder - Creates curated book stacks for each domain
  4. Reflection Partner - Helps process books and track growth

Installation

Prerequisites

  • Python 3.10+
  • uv (Python package manager)
  • Claude Desktop

Setup

# Clone the repo
git clone https://github.com/aby0/reading-companion
cd reading-companion

# Install dependencies
uv sync

Configure Claude Desktop

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "reading-companion": {
      "command": "uv",
      "args": ["--directory", "/path/to/reading-companion", "run", "reading-companion"]
    }
  }
}

Replace /path/to/reading-companion with the actual path where you cloned the repo.

Restart Claude Desktop. You should see "Reading Companion" in the MCP servers list (hammer icon).

Usage

Initial Setup (Do Once)

Step 1: Run the Interview

You: "Interview me for my reading goals"

Claude will ask about your goals, preferences, and context. At the end, your profile is saved.

Step 2: Extract Context (Optional)

You: "Analyze my reading profile"

Claude extracts deeper patterns to improve recommendations.

Step 3: Build Your Book Stacks

You: "Build me a reading stack for classic literature"

Get curated book recommendations for each domain.

Ongoing Use

Log a completed book:

You: "I just finished Anna Karenina by Tolstoy"

Reflect on a book:

You: "I want to reflect on Anna Karenina"

Check progress:

You: "How's my reading progress?"

Get next recommendation:

You: "What should I read next?"

Add a book manually:

You: "Add 'War and Peace' to my classic lit stack"

Available Tools

Stage 1: Interviewer

Tool Description
start_interview Begin the reading goal interview
save_profile Save interview results as profile
get_profile View current profile

Stage 2: Context Builder

Tool Description
extract_context Analyze profile for deeper patterns
update_latent_features Save extracted features

Stage 3: Syllabus Builder

Tool Description
build_bookstack Generate recommendations for a domain
save_bookstack Save generated book stack
get_bookstacks View all book stacks
get_next_book Get next unread book
add_book_to_stack Manually add a book

Stage 4: Reflection

Tool Description
log_book Quick log a completed book
start_reflection Begin deep reflection session
save_reflection Save reflection insights
get_reading_log View reading history
get_progress Get progress summary

Author & Pattern Analysis

Tool Description
analyze_reading_patterns Analyze your reading history for patterns
get_author_profile View profile for an author you've read
update_author_notes Add style notes about an author
get_favorite_authors List your top authors by affinity
add_book_connection Link related books together
get_similar_books Find books connected to one you've read

Data Storage

All your reading data is stored in ~/reading-companion-data/ (separate from the code):

~/reading-companion-data/
├── profile.md                    # Your profile (human-readable)
├── profile.json                  # Profile data (system)
├── bookstacks.json               # All stacks data (system)
├── authors.json                  # Author tracking (system)
├── patterns.json                 # Reading patterns (system)
├── connections.json              # Book connections (system)
│
├── bookstacks/                   # Book recommendations
│   ├── _index.md                 # Overview of all stacks
│   ├── classic_lit.md            # One file per domain
│   └── neuroscience.md
│
├── progress/                     # Progress tracking
│   ├── _current.md               # Current status with progress bars
│   ├── _insights.md              # Reading pattern insights
│   └── reading_log.json          # Structured log (system)
│
├── authors/                      # Author profiles
│   ├── _index.md                 # All authors by affinity
│   ├── leo-tolstoy.md            # One file per author
│   └── james-clear.md
│
└── reflections/                  # Book reflections
    ├── _index.md                 # Index of all books read
    ├── anna-karenina.md          # One file per book
    └── atomic-habits.md

Key feature: All .md files are human-readable and can be opened in VS Code, Obsidian, or any text editor.

Customization

Prompts

The prompts that guide each stage are in the reading_companion/prompts/ directory:

  • interviewer.md - How interviews are conducted
  • context_builder.md - How profiles are analyzed
  • syllabus_builder.md - How books are curated
  • reflection.md - How reflections are guided

Feel free to customize these to match your preferences.

Domains

You can have any reading domains you want - they're not hardcoded. During the interview, define whatever areas interest you:

  • Classic Literature
  • Science Fiction
  • Neuroscience
  • Philosophy
  • Engineering
  • History
  • Whatever you're curious about!

Principles

  • Intentional over random - Every book serves a purpose
  • Learning over consuming - Reflection matters as much as reading
  • Progress over perfection - Steady beats ambitious
  • Personal over popular - What fits YOU, not bestseller lists

Troubleshooting

"Reading Companion not appearing in Claude Desktop"

  • Check that the path in claude_desktop_config.json is correct
  • Restart Claude Desktop
  • Check the MCP logs for errors

"No profile found"

  • Run start_interview first to create your profile

"Domain not found"

  • Check your domain ID matches what's in your profile
  • Use get_profile to see available domains

Development

To run the server directly for testing:

uv run reading-companion

To test with the MCP inspector:

npx @modelcontextprotocol/inspector uv run reading-companion

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured