Skip to main content
Glama
zhamanov-seabus

kindlemcp

kindlemcp

Send any document straight to your Kindle, via Amazon's Send-to-Kindle email service. Ships as both a command-line tool and an MCP server, so you can send from a shell or straight from an AI assistant (Claude Desktop, Claude Code, etc.).

Markdown is converted to EPUB with pandoc; PDF and EPUB files are sent as-is.

No secrets live in the code — the Gmail SMTP credential and your Kindle address are read from the environment or from local config files that are gitignored.

Requirements

  • Python 3.10+

  • pandoc (only needed for Markdown input) — brew install pandoc. pandoc is an external binary, not a Python dependency.

  • A Gmail account with an App Password (for SMTP).

  • Your Send-to-Kindle email address, and the Gmail sender added to your Amazon approved senders list (Amazon → PreferencesPersonal Document SettingsApproved Personal Document E-mail List). This is a one-time step; documents from any other sender are silently dropped by Amazon.

Related MCP server: Pandoc Bridge

Install

pipx install kindlemcp          # installs `kindlemcp` (MCP) and `kindlemcp-send` (CLI)
# or run without installing:
uvx --from kindlemcp kindlemcp-send --title "Note" report.md

For local development from a checkout:

python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"

Configuration

Both values can come from the environment or a config file. Copy the examples:

cp .env.example .env                 # fill in SMTP_URL
cp kindle.conf.example kindle.conf   # fill in KINDLE_ADDR  (or use ~/.kindle.conf)

.env:

SMTP_URL=smtp://you%40gmail.com:your_app_password@smtp.gmail.com:587

kindle.conf (or ~/.kindle.conf):

KINDLE_ADDR=you_xxxxxx@kindle.com

Both files are gitignored and never committed.

Config resolution order

Setting

Looked up in order

SMTP_URL

env var → ./.env~/.kindle.env~/code/aicourse/.env (legacy)

KINDLE_ADDR

env var → ./kindle.conf~/.kindle.conf

CLI usage

# Markdown -> EPUB -> Kindle
kindlemcp-send --title "My Report" report.md

# PDF or EPUB, sent as-is
kindlemcp-send --title "My Report" report.pdf

# Markdown from stdin
echo "# Hello" | kindlemcp-send --title "Quick Note"

--title becomes the email subject, which Amazon uses as the document name on the Kindle.

The old ./kindle_send.py script still works — it is now a thin shim that calls the package.

MCP server

The kindlemcp command runs an MCP server over stdio exposing a single tool:

  • send_to_kindle(title, content?, file_path?) — provide exactly one of content (Markdown text, converted to EPUB) or file_path (an existing .md / .pdf / .epub file). Returns a human-readable status string.

Claude Desktop / .mcp.json

Add this to your MCP client config (Claude Desktop claude_desktop_config.json, or a project .mcp.json for Claude Code):

{
  "mcpServers": {
    "kindlemcp": {
      "command": "uvx",
      "args": ["--from", "kindlemcp", "kindlemcp"],
      "env": {
        "SMTP_URL": "smtp://you%40gmail.com:your_app_password@smtp.gmail.com:587",
        "KINDLE_ADDR": "you_xxxxxx@kindle.com"
      }
    }
  }
}

If you installed with pipx, use the installed command directly instead:

{
  "mcpServers": {
    "kindlemcp": {
      "command": "kindlemcp",
      "env": {
        "SMTP_URL": "smtp://you%40gmail.com:your_app_password@smtp.gmail.com:587",
        "KINDLE_ADDR": "you_xxxxxx@kindle.com"
      }
    }
  }
}

You can omit the env block and rely on the config files above instead. Either way, the Gmail sender in SMTP_URL must be on your Amazon approved-senders list, and pandoc must be on PATH for Markdown conversion.

Development

pip install -e ".[dev]"
python -m pytest      # tests mock SMTP — they never send a real email
ruff check .

License

MIT

Available Tools

1 tool
send_to_kindleA

Send a document to the configured Kindle via Amazon Send-to-Kindle email.

Provide exactly one of content or file_path:

  • file_path — path to an existing .md, .pdf, or .epub file to send.

  • content — Markdown text; it is written to a temp file, converted to EPUB with pandoc, and sent.

title becomes the email subject, which Amazon uses as the document name on the Kindle. Returns a human-readable success or error message.

ParametersJSON Schema
NameRequiredDescriptionDefault
titleYes
contentNo
file_pathNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure. It discloses the conversion pipeline (content written to temp file, converted to EPUB with pandoc), that 'title' becomes the email subject/document name, and that a human-readable success/error message is returned. Minor gaps: no mention of prerequisites beyond 'configured Kindle' or potential side effects, but the description is substantially transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear first sentence followed by a concise bulleted list. Every sentence adds distinct value: purpose, exclusion rule, per-parameter semantics, conversion detail, and return behavior. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with three parameters, one required, and a mutual-exclusion constraint, the description covers all necessary operational details: how each parameter works, the file types accepted, the conversion step, and the return value. An output schema exists for the return message, but the description still summarizes it appropriately. No missing information that would hinder correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must fully compensate. It does: 'file_path' is specified as an existing .md/.pdf/.epub file, 'content' is markdown text that gets converted, and 'title' is the email subject/document name. The mutual exclusivity constraint is also clearly explained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Send'), resource ('document to the configured Kindle'), and mechanism ('Amazon Send-to-Kindle email'). Even without siblings, the purpose is immediately clear and the action is distinguished from other potential operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs the agent to provide exactly one of 'content' or 'file_path', and explains when each is appropriate: existing file vs. markdown text to be converted. This leaves no ambiguity about how to choose between the two mutually exclusive inputs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev0.2.0
    • First observedsend_to_kindle

TDQS

A4.8/5.0

Scored across 1 tool

Disambiguation5/5

There is only one tool, so there is no possibility of confusing it with another tool or selecting the wrong one. Its purpose is clearly distinct by default.

Naming Consistency5/5

The single tool name `send_to_kindle` follows a clear, conventional verb_noun pattern. With only one tool, naming consistency is inherently maintained.

Tool Count4/5

One tool is slightly below the typical well-scoped range, but it is reasonable for a narrowly focused server whose entire purpose is sending documents to a Kindle. The count does not feel excessive or wasteful.

Completeness5/5

The tool covers the full apparent domain: it accepts both file paths and raw markdown content, handles conversion, and sends to the configured Kindle. No essential operation for this narrow scope appears missing.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers