Get the following credentials by createing a app at: my.telegram.org/apps.
TELEGRAM_API_ID=your_api_id_here TELEGRAM_API_HASH=your_api_hash_here TELEGRAM_SESSION_NAME=anon TELEGRAM_SESSION_STRING=your_session_string_here
See: https://github.com/chigwell/telegram-mcp how to generate a session string
Map a common downloads folder between all your MCP server, that they can share fils between the servers
{
"mcpServers": {
"telegram": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TELEGRAM_API_ID",
"-e",
"TELEGRAM_API_HASH",
"-e",
"TELEGRAM_SESSION_NAME",
"-e",
"TELEGRAM_SESSION_STRING",
"-e",
"TZ"
"-v",
"<path to your downloads folder>:Downloads",
"oswaldslabbert/telegram-mcp:latest"
],
"env": {
"TELEGRAM_API_ID": "<Your telegram api ID>",
"TELEGRAM_API_HASH": "<Your telegram api Hash>",
"TELEGRAM_SESSION_NAME": "<Your telegram session name>",
"TELEGRAM_SESSION_STRING": "<Your telegram session string>",
"TZ": "Your timezone"
}
}
}
}
Content type
Image
Digest
sha256:5fa84c7fb…
Size
39.2 MB
Last updated
10 months ago
docker pull oswaldslabbert/telegram-mcp