MGRAM

Run Telegram ads from AI chats: bot broadcasts, Reply Ads, channel subscribers and bot starts. Spends only on approval.

Hosted MCP Server

npx add-mcp 'https://mcp.mgram.biz/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

MGRAM MCP server

Run Telegram ads from an AI assistant. MGRAM is an ad network inside Telegram: it delivers your post to the people who use Telegram bots, groups and channels. The hosted MCP server lets Claude, ChatGPT, Cursor, VS Code, Gemini CLI and other MCP clients quote, launch and track these campaigns for you.

Add to Cursor  ·  Install in VS Code

Endpointhttps://mcp.mgram.biz/mcp
TransportStreamable HTTP
Sign-inOAuth 2.1 (dynamic client registration), or a personal key as a Bearer token
Registry nameio.github.mgram-web/mgram
MoneyNothing is spent without your explicit yes; withdrawals are not available through MCP

What the assistant can do

AreaTools
Accountget_account, get_overview, get_updates, get_finance
Bot broadcastsget_order_options, estimate_mailing, compare_mailing_variants, quote_mailing, create_mailing
Reply Ads (an ad right after the bot's answer)quote_impressions, create_impressions
Channel and group subscriberscheck_channel, quote_subscribers, create_subscribers
Bot and Mini App startslist_targets, quote_bot_starts
Orderslist_orders, get_order, get_order_details, manage_order, cancel_order, update_order_targeting, get_orders_performance
Postssave_post, set_post_media, copy_post, submit_post, list_posts, get_post_examples, get_emoji_pack
Budgets for a goalget_budget_options, create_budget, update_budget
Tracking linkscreate_utm_project, create_utm_link, get_utm_stats, get_utm_feed
Top-upslist_topup_methods, create_topup_invoice, get_topup_status
Your own botslist_bots, get_bot, get_bot_stats, set_bot_setting, list_chats
Market dataget_market_trends

Spending tools take a one-time quote from the matching quote_* tool plus confirm=true, so the assistant has to show you the price first. Each connection can have a daily spending limit and switched-off services.

Connect

Claude (claude.ai and Claude Desktop): Settings → Connectors → Add custom connector → name MGRAM, URL https://mcp.mgram.biz/mcp → Connect, then sign in to MGRAM.

Claude Code

claude mcp add --transport http mgram https://mcp.mgram.biz/mcp

Then run /mcp, choose mgram and authenticate.

ChatGPT: Settings → Apps & Connectors → Advanced → developer mode → Create: name MGRAM, URL https://mcp.mgram.biz/mcp, authentication OAuth.

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "mgram": { "url": "https://mcp.mgram.biz/mcp" }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "mgram": { "type": "http", "url": "https://mcp.mgram.biz/mcp" }
  }
}

Gemini CLI (~/.gemini/settings.json)

{
  "mcpServers": {
    "mgram": { "httpUrl": "https://mcp.mgram.biz/mcp" }
  }
}

Clients that cannot sign in through OAuth can use a personal key: create it in the MGRAM panel under Settings → AI assistants and send it as Authorization: Bearer mgram_sk_....

Example requests

  • "How much would it cost to reach 10,000 users of crypto bots in Uzbekistan? Show me the quote."
  • "Make a post for my channel, show me the preview, then quote 500 subscribers and wait for my yes."
  • "Which of my last three campaigns brought the cheapest clicks? Move the rest of the budget there."

Links

Step-by-step guide  ·  mgram.biz  ·  API docs  ·  Telegram bot @mgram  ·  support@mgram.biz

For bot owners who want to earn from ads instead: Python SDK (pip install mgram-sdk), JavaScript SDK (npm i mgram-sdk) and the bot template.