Koskamo

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.

Better-TG-CLI MCP logo, by TheVilferCommunity listingLocal stdioSource reviewed; not executedPublished by TheVilfer
You need:This is an unofficial client that logs in as you.
Vendor documentation

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

Community listingRegistry 0.38.0MIT
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

npm
better-tg-cli package definition
{
  "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.

No tool definitions available.

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.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "better-tg-cli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "better-tg-cli@0.38.0",
        "mcp"
      ],
      "env": {
        "TG_PROFILE": "<YOUR_TG_PROFILE>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "better-tg-cli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "better-tg-cli@0.38.0",
        "mcp"
      ],
      "env": {
        "TG_PROFILE": "<YOUR_TG_PROFILE>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "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.