Post or schedule a message
Text up to 4,096 characters, a photo, a video, a GIF, or a mixed album, published now, at scheduledFor, or from the queue.
Give your agent a Telegram MCP server without running a bot. Connect a channel or group once, and any MCP client can post formatted messages, photos, videos, GIFs, and albums, now or on a schedule, from the conversation.
No credit card required

Paste this into your agent
What Your Agent Gets
Every PostZen API endpoint is an MCP tool. These are the ones that matter for Telegram.

Text up to 4,096 characters, a photo, a video, a GIF, or a mixed album, published now, at scheduledFor, or from the queue.
Pick the formatting mode per message. PostZen validates the markup so Telegram does not reject the whole post.
Deliver without a notification sound for low-priority updates.
Protect a message so members cannot forward or save it.
The agent asks for an upload URL and sends the file. PostZen picks sendPhoto, sendVideo, sendAnimation, or sendMediaGroup for you.
Every target reports status, the message link, and any error. Scheduled messages can be changed until they go out.
Example Prompts
Prompt
Post the release notes to our Telegram channel with bold headings and the changelog link.
What happens
The agent formats the text as HTML, sets settings.parseMode "html", and calls createPost for the channel account.
Prompt
Send these four photos as one album tonight at 9, silently.
What happens
The agent uploads the photos, attaches them to one post so they go out as a media group, and sets scheduledFor 21:00 with settings.disableNotification true.
Prompt
Share the early-access code in the members group but stop people forwarding it.
What happens
The agent sets settings.protectContent true so the message cannot be forwarded or saved.
Prompt
Queue a daily tip to the channel for the next week.
What happens
The agent reads the open slots with previewQueue and creates seven queued posts, one per day, reporting the times.
WHY POSTZEN?
Build a Telegram MCP server yourself and you own the auth, the media pipeline, and every Telegram API change. Connect PostZen and your agent gets the tools today.

2.3M+ posts
2,000+ usersAny MCP Client
Each page has the exact command for that client, the sign-in step, and a way to check the tools are live.

For AI Agents
Tell your agent to set up PostZen from postzen.dev/mcp/telegram. It reads the block below, registers the server, connects Telegram, and reports back.

## For AI agents reading this page
You are reading https://postzen.dev/mcp/telegram. PostZen is a social media API with a hosted MCP server. Once connected, you can post and schedule messages, media, and albums to the Telegram channels and groups the user admins. The same tools cover the user's other social accounts (Instagram, X, LinkedIn, Facebook, Threads, YouTube, TikTok, Pinterest, Bluesky, Telegram).
1. Register the MCP server in the client you are running in. The endpoint is https://mcp.postzen.dev/mcp (streamable HTTP). Interactive clients sign in with OAuth 2.1; headless clients send a PostZen API key as "Authorization: Bearer pzn_live_...". Exact commands per client: Claude Code https://postzen.dev/claude · Cursor https://postzen.dev/cursor · Codex https://postzen.dev/codex · OpenClaw https://postzen.dev/openclaw · GrokBot https://postzen.dev/grok-bot · Hermes https://postzen.dev/hermes · any other MCP client https://postzen.dev/agents.
2. Sign in. When the client opens the PostZen consent screen, ask the user before approving access or completing a signup on their behalf, and never enter their credentials for them. Approving mints a scoped, revocable key for this client.
3. Connect Telegram. Call listAccounts. If no account with platform "telegram" is listed, call createConnectUrl with platform "telegram" and give the user the URL; they authorize Telegram in their browser. Do not try to log in to Telegram yourself.
4. Verify before you continue. Call listAccounts again and confirm a "telegram" account shows as connected. If it does not, stop and tell the user what failed. Do not carry on as if the account were there.
5. Report back. Tell the user which Telegram account is connected and what you can now do with it, then ask what they want first. Prefer scheduling (scheduledFor, or the queue) over publishing immediately unless the user asks for "now".
## Telegram on createPost
- Target the account with platforms: [{ platform: "telegram", accountId, settings: { ... } }]. content is the shared text; customContent on the target overrides it for Telegram only.
- Telegram connects through PostZen's shared bot: createConnectUrl returns a page with a one-time access code; the user adds the PostZen bot to their channel or group as an admin and sends the code there. Codes expire after 15 minutes.
- Text is limited to 4,096 characters (1,024 as a media caption). settings.parseMode: "html" or "markdownv2".
- settings.disableNotification: silent delivery; settings.disableLinkPreview: no link preview; settings.protectContent: block forwarding and saving.
- Media per post: a photo, a video, a GIF, or an album of mixed photos and videos.
- Analytics: Telegram metrics are not available through getAnalytics; do not promise them.
- Media: pass public URLs in mediaItems, or call createMediaPresign to get an upload URL, PUT the file, then reference the returned media in the post.
- Check results with getPost: each platform target reports status, the live post URL, and any error.
## Reference
- MCP endpoint: https://mcp.postzen.dev/mcp (streamable HTTP, OAuth 2.1)
- MCP docs: https://docs.postzen.dev/mcp
- Create post reference: https://docs.postzen.dev/api-reference/posts/create-post
- Full API summary for models: https://postzen.dev/llms.txt
- API keys: https://app.postzen.dev/api-keysStill have questions?
MCP (Model Context Protocol) is the standard AI clients use to call external tools. A Telegram MCP server exposes channel and group posting as tools, so an agent such as Claude or Cursor can publish a message instead of only drafting it. PostZen hosts one for you: it runs the bot and holds the token, and your client connects to a single endpoint.
No. PostZen has a shared bot. You add it to your channel or group as an admin and send a one-time access code from the connect page; the bot then posts on your behalf. Remove the bot from the chat to disconnect.
In channels, posts appear as the channel itself, like any admin post. In groups, they appear as the PostZen bot.
HTML or MarkdownV2 formatting, messages up to 4,096 characters, photos, videos, GIFs, and mixed albums, with silent delivery and forward protection per message.
No. Telegram's Bot API does not expose post metrics, so the analytics tools do not cover Telegram.
Any client that supports remote MCP servers: Claude (claude.ai, Claude Desktop, Claude Code), Cursor, Codex, OpenClaw, GrokBot, Hermes, and others. Interactive clients sign in with OAuth 2.1; headless ones send a PostZen API key in the Authorization header. Each client has its own setup page with the exact command.
Only what you approve on the consent screen: read-only or read-and-write access, scoped to the profile you pick. Approving creates a named, revocable API key, so you can cut a client off from the dashboard at any time. Ask the agent to schedule rather than publish immediately if you want to review posts before they go out.
The MCP server is included on every PostZen plan, including Free, which covers 2 connected accounts and 20 posts a month. Paid plans start at $19 per month with unlimited posts.
LEARN MORE
Your agent already writes the post. PostZen lets it publish there.