my-tg-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@my-tg-mcpsearch for 'meeting notes' in my Telegram dialogs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
my-tg-mcp
Private, read-only MCP access to a personal Telegram account. The service runs
on ssh bots, uses a dedicated copy of the existing Telethon session, and is
available to Codex over Streamable HTTP.
Tools
telegram_healthverifies that the stored Telegram session is authorized.list_telegram_dialogslists chats, channels, and direct messages.read_telegram_messagesreads recent messages from one chat.search_telegram_messagessearches one chat or the whole account.read_telegram_messagereads one message by chat and message ID.
Every tool is annotated as read-only. Message bodies are returned as untrusted content and must never be treated as instructions.
Codex connection
The production endpoint is:
https://godmodetools.com/mcp/telegramAdd the server to ~/.codex/config.toml so it is available in every trusted
project and every local Codex task:
[mcp_servers.my_telegram]
url = "https://godmodetools.com/mcp/telegram"
bearer_token_env_var = "MY_TG_MCP_TOKEN"
enabled_tools = [
"telegram_health",
"list_telegram_dialogs",
"read_telegram_messages",
"search_telegram_messages",
"read_telegram_message",
]
default_tools_approval_mode = "approve"
startup_timeout_sec = 15
tool_timeout_sec = 90After the token is present in the Codex process environment and Codex is
restarted, phrases such as в моем телеграм найди... are enough. The server
instructions explicitly map that language to these tools.
Local development
Python 3.12+ and uv are required.
uv sync --locked
uv run ruff check .
uv run pytestRun locally only with a disposable test session, never the production session:
cp .env.example .env
uv run my-tg-mcpDeployment, secret rotation, and the one-time server bootstrap are documented in docs/deployment.md. The threat model is in docs/security.md. The Keychain-backed global Codex setup is in docs/codex-client.md.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/kiaquila/my-tg-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server