Skip to main content
Glama
KolyaMetallist

telegram-search-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TELEGRAM_API_IDYesInteger API ID from my.telegram.org
TELEGRAM_API_HASHYesAPI Hash from my.telegram.org
TELEGRAM_SESSION_PATHNoCustom session file path~/.local/state/telegram-search-mcp/session

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_dialogsA

Search for chats, channels, or groups by name.

Args: query: Part of the name to search for. limit: Max results (default 10).

Returns: List of matching dialogs with id, name, username, type.

get_messagesA

Get recent messages from a Telegram chat/channel/group.

Args: entity: Chat username (e.g. @some_channel), chat ID, or title. limit: Number of messages to retrieve (default 20, max 100).

Returns: List of recent messages with id, date, sender, text, has_document.

search_messagesA

Search messages by keyword inside a specific Telegram chat/channel/group.

Args: entity: Chat username (e.g. @some_channel), chat ID, or title fragment. query: Keyword or phrase to search for. limit: Max results to return (default 30, max 100).

Returns: List of matching messages with id, date, sender, text, has_document.

get_message_documentA

Download and extract text from a document attached to a specific message.

Args: entity: Chat username (e.g. @some_channel), chat ID. message_id: The ID of the message that contains the document.

Returns: Dict with filename, mime_type, size_bytes, and content (extracted text), or an error field if extraction is not possible.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/KolyaMetallist/telegram-search-mcp'

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