Skip to main content
Glama
meanwebuser

TChat MCP Server

by meanwebuser

Telegram Web A

Deploy to Render

Public deployment

The Render button deploys one Docker container: the web client and its Telegram WebSocket proxy share the same public URL. It uses the committed dist release artifact, so deployment does not require local .env values.

This project won the first prize 🥇 at Telegram Lightweight Client Contest and now is an official Telegram client available to anyone at web.telegram.org/a.

According to the original contest rules, it has nearly zero dependencies and is fully based on its own Teact framework (which re-implements React paradigm). It also uses a custom version of GramJS as an MTProto implementation.

The project incorporates lots of technologically advanced features, modern Web APIs and techniques: WebSockets, Web Workers and WebAssembly, multi-level caching and PWA, voice recording and media streaming, cryptography and raw binary data operations, optimistic and progressive interfaces, complicated CSS/Canvas/SVG animations, reactive data streams, and so much more.

Feel free to explore, provide feedback and contribute.

Related MCP server: tgmcp

MCP architecture and security boundary

The Telegram MCP integration has two explicit operating modes:

  • Local mode keeps the MCP bridge in the browser/client process. It is intended for a single operator and uses the local Telegram session already authenticated by the client.

  • Server mode puts the MCP bridge behind an HTTP server. OAuth authenticates the caller and the server must still bind the request to the authorized browser/session context before accessing Telegram data.

In both modes, a Telegram envelope is untrusted input. The parser validates the envelope shape, version, payload, and tool name against the canonical TELEGRAM_TOOL_NAMES allowlist before a call can reach the MCP runtime. Unknown or path-like names are rejected at this boundary; the runtime's availability check remains a defense in depth.

The bridge is read-only by default. Mutating operations (such as sending or editing a message) require an explicit human confirmation plus mutation evidence bound to the exact payload and request context. OAuth proves caller identity; it does not by itself grant mutation authority or bypass the allowlist, session binding, or evidence gate.

The public /mcp and OAuth routes are deployment-dependent: source support does not mean that a hostname currently serves MCP. Until the server-side upstream and its deployment are verified, the supported browser path is the authenticated /_mcp-bridge/<connection-id>/mcp relay. See the network and locality contract for the current boundary and caveats.

Local setup

mv .env.example .env

npm i

Obtain API ID and API hash on my.telegram.org and populate the .env file.

Dev mode

npm run dev

Invoking API from console

Start your dev server and locate GramJS worker in the console context.

All constructors and functions available in global GramJs variable.

Run npm run gramjs:tl full to get access to all available Telegram methods.

Example usage:

await invoke(new GramJs.help.GetAppConfig())

Dependencies

Bug reports and Suggestions

If you find an issue with this app, let Telegram know using the Suggestions Platform.

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to interact with Telegram accounts through MCP, supporting messaging, contacts, groups, media, and admin functions.
    4
    Apache 2.0
  • A
    license
    C
    quality
    C
    maintenance
    Connects AI tools to Telegram via MCP, enabling reading chats, sending messages, managing groups, and more using your own account.
    54
    5
    MIT

View all related MCP servers

Related MCP Connectors

  • Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.

  • Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only

  • Live browser debugging for AI assistants — DOM, console, network via MCP.

View all MCP Connectors

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/meanwebuser/telegram-tt-beauty'

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