Telegram Ads MCP
An open-source Model Context Protocol server for the official Telegram Ads API that allows AI agents to manage accounts, ads, stats, audiences, pixels, and targeting. It runs locally over stdio, ensuring the token never leaves the machine except to call the official API, and includes safety features like read-only modes and budget caps.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Manage Telegram Ads accounts and budgets
- Create and monitor advertisements
- Analyze ad statistics and performance
- Handle audiences and pixels
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
telegram-ads-mcp 0.1.3
{
"version": "0.1.3",
"transport": "stdio",
"identifier": "telegram-ads-mcp",
"runtimeHint": "npx",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"environmentVariables": [
{
"name": "TELEGRAM_ADS_TOKEN",
"isRequired": true,
"description": "Telegram Ads API token from https://ads.telegram.org/account/api"
},
{
"name": "TG_ADS_MODE",
"choices": [
"read-only",
"write"
],
"default": "read-only",
"description": "read-only (default) or write. Write tools also require confirm: true."
},
{
"name": "TG_ADS_CODE_MODE",
"choices": [
"off",
"read-only",
"write"
],
"default": "read-only",
"description": "off, read-only (default) or write. Controls the tg_execute sandbox."
},
{
"name": "TG_ADS_ALLOWED_ACCOUNTS",
"description": "Optional comma-separated allowlist for explicit account_id values."
},
{
"name": "TG_ADS_MAX_CPM",
"description": "Optional per-call CPM cap in the account currency."
},
{
"name": "TG_ADS_MAX_AD_BUDGET",
"description": "Optional per-call ad budget or transfer cap in the account currency."
},
{
"name": "TG_ADS_MAX_DAILY_BUDGET",
"description": "Optional per-call daily budget limit in the account currency."
},
{
"name": "TG_ADS_AUDIT_LOG",
"description": "Optional path to a JSONL audit log."
},
{
"name": "TG_ADS_TIMEOUT_MS",
"format": "number",
"default": "30000",
"description": "Per-request timeout in milliseconds."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"telegram-ads-mcp": {
"command": "npx",
"args": [
"-y",
"telegram-ads-mcp@0.1.3"
],
"env": {
"TELEGRAM_ADS_TOKEN": "<YOUR_TELEGRAM_ADS_TOKEN>",
"TG_ADS_MODE": "<YOUR_TG_ADS_MODE>",
"TG_ADS_CODE_MODE": "<YOUR_TG_ADS_CODE_MODE>",
"TG_ADS_ALLOWED_ACCOUNTS": "<YOUR_TG_ADS_ALLOWED_ACCOUNTS>",
"TG_ADS_MAX_CPM": "<YOUR_TG_ADS_MAX_CPM>",
"TG_ADS_MAX_AD_BUDGET": "<YOUR_TG_ADS_MAX_AD_BUDGET>",
"TG_ADS_MAX_DAILY_BUDGET": "<YOUR_TG_ADS_MAX_DAILY_BUDGET>",
"TG_ADS_AUDIT_LOG": "<YOUR_TG_ADS_AUDIT_LOG>",
"TG_ADS_TIMEOUT_MS": "<YOUR_TG_ADS_TIMEOUT_MS>"
}
}
}
}Cline
{
"mcpServers": {
"telegram-ads-mcp": {
"command": "npx",
"args": [
"-y",
"telegram-ads-mcp@0.1.3"
],
"env": {
"TELEGRAM_ADS_TOKEN": "<YOUR_TELEGRAM_ADS_TOKEN>",
"TG_ADS_MODE": "<YOUR_TG_ADS_MODE>",
"TG_ADS_CODE_MODE": "<YOUR_TG_ADS_CODE_MODE>",
"TG_ADS_ALLOWED_ACCOUNTS": "<YOUR_TG_ADS_ALLOWED_ACCOUNTS>",
"TG_ADS_MAX_CPM": "<YOUR_TG_ADS_MAX_CPM>",
"TG_ADS_MAX_AD_BUDGET": "<YOUR_TG_ADS_MAX_AD_BUDGET>",
"TG_ADS_MAX_DAILY_BUDGET": "<YOUR_TG_ADS_MAX_DAILY_BUDGET>",
"TG_ADS_AUDIT_LOG": "<YOUR_TG_ADS_AUDIT_LOG>",
"TG_ADS_TIMEOUT_MS": "<YOUR_TG_ADS_TIMEOUT_MS>"
}
}
}
}VS Code
{
"servers": {
"telegram-ads-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"telegram-ads-mcp@0.1.3"
],
"env": {
"TELEGRAM_ADS_TOKEN": "<YOUR_TELEGRAM_ADS_TOKEN>",
"TG_ADS_MODE": "<YOUR_TG_ADS_MODE>",
"TG_ADS_CODE_MODE": "<YOUR_TG_ADS_CODE_MODE>",
"TG_ADS_ALLOWED_ACCOUNTS": "<YOUR_TG_ADS_ALLOWED_ACCOUNTS>",
"TG_ADS_MAX_CPM": "<YOUR_TG_ADS_MAX_CPM>",
"TG_ADS_MAX_AD_BUDGET": "<YOUR_TG_ADS_MAX_AD_BUDGET>",
"TG_ADS_MAX_DAILY_BUDGET": "<YOUR_TG_ADS_MAX_DAILY_BUDGET>",
"TG_ADS_AUDIT_LOG": "<YOUR_TG_ADS_AUDIT_LOG>",
"TG_ADS_TIMEOUT_MS": "<YOUR_TG_ADS_TIMEOUT_MS>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"telegram-ads-mcp": {
"command": "npx",
"args": [
"-y",
"telegram-ads-mcp@0.1.3"
],
"env": {
"TELEGRAM_ADS_TOKEN": "<YOUR_TELEGRAM_ADS_TOKEN>",
"TG_ADS_MODE": "<YOUR_TG_ADS_MODE>",
"TG_ADS_CODE_MODE": "<YOUR_TG_ADS_CODE_MODE>",
"TG_ADS_ALLOWED_ACCOUNTS": "<YOUR_TG_ADS_ALLOWED_ACCOUNTS>",
"TG_ADS_MAX_CPM": "<YOUR_TG_ADS_MAX_CPM>",
"TG_ADS_MAX_AD_BUDGET": "<YOUR_TG_ADS_MAX_AD_BUDGET>",
"TG_ADS_MAX_DAILY_BUDGET": "<YOUR_TG_ADS_MAX_DAILY_BUDGET>",
"TG_ADS_AUDIT_LOG": "<YOUR_TG_ADS_AUDIT_LOG>",
"TG_ADS_TIMEOUT_MS": "<YOUR_TG_ADS_TIMEOUT_MS>"
}
}
}
}Let your agent find its tools
Find servers like Telegram Ads MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.