MCP Server for Sendook - AI Email Communication Platform
Project description
Sendook MCP Server
MCP (Model Context Protocol) server for Sendook - an AI email communication platform that enables AI agents to send and receive emails programmatically.
Features
- Inbox Management: Create, list, and delete managed email inboxes
- Email Sending: Send emails with HTML/text content, attachments, and CC/BCC
- Message Handling: List, retrieve, and reply to messages
- Conversation Threads: View and manage email conversation threads
- Webhooks: Configure real-time notifications for email events
Installation
# Using uv (recommended)
cd sendook_mcp
uv sync
# Or using pip
pip install -e .
Configuration
Set your Sendook API key as an environment variable:
export SENDOOK_API_KEY="your-api-key-here"
Optional: Set a custom API URL (defaults to production):
export SENDOOK_API_URL="https://api.sendook.com"
Usage with Claude Desktop
Add to your Claude Desktop configuration (~/.config/Claude/claude_desktop_config.json on macOS/Linux or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"sendook": {
"command": "uv",
"args": ["run", "--directory", "/path/to/sendook_mcp", "python", "sendook_mcp.py"],
"env": {
"SENDOOK_API_KEY": "your-api-key-here"
}
}
}
}
Or if installed globally:
{
"mcpServers": {
"sendook": {
"command": "sendook-mcp",
"env": {
"SENDOOK_API_KEY": "your-api-key-here"
}
}
}
}
Available Tools
Inbox Management
| Tool | Description |
|---|---|
sendook_create_inbox |
Create a new inbox for an AI agent |
sendook_list_inboxes |
List all inboxes in your organization |
sendook_get_inbox |
Get details for a specific inbox |
sendook_delete_inbox |
Delete an inbox (archives messages) |
Message Operations
| Tool | Description |
|---|---|
sendook_send_message |
Send an email with optional attachments |
sendook_reply_to_message |
Reply to an existing message |
sendook_list_messages |
List messages in an inbox |
sendook_get_message |
Get full details of a message |
Thread Operations
| Tool | Description |
|---|---|
sendook_list_threads |
List conversation threads in an inbox |
sendook_get_thread |
Get a thread with all its messages |
Webhook Management
| Tool | Description |
|---|---|
sendook_create_webhook |
Create a webhook subscription |
sendook_list_webhooks |
List all configured webhooks |
sendook_get_webhook |
Get details of a webhook |
sendook_test_webhook |
Send a test event to a webhook |
sendook_delete_webhook |
Delete a webhook subscription |
sendook_list_webhook_attempts |
View webhook delivery history |
Examples
Send an Email
Use sendook_send_message with:
- inbox_id: "ibox_01J3ZKZ0BRQ9SSJK1GRSCX4N4Z"
- to: ["customer@example.com"]
- subject: "Your Order Confirmation"
- text: "Thank you for your order!"
Create a Support Inbox
Use sendook_create_inbox with:
- name: "Customer Support Bot"
- email: "support@yourdomain.com"
Set Up Webhook for Incoming Emails
Use sendook_create_webhook with:
- url: "https://your-app.com/webhooks/sendook"
- events: ["message.received", "message.delivered"]
Response Formats
Most read operations support two response formats:
- markdown (default): Human-readable formatted output
- json: Machine-readable structured data
Set response_format: "json" for programmatic processing.
Error Handling
The server provides actionable error messages:
- 401: Authentication failed - check your API key
- 403: Permission denied - verify API key permissions
- 404: Resource not found - check the ID
- 429: Rate limit exceeded - wait and retry
Development
# Install dev dependencies
uv sync --extra dev
# Run linting
uv run ruff check .
# Run tests
uv run pytest
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sendook_mcp-1.0.0.tar.gz.
File metadata
- Download URL: sendook_mcp-1.0.0.tar.gz
- Upload date:
- Size: 64.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cf5ef4d4fc4de0bbc8945079194ea9b9f66c6c1f8e9296c6f9a7dc2d1208c21
|
|
| MD5 |
2fc63ee4c1c7873f39482f99c72d4241
|
|
| BLAKE2b-256 |
fbfb2d25b46e62dd9527b25e20eae121a75e654b23439eb149404abe96f9b205
|
File details
Details for the file sendook_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sendook_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee289c6f3207bfa4b61007abed22a4b8cbca5313d2c0e483e491737885a50c27
|
|
| MD5 |
89f524b2a87d2f3d13a9b86c6a56a862
|
|
| BLAKE2b-256 |
39d367ffa1d3ae74f596839acc169f787fd066893b85336b36ca009cc4f3367e
|