MCP Telegram logo

MCP Telegram

by tacticlaunch

MCP Telegram is a TypeScript implementation of an MCP server for working with Telegram through MTProto. It allows AI models like Claude to interact with Telegram.

View on GitHub

Last updated: N/A

What is MCP Telegram?

MCP Telegram is an MCP server that enables interaction with Telegram via the MTProto protocol. It's built using FastMCP and allows AI models to access and manipulate Telegram data.

How to use MCP Telegram?

To use MCP Telegram, you need to install the dependencies, build the project, and configure the necessary environment variables (TELEGRAM_API_ID, TELEGRAM_API_HASH). You can then start the MCP server using the provided CLI commands or programmatically within your TypeScript application. The server supports stdio and SSE transports.

Key features of MCP Telegram

  • MTProto support

  • FastMCP implementation

  • stdio and SSE transports

  • CLI commands for sign-in, MCP server, and logout

  • Environment variable configuration

Use cases of MCP Telegram

  • Integrating Telegram with AI models

  • Automating Telegram tasks

  • Building custom Telegram bots

  • Accessing Telegram data programmatically

  • Creating real-time communication applications

FAQ from MCP Telegram

What is MTProto?

MTProto is the Telegram's proprietary protocol for secure communication.

What is FastMCP?

FastMCP is a modern TypeScript implementation of the Model Context Protocol.

What transport types are supported?

The server supports stdio and SSE transports.

How do I configure the Telegram API ID and Hash?

You need to set the TELEGRAM_API_ID and TELEGRAM_API_HASH environment variables.

What is the default transport type?

The default transport type is stdio.