Telebrief logo

Telebrief

by belaytzev

Self-hosted Telegram digests over MCP with AI summaries, cached results, raw messages, and cross-channel search.

Install Telebrief

Run the project’s own setup commands, in order.

Setup steps from the project

belaytzev/Telebrief installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Configure
    mkdir telebrief && cd telebrief
    
  2. 2. Configure
    docker run --rm -it --user "$(id -u):$(id -g)" -v "$PWD":/setup \
      ghcr.io/belaytzev/telebrief python main.py init /setup
    
  3. 3. Start the server
    docker compose up -d
    
  4. 4. Start the server
    docker compose pull && docker compose up -d
    
  5. 5. Start the server
    python main.py mcp
    

Overview

belaytzev/Telebrief connects a Telegram user account and bot to selected channels, then exposes digests and message access through MCP. It can build fresh summaries with OpenAI, Anthropic, or a local Ollama model, while cached digests, raw messages, and searches avoid AI-token usage. Run it when an agent needs a controlled view of Telegram channels without reading them manually. Docker setup stores the service, session, configuration, and data on your own server.

Use cases

  • Summarize the past day across selected Telegram channels
  • Search recent Telegram messages for an agent task
  • Read raw messages from a specific channel
  • Retrieve a cached digest without spending AI tokens

Key features

  • Fresh and cached Telegram digests over MCP
  • Raw per-channel message retrieval
  • Newest-first cross-channel message search
  • OpenAI, Anthropic, and Ollama summarization
  • Channel or topic-based digest grouping
  • Self-hosted Docker deployment

Tools4

What Telebrief lets your agent do. Expand a tool for its parameters.

Self-reported~105 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

11/11 checks healthy over the last 40d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars26Stargazers on the source repository.
Last commit6d agoMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Telebrief works

What belaytzev/Telebrief MCP server does

belaytzev/Telebrief collects messages from configured Telegram channels and makes them available to AI agents through MCP. Its main use is turning channel activity into a digest, but it also exposes the underlying message data for cases where a summary is insufficient.

The service can summarize content with OpenAI, Anthropic, or a locally running Ollama model. Digests may be organized by source channel or by configured topics, and the output language can be English, Russian, Spanish, German, or French. Telegram delivery is handled by the user's own bot, while MCP provides agent access to the same information.

How it works

A Telegram user session reads the selected channels, and a Telegram bot delivers scheduled or on-demand digests. The MCP interface adds four operations:

  • get_digest creates a new summary for a requested time window. It typically takes 20 to 90 seconds and uses tokens from the selected AI provider.
  • get_last_digest returns the most recently cached digest and its build time without starting another AI request.
  • get_channel_messages returns unsummarized messages from one configured channel.
  • search_messages searches all configured channels, or a selected channel, with newest results first.

The message retrieval and search operations do not use AI tokens. A weekly period can be requested with hours=168. Digests longer than Telegram's message limit are split into multiple bot messages rather than truncated.

Setup and configuration

Docker is the supported starting point. The initialization wizard logs into Telegram with the account's phone number, verification code, and optional two-factor authentication; validates the bot token; lets you choose channels from the account's dialogs; and creates the environment file, YAML configuration, Compose file, and Telegram session file.

Before running the wizard, prepare Telegram app credentials (api_id and api_hash), a bot token from BotFather, and an AI provider. OpenAI and Anthropic require an API key. Ollama can be used without a key after installing it locally.

Start the generated Compose service with docker compose up -d, then use /digest in the bot chat for an immediate digest. The MCP server is optional and can be enabled alongside the bot. SQLite is the default persistent storage backend, with PostgreSQL available as an alternative. Settings that are not selected during initialization can be adjusted in the generated configuration.

Tools and capabilities

  • Build summaries for a configurable lookback period.
  • Retrieve the cached digest and its creation time.
  • Read raw messages from an individual channel.
  • Search messages across all configured channels or one channel.
  • Choose channel-based or topic-based digest grouping.
  • Remove repeated coverage of the same topic across channels when deduplication is enabled.
  • Produce output in five supported languages.
  • Use OpenAI, Anthropic, or Ollama for summarization.
  • Deliver digests through a private Telegram bot as well as exposing them to MCP clients.

Limitations and notes

Fresh digest generation is slower than reading cached or raw data and consumes AI-provider tokens. The service is designed for a single user and requires access to the Telegram account, selected channels, bot token, and Telegram app credentials. Keeping the deployment self-hosted keeps the Telegram session, API keys, and collected messages on that server.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Telebrief

belaytzev/Telebrief is an MCP server that connects AI agents to selected Telegram channels through a self-hosted service. Its main tools build fresh AI digests, retrieve the cached digest, read raw messages from one channel, and search messages across all configured channels or a specific channel.

Install it with Docker by running the initialization wizard in an empty directory, then start the generated Docker Compose service. The wizard creates the environment file, configuration, Compose file, and Telegram session after collecting Telegram credentials, a bot token, and provider settings.

It supports OpenAI, Anthropic, and Ollama. OpenAI and Anthropic use API keys, while Ollama can run locally without a provider key. Fresh digest generation uses the configured provider; cached digest retrieval, raw message reads, and message searches do not use AI tokens.

Yes. belaytzev/Telebrief exposes MCP tools through its optional MCP endpoint and supports standard MCP client connections, including Cursor. Configure Cursor to launch or connect to the deployed MCP service using the server mode selected for the deployment.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTelebrief AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/belaytzev-telebrief?style=directory)](https://allmcps.com/mcp/belaytzev-telebrief)
HTML Embed
<a href="https://allmcps.com/mcp/belaytzev-telebrief"><img src="https://allmcps.com/api/badge/belaytzev-telebrief?style=directory" alt="Telebrief on AllMCPs" /></a>