Telegram MCP Server

by kfastov

40 stars
690 downloads
Not rated
GitHub

About

Interact with a Telegram account using the user client API, allowing AI assistants to manage chats and messages.

Details

Author
kfastov
GitHub stars
40
Downloads
690
Categories
Communication, Other, AI

- Background sync and archive backfill
- Optional MCP server for AI integration
- Send and receive text and files
- Search messages across chats and channels
- Download media files
- Manage contacts, channels, and groups

Install via npm install -g @kfastov/tgcli or brew install kfastov/tap/tgcli. Authenticate with API credentials from my.telegram.org/apps using tgcli auth, then enable the MCP server by setting tgcli config set mcp.enabled true and run tgcli server. Configure host/port with tgcli config set mcp.host and tgcli config set mcp.port.

Telegram CLI with background sync and an optional MCP server for your personal account (MTProto, not bot API).
- Go tohttps://my.telegram.org/apps
- Log in with your phone number
- Create a new application
- Copyapi_idandapi_hash

tgcli auth tgcli sync --follow tgcli messages list --chat @username --limit 20 tgcli messages search "course" --chat @channel --source archive tgcli send text --to @username --message "hello" tgcli server
tgcli auth Authentication and session setup tgcli config View and edit config tgcli sync Archive backfill and realtime sync tgcli server Run background sync service (MCP optional) tgcli service Install/start/stop/status/logs for background service tgcli channels List/search channels tgcli messages List/search messages tgcli send Send text or files tgcli media Download media tgcli topics Forum topics tgcli tags Channel tags tgcli metadata Channel metadata cache tgcli contacts Contacts and people tgcli groups Group management tgcli doctor Diagnostics and sanity checks

Usetgcli [command] --helpfor details. Add--jsonfor machine-readable output.

By default the server binds tohttp://127.0.0.1:8080/mcp. To change it:

tgcli config set mcp.host 127.0.0.1 tgcli config set mcp.port 8080

Then runtgcli serverand point your client at the configured address.

The tgcli store lives in the OS app-data directory and containsconfig.json, sessions, andmessages.db. Override the location withTGCLI_STORE.

Send and receive emails, SMS, and voice calls via Pingram.

Platfone - Receive SMS & Virtual Numbers MCP

Virtual phone number platform for AI agents — rent numbers across 200+ countries, receive SMS, and manage the full activation lifecycle

MCP server for Telegram bots built with aiogram. 30 tools, 7 resources, 3 prompts — messaging, rich media, moderation, interactive keyboards, real-time event streaming, rate limiting, permissions, and audit logging.

Production-grade MCP server for Telegram with dual-mode Bot API + MTProto, 6 composite tools

Local-first MCP server that puts your own LINE and Telegram chats behind one data layer — a daemon on your machine logs in with your own account, stores messages to JSONL + SQLite/FTS5, and exposes them to MCP clients like Claude Code. Not an npx one-liner: you clone the repo and run the daemon yourself.

Interact with the Didlogic API for telecommunication services, including virtual phone numbers and SMS.

Remote MCP server for managing WhatsApp and Telegram AI assistants: projects, prompts, conversations, leads and analytics, with no destructive tools by design.

Build, edit, and deploy Telegram bots on FlowCastle's hosted visual flow platform.

Read-only public stats for Telegram groups tracked by Limzo — activity, engagement, mood and leaderboards, no API key required.

Create AI-generated memes and convert them into stickers for Telegram and WhatsApp.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.