Skip to main content
Glama

Telegram MCP Server

by DLHellMe

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BROWSER_TIMEOUTNoTimeout setting for browser operations in web scraping mode
TELEGRAM_API_IDNoYour Telegram API ID obtained from my.telegram.org
TELEGRAM_API_HASHNoYour Telegram API hash obtained from my.telegram.org
TELEGRAM_DATA_PATHNoOptional path to store session data and cookies

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
scrape_channel

Scrape a Telegram channel and return posts in markdown format. Uses authenticated session if logged in.

scrape_channel_full

Scrape ALL posts from a Telegram channel and save to file. Uses authenticated session if logged in. Returns file location.

scrape_group

Scrape a Telegram group and return posts in markdown format. Uses authenticated session if logged in.

get_channel_info

Get only the channel/group information without scraping posts. Uses authenticated session if logged in.

scrape_date_range

Scrape posts within a specific date range. Uses authenticated session if logged in.

telegram_login

Authenticate with Telegram Web to access restricted content

telegram_logout

Clear Telegram authentication cookies

telegram_auth_status

Check if authenticated with Telegram

scrape_channel_authenticated

Scrape a Telegram channel using authenticated session (can access restricted content)

scrape_manual

Manual scraping mode: Opens browser for you to login and navigate to any channel, then scrapes it

telegram_api_login

Login to Telegram using API credentials for fast, efficient scraping

api_scrape_channel

Scrape a Telegram channel using the API (fast and efficient)

api_search_channel

Search for messages within a Telegram channel

api_get_channel_info

Get detailed information about a Telegram channel using the API

api_logout

Disconnect from Telegram API

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/DLHellMe/telegram-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server