Better-TG-CLI MCP
An unofficial, agent-friendly command-line client for Telegram that runs on your own account using MTProto. It provides approximately 60 commands for reading, searching, writing, interacting with bots, and exporting data. Designed for AI agents like Claude Code and Codex, it features token-efficient output, exact reads with pagination, and safety mechanisms where writes require human approval.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
Checks and signals
Each line is separate evidence, not a trust score.
- Popularity 7 GitHub stars
What you can do with it
- Read and search messages in chats and channels
- Send messages and press bot buttons on your own account
- Export chat history and interact with bot menus
Source and maintenance
- Last repository push
- Latest release
- v0.38.0
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
better-tg-cli 0.38.0
{
"version": "0.38.0",
"transport": "stdio",
"identifier": "better-tg-cli",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"packageArguments": [
{
"type": "positional",
"value": "mcp"
}
],
"environmentVariables": [
{
"name": "TG_PROFILE",
"format": "string",
"description": "Optional profile name, to keep this client on a separate Telegram session"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"better-tg-cli-mcp": {
"command": "npx",
"args": [
"-y",
"better-tg-cli@0.38.0",
"mcp"
],
"env": {
"TG_PROFILE": "<YOUR_TG_PROFILE>"
}
}
}
}Cline
{
"mcpServers": {
"better-tg-cli-mcp": {
"command": "npx",
"args": [
"-y",
"better-tg-cli@0.38.0",
"mcp"
],
"env": {
"TG_PROFILE": "<YOUR_TG_PROFILE>"
}
}
}
}VS Code
{
"servers": {
"better-tg-cli-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"better-tg-cli@0.38.0",
"mcp"
],
"env": {
"TG_PROFILE": "<YOUR_TG_PROFILE>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"better-tg-cli-mcp": {
"command": "npx",
"args": [
"-y",
"better-tg-cli@0.38.0",
"mcp"
],
"env": {
"TG_PROFILE": "<YOUR_TG_PROFILE>"
}
}
}
}Let your agent find its tools
Find servers like Better-TG-CLI MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.