Send to Kindle MCP Server

Send to Kindle MCP Server

A Model Context Protocol (MCP) server that allows Claude Desktop to send documents directly to your Kindle e-reader.

Category
访问服务器

README

Send to Kindle MCP Server

A Model Context Protocol (MCP) server that allows Claude Desktop to send documents directly to your Kindle e-reader. Convert text or markdown content into beautifully formatted EPUB files and deliver them instantly to your Kindle library.

Features

  • 📚 Convert text and markdown to EPUB format
  • 📧 Send documents directly to Kindle via email
  • 📖 Automatic chapter creation from markdown headings (H1, H2, etc.)
  • 🎨 Properly formatted with CSS styling for optimal reading
  • ⚡ Fast and easy integration with Claude Desktop
  • 🔒 Secure email configuration with environment variables
  • 👤 Customizable author name via environment variable

Prerequisites

  • Python 3.10 or higher
  • A Kindle e-reader or Kindle app
  • An email account with SMTP access (Gmail recommended)
  • Your Kindle email address (found in Amazon account settings)

Installation

1. Clone or download this repository

cd ~/path/to/your/projects
git clone <repository-url> send-to-kindle-mcp
cd send-to-kindle-mcp

2. Create a virtual environment and install dependencies

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -e .

3. Configure your credentials

Option A: Create a .env file (for local testing)

Copy the example environment file and fill in your details:

cp .env.example .env

Edit .env with your information:

# For Gmail users:
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASSWORD=your-app-password  # See note below

# Your Kindle email address
KINDLE_EMAIL=your-kindle@kindle.com

# Sender email (usually same as SMTP_USER)
FROM_EMAIL=your-email@gmail.com

# Author name (optional - defaults to "Claude" if not set)
AUTHOR_NAME=Your Name

Note: The .env file is useful for local testing (e.g., using test_smtp.py), but Claude Desktop does NOT automatically load .env files. You must also set these values in the Claude Desktop config file (see step 4).

Important Notes:

  • Gmail Users: You must use an App Password, not your regular Gmail password
  • Kindle Email: Find this in your Amazon account under "Manage Your Content and Devices" → "Preferences" → "Personal Document Settings"
  • Approved Senders: Make sure to add your sending email address to your Kindle's approved email list in Amazon settings

4. Configure Claude Desktop

Add the server to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "send-to-kindle": {
      "command": "/path/to/send-to-kindle-mcp/venv/bin/python",
      "args": ["/path/to/send-to-kindle-mcp/server.py"],
      "env": {
        "SMTP_HOST": "smtp.gmail.com",
        "SMTP_PORT": "587",
        "SMTP_USER": "your-email@gmail.com",
        "SMTP_PASSWORD": "your-app-password",
        "KINDLE_EMAIL": "your-kindle@kindle.com",
        "FROM_EMAIL": "your-email@gmail.com",
        "AUTHOR_NAME": "Your Name"
      }
    }
  }
}

Replace the following:

  • /path/to/send-to-kindle-mcp with the actual path to this directory
  • All placeholder values in the env section with your actual credentials

Note: If you created a .env file in step 3, you can copy those same values into the env section above. The values must be set here for Claude Desktop to use them.

5. Restart Claude Desktop

Quit and restart Claude Desktop for the changes to take effect.

Usage

Once configured, you can ask Claude to send documents to your Kindle:

"Please send this research paper to my Kindle"
"Create a summary of this conversation and send it to my Kindle as 'Meeting Notes'"
"Convert this markdown document to EPUB and send to Kindle"

Claude will use the send_to_kindle tool to:

  1. Ask you for a title and author (if not provided)
  2. Convert your content to a properly formatted EPUB with chapter navigation
  3. Email it to your Kindle address
  4. Confirm successful delivery

Chapter Navigation: The tool automatically detects markdown headings (H1, H2, etc.) and creates separate chapters for each major section. This makes it easy to navigate longer documents on your Kindle using the table of contents.

The document will appear in your Kindle library within a few minutes.

Troubleshooting

Viewing Error Logs

The server logs detailed information to help debug issues. To view logs in Claude Desktop:

macOS:

  • Open Console.app (Applications → Utilities → Console)
  • Filter by "Claude" or search for "send-to-kindle"
  • Look for log messages with timestamps

Windows:

  • Check the Claude Desktop logs in %APPDATA%\Claude\logs\
  • Or view logs in the Windows Event Viewer

The logs will show:

  • Connection attempts to SMTP servers
  • Authentication steps and errors
  • Detailed error messages with troubleshooting hints
  • Configuration validation issues

Email not sending

  • Most common issue: Environment variables not set in Claude Desktop config file. Remember: .env files are NOT automatically loaded by Claude Desktop. You must set all variables in the claude_desktop_config.json file.
  • Verify your SMTP credentials are correct in the Claude Desktop config file
  • For Gmail, ensure you're using an App Password, not your regular password
  • Test your connection using python test_smtp.py to verify credentials work
  • Check the logs (see above) for specific error messages
  • Restart Claude Desktop after making config changes

Document not appearing on Kindle

  • Verify your Kindle email address is correct
  • Check your Amazon approved email list includes your sending address
  • Look in your Amazon "Personal Documents" section to see if it was received
  • Check your spam folder

Import errors

# Make sure you're in the virtual environment
source venv/bin/activate

# Reinstall dependencies
pip install -e .

Development

Testing SMTP Connection

Test your SMTP configuration independently of Claude Desktop:

source venv/bin/activate
python test_smtp.py

This will verify your credentials and connection work correctly before using with Claude Desktop.

Running the Server Standalone

To run the server standalone for testing:

source venv/bin/activate
python server.py

Security Notes

  • Never commit your .env file or expose your credentials
  • Use App Passwords for email services that support them
  • Keep your Kindle approved sender list limited to trusted addresses

License

MIT License - feel free to modify and distribute as needed.

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues for bugs and feature requests.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选