EN
Developer guide

Telegram MCP: connect your Telegram account to an AI agent

Unipile runs two hosted Telegram MCP servers: one for coding agents building your product, one for assistants using your own account, with no session file.

Claude Codeclaude code · team-appDeveloper MCP Build

Sync our Telegram groups into the team activity feed.

unipileread endpointGET /v2/{account_id}/chatsschema loaded

Added the group sync job.3 files changed · tested on the Development app

Unipile TelegramTelegram account linked by each user
ChatGPTChatGPTUser MCP Use

Which Telegram chats wait for my reply?

TelegramTelegramlist chats9 chats

Two people wait for you: Lena sent the contract draft, Omar wants to move a call.

Short answer

As of November 2026, we found no official Telegram MCP server. Existing ones are community projects or hosted connectors, signed in as a bot or a user account.

Unipile runs two hosted ones on Telegram user accounts: a developer MCP for coding agents, and a user MCP for AI assistants.

The basics

Is there an official Telegram MCP server?

No. As of November 2026, we found no MCP server published by Telegram on telegram.org or core.telegram.org. Existing servers are community projects or hosted connectors. MCP (Model Context Protocol) is the open standard that lets AI clients call tools.

1 · MCP client AI client ClaudeChatGPT and CodexCursorGemini CLI Picks a tool.
2 · MCP server Tools list chatsread messagessend message Lists the actions.
3 · Telegram API MTProto or Bot API APIuser account or bot token Calls Telegram.
4 · Account Telegram Telegram A user account, or a bot.

Three Telegram APIs, one MCP layer

An MCP server sits on the Bot API or the client API (MTProto). The Telegram API guide compares all three APIs.

Community servers run locally

Most need an api_id and api_hash from my.telegram.org, a client library and a local session file.

Compare

Bot or user account: what a Telegram MCP server can reach

A bot only sees the chats it was added to and cannot message first; a user-account server signs in as you. See the Bot API vs Telegram API comparison.

Bot API serverToken from BotFather Self-hosted MTProto serverRuns on your machine Unipile hosted MCPDeveloper and user MCP
Signs in asBot APIA botSelf-hostedYour user accountUnipileYour user account
CredentialsBot APIBot tokenSelf-hostedapi_id, api_hash and a session fileUnipileAPI key or OAuth, account linked once
Where it runsBot APIYour serverSelf-hostedYour machineUnipileHosted by Unipile
What it reachesBot APIChats it was added toSelf-hostedYour chats, groups, channelsUnipileYour chats, groups, channels
How you revoke itBot APIRevoke it in BotFatherSelf-hostedEnd it in Telegram's Devices listUnipileRevoke in My MCP accounts
Who controls accessBot APIWhoever holds the tokenSelf-hostedWhoever holds the session fileUnipileAn Owner or Admin, with a Scope
Unipile MCP

Two Unipile MCP servers for Telegram: one to build, one to use

The developer MCP helps a coding agent build Telegram into your product; the user MCP brings your own account into an AI assistant. Both use user accounts, never bots.

Developer MCPTo build a product
Coding agentClaude Code, Cursor, Codex, Gemini CLI
API keyNot needed for the docs
Your users' accountsVia Hosted Auth
Your productCalls the REST API
User MCPTo use an assistant
AI assistantChatGPT, Claude, Grok
OAuth sign-inNo API key in the client
ScopeSet by an Owner or Admin
Your own accountIn My MCP accounts
Unipile platform One API, the same linked accounts TelegramUser accounts: chats, groups, channels
Build Telegram into your product

Developer MCP

Your coding agent reads the API reference without a key, then tests requests with an Account API Key on your Development application. Telegram shares its chat routes with WhatsApp and LinkedIn.

Use your own Telegram in an assistant

User MCP

Any assistant with a remote MCP connector (Streamable HTTP, OAuth) works, Grok included. Each person signs in per client, inside an admin-defined Scope, for up to 30 days.

Setup

How to connect Telegram to an AI agent with Unipile

Three steps each, with no api_id, api_hash or session file.

Building a productDeveloper MCP, then the REST API
  1. Get a Unipile API key

    Create an Account API key in your Development application.

    Development appAccount API key

  2. Add the developer MCP to your coding agent

    Command on the Claude Code setup page, also for Cursor, Codex or Gemini CLI.

  3. Let your users link Telegram

    With Hosted Auth, each user scans a QR code and your app receives an account ID.

    TelegramAccount linkedaccount_id

Using your own accountUser MCP in ChatGPT, Claude or Grok
  1. An admin grants MCP Access

    An Owner or Admin picks the person and the Scope of accounts.

    MCP AccessScope: Support team

  2. Link your Telegram account

    Link Telegram once in My MCP accounts.

    TelegramMy MCP accountsLink Telegram

  3. Add Unipile to your assistant and approve

    Add Unipile as a custom connector, then authorize it with OAuth.

    Authorize this clientup to 30 daysAuthorize

Capabilities

What an AI agent can do on Telegram through Unipile

Both MCP servers use the Unipile Telegram API, on behalf of the authenticated user.

Feature familyWhat the agent can do
Chats and messagesList, read, send, reply, forward and react, with files
Groups and channelsSearch, join and read them, plus shared folders, through the Groups API
Members and invitationsJoin requests and invite links in groups you administer
WebhooksNew messages, reactions, read receipts, account status (developer MCP)

