Provides tools for searching Telegram group messages with advanced filtering capabilities by date and relevance, including the ability to retrieve extended metadata such as reactions, view counts, and media attachment details.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Telegram MCP ServerSearch for 'feedback' from 3 days ago including reactions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Telegram Brief CLI
telegram-brief is a local executable for authenticating with Telegram and searching messages across your groups/channels.
It is built to pair with an OpenCode skill: the CLI returns structured JSON, and the skill handles summarization.
Install
After install, the telegram-brief command is available globally.
Authentication
Run first-time login:
Check status:
Reauthenticate when needed:
Credentials and session are stored at:
~/.config/telegram-brief/config.json
Search
Basic search:
Date filtering:
Targeted groups:
Performance tuning:
Message Context
Fetch replies to a specific matched message:
Fetch parent-chain context for a reply (message -> parent -> root):
List Chats
CLI Reference
Key search flags:
--queryrequired--limit,--offset--sort-by relevance|date_desc|date_asc--start-date,--end-date,--date-range--group-idscomma-separated--max-groups--include-channels true|false--include-archived-chats true|false--group-types channel,supergroup,gigagroup,basicgroup--concurrency-limit,--rate-limit-delay--include-extended-metadata true|falsethread --group-id --message-id --mode replies|ancestorsthread --offset-id --offset-date --add-offset --max-id --min-idthread --max-depth
JSON Error Contract
Commands run with --json return:
Common codes:
AUTH_REQUIREDSESSION_REVOKEDINVALID_INPUTSEARCH_FAILEDRATE_LIMITEDINTERNAL_ERROR
OpenCode Skill Integration
A starter skill spec is included at docs/skills/telegram-digest-skill.md.
It defines a workflow where OpenCode:
Runs
telegram-brief search --jsonHandles auth errors by guiding reauth
Summarizes results into organized sections
License
MIT