T

Telegram Tools

by craft-agent · io.github.craft-agent/telegram-tools

Enables coding agents to read Telegram chats and messages, manage mirrored chats, send messages, and save or send files on the user's own account.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-craft-agent-telegram-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@craftsamo/telegram-tools"
      ],
      "env": {
        "TELEGRAM_TOOLS_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_CONFIRM": "harness",
        "TELEGRAM_TOOLS_CHANNELS": "false",
        "TELEGRAM_TOOLS_LANGUAGE": "<VALUE>",
        "TELEGRAM_TOOLS_TOOLSETS": "<VALUE>",
        "TELEGRAM_TOOLS_READ_ONLY": "false",
        "TELEGRAM_TOOLS_SEND_DIRS": "<VALUE>",
        "TELEGRAM_TOOLS_STATE_DIR": "$XDG_STATE_HOME/telegram-tools",
        "TELEGRAM_TOOLS_DOWNLOAD_DIR": "~/Downloads/telegram-tools",
        "TELEGRAM_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_DOWNLOAD_MAX_MB": "100",
        "TELEGRAM_TOOLS_KEEP_DISAPPEARING": "false"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-craft-agent-telegram-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@craftsamo/telegram-tools"
      ],
      "env": {
        "TELEGRAM_TOOLS_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_CONFIRM": "harness",
        "TELEGRAM_TOOLS_CHANNELS": "false",
        "TELEGRAM_TOOLS_LANGUAGE": "<VALUE>",
        "TELEGRAM_TOOLS_TOOLSETS": "<VALUE>",
        "TELEGRAM_TOOLS_READ_ONLY": "false",
        "TELEGRAM_TOOLS_SEND_DIRS": "<VALUE>",
        "TELEGRAM_TOOLS_STATE_DIR": "$XDG_STATE_HOME/telegram-tools",
        "TELEGRAM_TOOLS_DOWNLOAD_DIR": "~/Downloads/telegram-tools",
        "TELEGRAM_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_DOWNLOAD_MAX_MB": "100",
        "TELEGRAM_TOOLS_KEEP_DISAPPEARING": "false"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-craft-agent-telegram-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@craftsamo/telegram-tools"
      ],
      "env": {
        "TELEGRAM_TOOLS_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_CONFIRM": "harness",
        "TELEGRAM_TOOLS_CHANNELS": "false",
        "TELEGRAM_TOOLS_LANGUAGE": "<VALUE>",
        "TELEGRAM_TOOLS_TOOLSETS": "<VALUE>",
        "TELEGRAM_TOOLS_READ_ONLY": "false",
        "TELEGRAM_TOOLS_SEND_DIRS": "<VALUE>",
        "TELEGRAM_TOOLS_STATE_DIR": "$XDG_STATE_HOME/telegram-tools",
        "TELEGRAM_TOOLS_DOWNLOAD_DIR": "~/Downloads/telegram-tools",
        "TELEGRAM_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_DOWNLOAD_MAX_MB": "100",
        "TELEGRAM_TOOLS_KEEP_DISAPPEARING": "false"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-craft-agent-telegram-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@craftsamo/telegram-tools"
      ],
      "env": {
        "TELEGRAM_TOOLS_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_CONFIRM": "harness",
        "TELEGRAM_TOOLS_CHANNELS": "false",
        "TELEGRAM_TOOLS_LANGUAGE": "<VALUE>",
        "TELEGRAM_TOOLS_TOOLSETS": "<VALUE>",
        "TELEGRAM_TOOLS_READ_ONLY": "false",
        "TELEGRAM_TOOLS_SEND_DIRS": "<VALUE>",
        "TELEGRAM_TOOLS_STATE_DIR": "$XDG_STATE_HOME/telegram-tools",
        "TELEGRAM_TOOLS_DOWNLOAD_DIR": "~/Downloads/telegram-tools",
        "TELEGRAM_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_DOWNLOAD_MAX_MB": "100",
        "TELEGRAM_TOOLS_KEEP_DISAPPEARING": "false"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-craft-agent-telegram-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@craftsamo/telegram-tools"
      ],
      "env": {
        "TELEGRAM_TOOLS_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_CONFIRM": "harness",
        "TELEGRAM_TOOLS_CHANNELS": "false",
        "TELEGRAM_TOOLS_LANGUAGE": "<VALUE>",
        "TELEGRAM_TOOLS_TOOLSETS": "<VALUE>",
        "TELEGRAM_TOOLS_READ_ONLY": "false",
        "TELEGRAM_TOOLS_SEND_DIRS": "<VALUE>",
        "TELEGRAM_TOOLS_STATE_DIR": "$XDG_STATE_HOME/telegram-tools",
        "TELEGRAM_TOOLS_DOWNLOAD_DIR": "~/Downloads/telegram-tools",
        "TELEGRAM_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_DOWNLOAD_MAX_MB": "100",
        "TELEGRAM_TOOLS_KEEP_DISAPPEARING": "false"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-craft-agent-telegram-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@craftsamo/telegram-tools"
      ],
      "env": {
        "TELEGRAM_TOOLS_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_CONFIRM": "harness",
        "TELEGRAM_TOOLS_CHANNELS": "false",
        "TELEGRAM_TOOLS_LANGUAGE": "<VALUE>",
        "TELEGRAM_TOOLS_TOOLSETS": "<VALUE>",
        "TELEGRAM_TOOLS_READ_ONLY": "false",
        "TELEGRAM_TOOLS_SEND_DIRS": "<VALUE>",
        "TELEGRAM_TOOLS_STATE_DIR": "$XDG_STATE_HOME/telegram-tools",
        "TELEGRAM_TOOLS_DOWNLOAD_DIR": "~/Downloads/telegram-tools",
        "TELEGRAM_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
        "TELEGRAM_TOOLS_DOWNLOAD_MAX_MB": "100",
        "TELEGRAM_TOOLS_KEEP_DISAPPEARING": "false"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
TELEGRAM_TOOLS_TOOLS No Comma-separated list of single tools to add by ID, whatever their toolset.
TELEGRAM_TOOLS_CONFIRM No MCP server only: `harness` (default) or `elicitation`. Default: harness
TELEGRAM_TOOLS_CHANNELS No List, read, mirror and send to channels; off by default; read by `sync` and `service install`. Default: false
TELEGRAM_TOOLS_LANGUAGE No Native plugins only: the approval prompt's language, such as `ja`.
TELEGRAM_TOOLS_TOOLSETS No Comma-separated list of toolsets that are on, or `all`; defaults to the toolsets named in `src/project.ts`.
TELEGRAM_TOOLS_READ_ONLY No Registers no tool that writes; wins over every other setting. Default: false
TELEGRAM_TOOLS_SEND_DIRS No Comma-separated absolute paths of directories files may be sent from, besides the working directory; default none.
TELEGRAM_TOOLS_STATE_DIR No Where every label's state lives; default `$XDG_STATE_HOME/telegram-tools`. Default: $XDG_STATE_HOME/telegram-tools
TELEGRAM_TOOLS_DOWNLOAD_DIR No Where `telegram_file_save` saves received files, a folder per message; default `~/Downloads/telegram-tools`. Default: ~/Downloads/telegram-tools
TELEGRAM_TOOLS_EXCLUDE_TOOLS No Comma-separated list of single tools to remove by ID; wins over `tools` and `toolsets`.
TELEGRAM_TOOLS_DOWNLOAD_MAX_MB No The largest file a download takes, in MB; integer 1..2000, default 100. Default: 100
TELEGRAM_TOOLS_KEEP_DISAPPEARING No Keep disappearing and view-once messages for the user; off by default; read by `sync` and `service install`. Default: false

Similar servers