Samotpravil MCP
MCP server wrapping Samotpravil API documentation, providing tools to search for methods, parameters, and examples, with optional proxy to the live API.
README
Samotpravil MCP
MCP-сервер вокруг документации API СамОтправил.
Хостинг: репозиторий временно в dkanster/samotpravil-mcp.
Планируется: переезд в org Samotpravil на GitHub и npm@samotpravil/mcp— см. docs/ORG_MIGRATION.md.
Документация опубликована как Postman Documenter; сервер подтягивает коллекцию с documentation.samotpravil.ru и даёт агенту инструменты для поиска методов, параметров и примеров. Опционально — прокси к api.samotpravil.ru, если задан API-ключ.
Roadmap
План v1.1 (milestones, issues, фазы): docs/ROADMAP.md
| Milestone | Фокус |
|---|---|
| Phase 0 | Подготовка, interim hosting |
| Phase 1–6 | npm, snapshot, typed tools, resources, docs, promo |
| v1.1.0 | Релиз |
| Future | Org migration, v1.2 |
GitHub Project: создайте board «Samotpravil MCP v1.1» — см. docs/ROADMAP.md#github-project.
Инструменты
Документация (без API-ключа)
| Tool | Описание |
|---|---|
get_overview |
Авторизация, SMTP, лимиты, категории |
list_endpoints |
Список всех методов API |
search_docs |
Поиск по документации |
get_endpoint |
Подробности по методу |
Typed API (нужен SAMOTPRAVIL_API_KEY)
| Tool | Описание |
|---|---|
send_email |
POST /api/v1/smtp_send |
send_mail_v2 |
POST /api/v2/mail/send |
get_delivery_status |
GET /api/v2/issue/status |
get_package_status |
GET /api/v2/package/status |
search_stop_list |
Поиск email в стоп-листах |
add_stop_list_email / remove_stop_list_email |
Управление стоп-листом |
validate_email |
Валидация адреса |
list_allowed_domains |
Разрешённые домены |
api_request |
Generic escape hatch |
Безопасность
| Env | Эффект |
|---|---|
SAMOTPRAVIL_READ_ONLY=1 |
Только GET/HEAD |
SAMOTPRAVIL_ALLOW_SEND=0 |
Блок send/package endpoints |
dry_run: true |
Preview запроса без отправки |
MCP Resources (без tool calls)
| URI | Содержимое |
|---|---|
samotpravil://overview |
Обзор API |
samotpravil://endpoints |
Индекс методов |
samotpravil://endpoint/{slug} |
Один метод (напр. smtp_send) |
samotpravil://errors |
Популярные ошибки |
samotpravil://integration |
SMTP, X-Track-ID, трекинг |
Быстрый старт (рекомендуется)
Добавьте в .cursor/mcp.json (или аналог в вашем MCP-клиенте):
{
"mcpServers": {
"samotpravil": {
"command": "npx",
"args": ["-y", "samotpravil-mcp@latest"],
"env": {
"SAMOTPRAVIL_API_KEY": "your_api_key_here",
"SAMOTPRAVIL_READ_ONLY": "1",
"SAMOTPRAVIL_ALLOW_SEND": "0"
}
}
}
}
SAMOTPRAVIL_API_KEY можно опустить для docs-only. Флаги READ_ONLY / ALLOW_SEND — опционально (безопасный preset выше).
В Cursor: Settings → MCP → Reload.
Подробнее: docs/EXAMPLES.md (Cursor, Claude Desktop, VS Code).
npm
npx -y samotpravil-mcp@latest
Пакет: https://www.npmjs.com/package/samotpravil-mcp (после первого publish — см. docs/PUBLISH.md).
Из git clone (разработка / fork)
git clone https://github.com/dkanster/samotpravil-mcp.git
cd your-workspace
/path/to/samotpravil-mcp/setup.sh .
Конфигурация
.env.samotpravil в корне проекта (или ai/.env.samotpravil):
SAMOTPRAVIL_API_KEY=your_key_here
Ключ нужен только для api_request. Получить доступ: https://samotpravil.ru/get-access
Локальная разработка
npm install
npm run build
npm run dev
Источник документации
- Сайт: https://documentation.samotpravil.ru/
- Live JSON: публичный Postman collection endpoint
- Offline: bundled snapshot в
data/collection.snapshot.json(fallback) - Обновить snapshot:
npm run sync-docs - Режим загрузки:
SAMOTPRAVIL_DOCS_MODE=auto(default) |live|snapshot - API base URL: https://api.samotpravil.ru
- SMTP:
api.samotpravil.ru:1126/:1127(TLS)
Лицензия
MIT
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.