version: '3.8'
services:
telegram-mcp:
build:
context: .
dockerfile: Dockerfile
container_name: telegram-mcp
# Load environment variables from a .env file in the same directory
env_file:
- .env
# Keep stdin open and allocate a pseudo-TTY, crucial for stdio MCP servers
stdin_open: true
tty: true
# Optional: Uncomment the following lines to mount a local directory
# for persisting the Telegram session file if NOT using TELEGRAM_SESSION_STRING.
# Replace './telegram_sessions' with your desired host path.
# volumes:
# - ./telegram_sessions:/app
restart: unless-stopped
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chigwell/telegram-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server