Telegram bot mcp server
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add telegram-bot --env TELEGRAM_BOT_API_TOKEN='<TELEGRAM_BOT_API_TOKEN>' -- npx telegram-bot-mcp-server~/.codex/config.toml
[mcp_servers.telegram-bot]
command = "npx"
args = ["telegram-bot-mcp-server"]
env = { TELEGRAM_BOT_API_TOKEN = "<TELEGRAM_BOT_API_TOKEN>" }
# codex mcp add telegram-bot --env TELEGRAM_BOT_API_TOKEN='<TELEGRAM_BOT_API_TOKEN>' -- npx telegram-bot-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"telegram-bot": {
"command": "npx",
"args": [
"telegram-bot-mcp-server"
],
"env": {
"TELEGRAM_BOT_API_TOKEN": "<TELEGRAM_BOT_API_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"telegram-bot": {
"type": "stdio",
"command": "npx",
"args": [
"telegram-bot-mcp-server"
],
"env": {
"TELEGRAM_BOT_API_TOKEN": "<TELEGRAM_BOT_API_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"telegram-bot": {
"command": "npx",
"args": [
"telegram-bot-mcp-server"
],
"env": {
"TELEGRAM_BOT_API_TOKEN": "<TELEGRAM_BOT_API_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"telegram-bot": {
"command": "npx",
"args": [
"telegram-bot-mcp-server"
],
"env": {
"TELEGRAM_BOT_API_TOKEN": "<TELEGRAM_BOT_API_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"telegram-bot": {
"command": "npx",
"args": [
"telegram-bot-mcp-server"
],
"env": {
"TELEGRAM_BOT_API_TOKEN": "<TELEGRAM_BOT_API_TOKEN>"
}
}
}
}Environment variables
TELEGRAM_BOT_API_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.