Skip to main content

Local StewReads MCP server for EPUB conversion

Project description

stewreads

Local-first StewReads MCP server for Claude Desktop on macOS.

Current Scope

  • Local stdio MCP server (no backend calls)
  • EPUB generation from markdown
  • Save generated ebooks to a configured local directory
  • Reuse current StewReads ebook-generation prompt

Not In Scope (Current Iteration)

  • Email sending
  • Gmail config
  • PDF generation

Requirements

  • Python 3.10+
  • uv

macOS install:

brew install uv

Install (Recommended)

Install as a local tool:

uv tool install --force git+https://github.com/ankitvg/stewreads.git

This includes pandoc via pypandoc-binary, so no separate pandoc install is required.

Install (Repo Development)

uv sync

Configuration

Create ~/.config/stewreads/config.toml:

[paths]
output_dir = "/Users/you/Projects/generated_books"

Optional environment overrides:

  • STEWREADS_CONFIG_PATH (path to config file)
  • STEWREADS_OUTPUT_DIR (overrides configured output dir)

Run MCP Server (Tool Install)

stewreads-mcp

Run MCP Server (Repo Development)

uv run stewreads-mcp

Claude Desktop (Mac) Example

Add to Claude Desktop MCP config:

{
  "mcpServers": {
    "stewreads": {
      "command": "/Users/you/.local/bin/stewreads-mcp",
      "env": {
        "STEWREADS_CONFIG_PATH": "/Users/you/.config/stewreads/config.toml"
      }
    }
  }
}

Exposed MCP Tools

  • get_stew_prompt()
  • get_stew_config()
  • save_stew_config(output_dir)
  • save_ebook(markdown, title, filename?, original_prompt?)

First-Time Claude Flow

  1. Call get_stew_config().
  2. If configured is false, ask the user for their preferred output directory and call save_stew_config(output_dir=...).
  3. Call save_ebook(...) after config is set.

Dev Shell Safety

When running multi-step shell commands, you may see set -euo pipefail:

  • -e: stop on command failure.
  • -u: fail on unset variables.
  • -o pipefail: fail if any command in a pipeline fails.

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

stewreads_mcp-0.1.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

stewreads_mcp-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file stewreads_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: stewreads_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for stewreads_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 433e4bedc47a690245480b1946f304da7a447a9777bd8a9a3f349cce7aa8c66f
MD5 3ae2a1a58228d65bd66e6f5604fc45ad
BLAKE2b-256 f438a512bdb8c27720bff3f1adc83d826909ae4005cb4c9f63ed6e6dc3772294

See more details on using hashes here.

File details

Details for the file stewreads_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: stewreads_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for stewreads_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b179e2e365cb0230a7e858c05482ea230eef8a3f467c44cdda27dde397f52a8
MD5 5ce0a95cf1bfc21999ac8e111b00b753
BLAKE2b-256 de512be6901e7da2a5b48c3ea48d45dcac4c047d2da2ae0fb4ffacddb0e199f6

See more details on using hashes here.

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