MCP Content Publisher
This server is an MCP-compliant content publisher that enables publishing posts and retrieving statistics across social media platforms (Telegram – real, YouTube & Instagram – mock).
Publish posts (
publish_post): Publish text (with HTML formatting support for Telegram) and optional media to a specified channel. Supports scheduling via ISO-8601 timestamps.Retrieve post metrics (
get_metrics): Fetch engagement data including views, reactions, reposts, and comments (Telegram metrics are mock in MVP).Get channel statistics (
get_channel_stats): Obtain overall channel performance: subscriber count, weekly post count, and average views per post.Flexible deployment: Integrate via
stdiowith MCP hosts or access remotely via SSE for debugging. Requires configuration with platform API tokens (e.g., Telegram Bot Token).
Provides a bridge tool for integrating the MCP server with CrewAI agents, enabling content publishing and analytics.
Planned integration for publishing content and retrieving metrics on Instagram.
Allows publishing posts (text and media) to Telegram channels and retrieving metrics via Bot API.
Planned integration for publishing content and retrieving metrics on YouTube.
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., "@MCP Content Publisherpublish 'Hello world' to Telegram channel @my_channel"
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.
MCP Content Publisher
MCP-сервер для публикации контента и сбора метрик на социальных платформах. Реализует протокол MCP (Model Context Protocol).
Платформы
Платформа | Публикация | Метрики | Статус |
Telegram | ✅ Bot API (sendMessage / sendPhoto) | 🚧 Заглушка (V2: Telethon) | Работает, протестировано |
YouTube | 🚧 Заглушка | 🚧 Заглушка | План |
🚧 Заглушка | 🚧 Заглушка | План |
Related MCP server: meta-mcp
Установка
# Установка через uv
uv sync
# С тестовыми зависимостями
uv sync --group testНастройка
Скопируйте .env.example в .env и укажите токен бота:
cp .env.example .env# TELEGRAM
TELEGRAM_BOT_TOKEN="токен_от_BotFather"Токен создаётся через @BotFather в Telegram.
Запуск
# stdio (для интеграции с MCP-хостами — Claude Desktop, Cline и др.)
uv run mcp-content-publisher
# SSE (для отладки и удалённого доступа)
uv run mcp-content-publisher --transport sse --host 127.0.0.1 --port 8001Инструменты MCP
publish_post
Опубликовать пост на указанной платформе.
Параметры:
platform(str):telegram|youtube|instagramtext(str): Текст поста. Поддерживает HTML-разметку (<b>,<i>,<code>,<a href="...">)channel(str): Канал для публикации — @username, chat ID или invite linkmedia_urls(list[str], optional): URL изображений/видеоschedule_at(str, optional): Время публикации в ISO-8601
Пример:
{
"platform": "telegram",
"text": "<b>Привет!</b> Это тестовый пост из MCP сервера",
"channel": "-1001234567890"
}Ответ:
{
"post_id": "42",
"status": "published",
"url": "https://t.me/channel/42",
"error": null
}get_metrics
Получить метрики опубликованного поста.
Параметры:
platform(str): Платформаpost_id(str): ID поста на платформе
Ответ:
{
"post_id": "42",
"platform": "telegram",
"views": 150,
"reactions": 12,
"reposts": 3,
"comments": 2
}Примечание: Telegram Bot API не отдаёт реальные просмотры/реакции. В MVP возвращаются mock-данные. В V2 планируется Telethon (MTProto) для реальных метрик.
get_channel_stats
Получить общую статистику канала.
Параметры:
platform(str): Платформаchannel(str): Имя/ID канала
Ответ:
{
"platform": "telegram",
"channel": "@channel",
"subscribers": 1000,
"posts_this_week": 5,
"avg_views": 200
}Форматирование текста
Telegram провайдер автоматически определяет режим разметки:
HTML — если в тексте есть HTML-теги (
<b>,<i>,<code>,<a>)HTML (по умолчанию) — для обычного текста (не требует экранирования)
Поддерживаемые HTML-теги в Telegram: <b>, <i>, <u>, <s>, <code>, <pre>, <a href="...">
Тестирование
# Запуск всех тестов
uv run pytest tests/ -v
# Только unit-тесты
uv run pytest tests/test_publish_server.py -v
# Только интеграционные тесты (MCP протокол)
uv run pytest tests/test_mcp_server_integration.py -vЧто тестируется
Модели — Pydantic-схемы (PublishContent, PublishResult, PostMetrics, ChannelStats)
Провайдеры — Telegram (токен, публикация, метрики), YouTube/Instagram (mock)
Реестр провайдеров — синглтон, неизвестные платформы
MCP сервер — регистрация инструментов, вызов через MCP протокол
Структура проекта
mcp-content-publisher/
├── src/mcp_content_publisher/
│ ├── server.py # MCP сервер (точка входа)
│ ├── models.py # Pydantic-схемы
│ └── providers/
│ ├── base.py # Базовый класс PublishProvider
│ ├── telegram.py # Telegram Bot API
│ ├── youtube.py # YouTube (заглушка)
│ └── instagram.py # Instagram (заглушка)
├── tests/
│ ├── test_server.py # Тесты MCP сервера
│ ├── test_publish_server.py # Тесты провайдеров и моделей
│ └── test_mcp_server_integration.py # Интеграционные тесты
├── .env.example
└── pyproject.tomlРазработка
# Установка с dev-зависимостями
uv sync --group test
# Запуск тестов
uv run pytest
# Проверка типов
uv run mypy src/Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server for communication service connectors that currently provides multi-account Telegram integration with granular tool access and security controls. It allows AI models to manage messages, chats, and media across various accounts through a flexible, extensible routing architecture.Last updated1
- AlicenseAqualityDmaintenanceMCP server for Instagram Graph API, Threads API & Meta platform — posting, insights, comments, messagingLast updated5713513MIT
- AlicenseAqualityBmaintenanceMCP server for the Post for Me API, enabling publishing, scheduling, editing, deleting, and analyzing social media posts across 9 platforms from any MCP client.Last updated27661MIT
- Alicense-qualityFmaintenanceMCP server for posting to Twitter/X, Reddit, LinkedIn, Instagram, and email via CLI or AI agents, with Telegram bot control and security confirmations.Last updated6MIT
Related MCP Connectors
Social media MCP: publish, schedule & analyze posts on TikTok, Instagram, YouTube, LinkedIn & X
Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.
MemberPass MCP — manage projects, plans, members, payments, and analytics for Telegram creators.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/ESkuratov/mcp-content-publisher'
If you have feedback or need assistance with the MCP directory API, please join our Discord server