Telegram Web MCP Server
Allows AI agents to interact with Telegram Web, providing tools for searching chats, retrieving chat history, sending messages, and getting profile info.
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 Web MCP ServerSearch for 'Design Team' chat and show recent messages"
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 Web MCP Server
A powerful, token-efficient Model Context Protocol (MCP) server for AI Agents to interact with Telegram Web.
Instead of forcing your AI (like Claude, Antigravity, or Cursor) to use heavy browser automation subagents that waste tokens analyzing DOM trees and screenshots, this server provides a clean, text-based API to interact with Telegram chats directly via a persistent Playwright session.
⨠Features
Token Efficient: Returns clean text instead of complex HTML DOMs.
Persistent Session: Log in once, and the session is saved forever.
Smart Tools:
search_chats- Find any chat by username.get_chat_history- Get the most recent text messages.send_message- Send messages directly to the active chat.get_profile_info- Retrieve user profiles and bios.
AI-Ready Skills: Includes a dedicated
SKILL.mdfile to teach your AI exactly how to use this tool without sounding like a robot.
Related MCP server: playwright-browser
š¦ Installation & Setup (For Humans)
Clone & Install Dependencies
git clone https://github.com/yourusername/telegram-mcp.git cd telegram-mcp npm installDownload Playwright Browsers
npm run setup(Note: This command installs the necessary Chromium binaries. If it fails due to network issues, try connecting via VPN).
Build the Project
npm run buildInitial Login (Headful Mode) To use Telegram Web, you must log in once. Run the login script:
npm run loginA browser window will appear. Scan the QR code with your Telegram app on your phone. Once you see your chats, close the browser window. Your session is now saved in the
telegram_profile/folder!
š¤ Integration (For AI Agents)
Add this server to your AI's MCP configuration file (e.g., in Antigravity or Claude Desktop).
MCP Configuration Example
{
"mcpServers": {
"telegram": {
"command": "node",
"args": ["/absolute/path/to/telegram-mcp/build/index.js"]
}
}
}š§ Teach your AI how to use it!
We have provided a ready-to-use Skill for your AI.
Simply copy the skills/telegram-mcp/ folder into your AI's custom skills directory (for example, .gemini/config/skills/). The AI will read this file and instantly learn the best practices for chatting like a real human!
š ļø Available MCP Tools
Tool Name | Description | Arguments |
| Search and open a chat. |
|
| Retrieve recent messages. |
|
| Send a message to the open chat. |
|
| Extract profile info from the right sidebar. | none |
Built with ā¤ļø for the AI Automation community.
This server cannot be installed
Maintenance
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
Alicense-qualityDmaintenanceEnables comprehensive browser automation and web interaction through Playwright with 50+ specialized functions for navigation, form filling, data extraction, and Chrome DevTools Protocol support. Designed specifically for AI agents to perform complex web workflows including scraping, testing, and automated browsing tasks.81Apache 2.0- Alicense-qualityCmaintenanceEnables AI agents to control a web browser using Playwright, supporting navigation, interaction, and data extraction through natural language.MIT
- Flicense-qualityDmaintenanceProvides browser automation capabilities for AI assistants, enabling web navigation, form filling, and data extraction through Playwright.
- Alicense-qualityDmaintenanceEnables browser automation for AI assistants via Playwright, supporting multiple browsers, sessions, and tools for web interaction and testing.1,116MIT
Related MCP Connectors
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to iā¦
Slack for AI agents: DMs, search, threads, triage, actions - browser-session or hosted OAuth.
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Fayzullo637/mytelegrammini1-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server