Mailganer API MCP
The Mailganer API MCP server provides a unified interface for exploring, searching, and interacting with cached Mailganer API documentation and Postman collections, with optional live API call support.
Documentation & Cache Management
Check sync status and health of cached docs and Postman collection
Re-sync documentation from web sources (all, API pages only, or Postman only)
Retrieve an API overview covering authentication, rate limits, and pagination
Compare a cached documentation page against the live site to identify differences
Browsing & Searching
List all cached API documentation pages, optionally filtered by category
Full-text search across cached API docs or the Postman collection
Fetch a specific endpoint doc page by slug, including linked Postman requests
Postman Collection
Search the Postman collection by keyword
Retrieve a specific Postman request by partial name or API path, along with linked documentation pages
Crosslink Management
Rebuild the crosslink index between documentation pages and Postman requests
List pages and requests that lack crosslinks, with documented reasons for the gaps
Live API Calls (requires MAILGANER_API_KEY)
Check whether an API key is configured (without exposing it)
Prepare HTTP method, path, auth, and body for a call based on a doc slug
Execute live HTTP requests to the Mailganer API
Resource Access
Access cached content via MCP resources (
mailganer://docs/…,mailganer://postman/…) for integration into client workflows
Allows searching and retrieving Postman requests and collections, and linking them to API documentation pages for comprehensive API reference management.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mailganer API MCPsearch for authentication endpoints"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mailganer API MCP
MCP-сервер для REST API Mailganer: локальный кэш документации и live-вызовы API через единый интерфейс.
Кэширует страницы документации и Postman-коллекцию в docs/, даёт инструменты для поиска, синхронизации и проверки изменений. С MAILGANER_API_KEY — выполняет реальные HTTP-запросы к API.
Структура
mailganer-api-mcp/
├── docs/
│ ├── overview.md # авторизация, лимиты, пагинация
│ ├── api-index.json # каталог всех страниц
│ ├── sitemap-pages.json # страницы из sitemap.xml
│ ├── postman-index.json # индекс Postman-запросов
│ ├── postman-collection.md # changelog и инструкция по обновлению коллекции
│ ├── crosslinks.json # связи docs ↔ Postman
│ ├── manual-crosslinks.json # ручные связи и пояснения для «дырок»
│ ├── endpoints/ # JSON по каждой странице API
│ └── postman/ # Postman collection JSON
├── docs_kb.py # фасад над пакетом kb/
├── kb/ # модули knowledge base
│ ├── storage.py # загрузка кэша
│ ├── matching.py # сопоставление docs ↔ Postman paths
│ ├── crosslinks.py # crosslinks и linked docs
│ ├── search.py # поиск по docs/Postman
│ ├── prepare.py # prepare_api_call
│ ├── sync_runner.py # sync + live diff
│ └── sanitize.py # маскирование секретов при sync
├── paths.py # нормализация API paths
├── http_retry.py # retry/backoff для HTTP
├── sync_lib.py # парсинг и sync документации с сайта
├── mailganer_client.py # HTTP-клиент для live-вызовов API
├── mcp_resources.py # MCP resources (docs, postman)
├── mcp_prompts.py # MCP prompts (workflows)
├── scripts/
│ ├── sync-api-docs.py # парсер документации (sitemap + menu)
│ ├── sync-postman.py # синхронизация Postman-коллекции (скачивание)
│ ├── add-missing-postman-requests.py # добавление методов в Postman (запись)
│ └── build-docusaurus-docs.py # генерация markdown для Docusaurus
├── website/ # Docusaurus-сайт (локальный preview docs)
└── server.py # MCP-серверRelated MCP server: mcp-for-docs
Быстрый старт
cd mailganer-api-mcp
chmod +x setup.sh
./setup.sh .Reload MCP в Cursor: Settings → MCP → Reload.
Или в чате: «установи mailganer api docs» / «обнови документацию mailganer».
Переменные окружения (.env.api)
MAILGANER_API_KEY=your_api_key
MAILGANER_API_BASE_URL=https://mailganer.com/api
POSTMAN_API_KEY=PMAK-your_postman_api_keyMAILGANER_API_KEY — раздел Настройки аккаунта в личном кабинете Mailganer (для live-вызовов API)
POSTMAN_API_KEY — Postman → Settings → API keys
MCP-серверы
Сервер | Назначение |
| Локальный кэш документации Mailganer API |
| Ваши workspace, коллекции и запросы в Postman |
Режим Postman MCP по умолчанию: --code. Чтобы сменить (--minimal, --full), отредактируйте .cursor/postman-mcp.sh.
MCP-инструменты
Документация (без API-ключа)
Инструмент | Описание |
| Статус кэша: дата sync, кол-во страниц, ошибки |
| Готовность кэша ( |
| Обновить docs с сайта ( |
| Список страниц, фильтр по категории |
| Полнотекстовый поиск по кэшу |
| Страница docs + связанные Postman-запросы |
| Postman-запрос + связанные страницы docs |
| Пересобрать |
| Список «дырок» без связи + пояснения |
| Сравнить кэш с live-сайтом, показать diff |
| Обзор: auth, лимиты, пагинация |
| Поиск по Postman-коллекции |
| Запрос Postman по имени или path |
Live API (нужен MAILGANER_API_KEY)
Инструмент | Описание |
| Проверить, настроен ли API-ключ (без раскрытия) |
| Собрать method/path/auth/body из docs по slug |
| Выполнить HTTP-запрос к Mailganer API |
MCP Resources
URI | Содержимое |
| Обзор API (markdown) |
| Статус кэша (JSON) |
| Готовность кэша: ready/warnings (JSON) |
| Каталог страниц (JSON) |
| Страница docs + Postman-связи |
| Postman-запрос + связанные docs |
MCP Prompts
Prompt | Назначение |
| Найти docs и Postman по slug/ключевому слову |
| Подготовить и выполнить live-запрос по slug |
| Sync + обзор изменений |
| Анализ дыр docs ↔ Postman |
Обновить документацию вручную
bash scripts/sync-all-docs.shили по отдельности:
python3 scripts/sync-api-docs.py
python3 scripts/sync-postman.py
python3 scripts/build-crosslinks.pyDocusaurus preview
Локальный сайт с документацией из кэша docs/ — sidebar по категориям mailganer.com, на страницах методов есть связанные Postman-запросы.
Требования: Node.js ≥ 20.
python3 scripts/build-docusaurus-docs.py # website/docs/ + website/sidebars.ts
cd website
npm install
npm start # http://localhost:3000После sync документации перегенерируйте страницы тем же скриптом build-docusaurus-docs.py.
Production-сборка: cd website && npm run build → статика в website/build/.
Тесты и CI
pip install -e ".[dev]"
pytestWorkflow .github/workflows/ci.yml — pytest и ruff на Python 3.11–3.13 при push/PR.
Кэш docs и pip install
Каталог docs/ не входит в wheel — после pip install без clone кэш пустой.
Проверка: MCP tool get_cache_health или get_doc_status → cache.ready и cache.warnings.
Решение: clone репозитория, ./setup.sh . или bash scripts/sync-all-docs.sh.
Без sync — скачать готовый кэш из GitHub Release:
bash scripts/download-docs-cache.sh # latest release
bash scripts/download-docs-cache.sh v0.5.1 # конкретный tagRelease создаётся workflow .github/workflows/release-docs.yml при push tag v*.
Changelog: CHANGELOG.md. Contributing: CONTRIBUTING.md.
Сгенерированные website/docs/ и website/sidebars.ts в .gitignore — в репозитории только исходники сайта и скрипт генерации.
CI: автоматический sync
Workflow .github/workflows/sync-docs.yml:
Триггер | Когда |
| Каждый понедельник, 06:00 UTC |
| Вручную: GitHub → Actions → Sync API docs → Run workflow |
Если документация на сайте изменилась, workflow создаёт PR automation/sync-docs с обновлённым docs/.
После merge PR локально: git pull или ./setup.sh . для обновления кэша.
Настройка репозитория (один раз): Settings → Actions → General → Workflow permissions → Read and write и включить Allow GitHub Actions to create and approve pull requests. Без этого workflow не сможет открыть PR.
Источники
Источник | URL | Скрипт |
Sitemap |
| |
Меню API |
| |
Postman |
|
Postman-коллекция: добавление методов
sync-postman.py только скачивает публичную коллекцию в docs/postman/. Чтобы добавить запросы в workspace Mailganer Team:
# POSTMAN_API_KEY в .env.api
python3 scripts/add-missing-postman-requests.py
python3 scripts/sync-postman.py
python3 scripts/build-crosslinks.pyПодробности, список добавленных методов (2026-06-22) и как расширять скрипт: docs/postman-collection.md.
Ручные связи (manual-crosslinks.json)
Автоматический матчинг не покрывает всё: разные пути (/api/auth/ vs /api/v2/auth/), несколько способов вызова, методы без отдельной doc-страницы.
Файл docs/manual-crosslinks.json:
doc_to_postman— явные связи slug → имена Postman-запросовdoc_notes— пояснение, почему у страницы нет Postman (webhook, нет в коллекции)
После правок: python3 scripts/build-crosslinks.py
Проверить «дыры»: MCP-инструмент list_crosslink_gaps.
Авторизация API (справка)
v1 —
api_keyв теле запросаv2 — заголовок
Authorization: CodeRequest {{api_key}}Лимит: 500 запросов/мин
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dkanster/mailganer-api-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server