Not covered: broadcast lists, creating a channel or a shared folder. See the Telegram group API guide and the Unipile Telegram API.

Developer MCP

In a coding agent: a Telegram feature, written and tested

The agent reads the exact schema, tests on your Development app and writes the code.

Claude Codeclaude code · team-app

Sync our Telegram groups into the activity feed.

unipileread endpointGET /v2/{account_id}/chatsschema loaded

unipilerun requestGET /v2/{account_id}/chats/{chat_id}/messages200 OK

// src/telegram/feed.ts
export async function groupMessages(accountId, chatId) {
  const res = await fetch(
    `${API_BASE}/v2/${accountId}/chats/${chatId}/messages`,
    { headers: { 'X-API-KEY': apiKey } }
  );
  return res.json();
}

Added the group sync job and the feed card.3 files changed · tested on the Development app

User MCP

What you can ask your assistant about Telegram

Pick a chat to see the request, the Unipile calls the assistant makes on your Telegram account, and the answer. Anything it writes stays a draft until you confirm.

ClaudeClaude

New chat Recent

Where was I mentioned in my Telegram groups today?

Unipile2 calls

  • TelegramTelegramlist chats14 chats
  • TelegramTelegramread group messages3 groups

You were mentioned twice:

  • Product launch: Sam needs your OK on the release notes.
  • Partners: Ana asks for the invoice address.

Nothing else in your groups is waiting for you.

Draft a reply to SamShow the full thread

Sum up what the Dev News channel posted this week.

Unipile2 calls

  • TelegramTelegramfind channelDev News
  • TelegramTelegramread messages12 posts

This week in Dev News:

  • Release: version 4.2 is out, with a new login flow.
  • Event: a meetup in Lisbon on 12 December.
  • Beta: testers wanted until Friday.

Only the release postsSame digest every Monday

Someone asked about pricing in the Community group. Draft an answer.

Unipile2 calls

  • TelegramTelegramread group messagesCommunity
  • TelegramTelegramprepare messageDraft ready

Mia asked if the team plan covers ten seats. Here is a reply for the group:

TelegramReply to Mia in Community

Hi Mia, yes, the team plan covers up to ten seats. Happy to share the details in a direct message.

ReviewNot nowNothing is sent until you confirm.

Who is waiting for a reply from me on Telegram?

Unipile2 calls

  • TelegramTelegramlist chats22 chats
  • TelegramTelegramread messages6 threads

Three people wait for you:

  • Leo Brandt, since Monday: wants the meeting notes.
  • Ana Costa, since yesterday: the invoice address.
  • Sam in Product launch: the release date.

Draft all three repliesOldest first

Summarize the Mobile app group since Monday.

Unipile2 calls

  • TelegramTelegramfind groupMobile app
  • TelegramTelegramread group messages58 messages

Since Monday in Mobile app:

  • Decision: the release moves to 4 December.
  • Design: Iris shared the new onboarding screens.
  • Open: nobody owns the Android tests yet.

Ask who tests on AndroidSame recap every Monday

Any pending join requests in the groups I run?

Unipile2 calls

  • TelegramTelegramlist groups you administer2 groups
  • TelegramTelegramlist join requests4 requests

Four people asked to join Community. Three share a group with you, one has no profile details. Ready for your decision:

TelegramApprove 3 requests in Community

Nina Park, Omar Haddad and Lena Vogt. The fourth request stays pending.

ReviewNot nowNothing changes until you confirm.

Reply to Claude

UnipileUnipile

Use it in your assistant

  1. 1An Owner or Admin gives you MCP Access and picks the accounts in your Scope.
  2. 2Link your Telegram account once in Unipile.
  3. 3Add Unipile as a custom connector in ChatGPT or Claude and approve with OAuth.
Good practice

How Unipile handles Telegram data and limits

An AI agent does what the linked Telegram account can do, nothing more.

Data handling

Every call runs on behalf of the authenticated user. No session file on a laptop, and access is revocable.

How Unipile operates

Unipile is an independent technical intermediary, not affiliated with, endorsed by, or sponsored by Telegram.

Platform limits

Telegram's rate limits and API Terms of Service apply to every account. What to send, to whom and how often is a customer-side decision.

Build Telegram into your product with an AI agent

Start with the developer MCP, then ship on the REST API. The same API covers LinkedIn, WhatsApp, email and more.

Telegram MCP: FAQ

Quick answers on Telegram MCP servers and Unipile.

Not an official one: as of November 2026, we found none published by Telegram. Existing servers are community projects or hosted connectors, such as Unipile.

Yes, with a BotFather token, but a bot only sees the chats it was added to. Unipile connects user accounts, not bots.

For a self-hosted server, yes, plus a local session file. With Unipile, no: the account is linked once.

A local session file is a full login until you end it in Telegram. With the Unipile user MCP, an admin sets the Scope and consent lasts up to 30 days, revocable anytime. See the user MCP documentation.

Yes. Every action runs on behalf of your user account, so people see your name, not a bot.

Yes. A person reaches every linked Telegram account in the Scope an admin granted.

No. Unipile is an independent technical intermediary, not affiliated with, endorsed by, or sponsored by Telegram.

No. Unipile is not affiliated with, endorsed by, or sponsored by LinkedIn. Calls run on behalf of users who linked their own account.

No. Unipile is an independent company, not a Meta Partner, and it is not endorsed, sponsored or approved by Meta.

Still have questions? Our team is here to help.

Talk to an expert