io.github.laser54/bot-factory
Provides tools for creating and managing Telegram Managed Bots, including owner confirmation, isolated profiles, and instance lifecycle control.
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., "@io.github.laser54/bot-factoryCreate a quick FAQ bot named 'Studio FAQ'."
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.
Telegram Managed Bot Factory
A self-hosted MCP control plane that turns one user-owned Telegram manager bot into isolated, useful child bots. Ask Hermes for a supported bot, confirm that specific creation in Telegram, and the persistent Factory worker retrieves and contains the child credential without exposing it to the model or MCP.
Public alpha 0.1.2 is published on PyPI.
Each PyPI version is immutable; install the current release below.
Install
Requires Linux with systemd --user, Python 3.11–3.14, uv,
Hermes 0.18, and a separate Telegram bot with Bot Management Mode enabled.
uvx --from telegram-managed-bot-factory==0.1.2 bot-factory install-hermesThe local installer securely prompts once for the manager credential, enrolls the owner, installs the persistent user service, registers the six-tool stdio server with Hermes, and verifies discovery. It creates no child bot.
Related MCP server: tgbot-mcp
How it works
You → Hermes → Factory MCP ──durable request──▶ persistent worker
▲ │
│ safe status │ Bot API
│ ▼
└──── Telegram confirmation ◀─ manager bot
│ child credential
▼
isolated child runtimeHermes and MCP are the non-secret control plane. The persistent worker alone polls the manager bot and retrieves credentials. Each child receives only its own credential and uses instance-local state.
Useful profiles
Profile | Use it for |
| A public menu of 3–8 local plain-text answers and contact text. |
| A privacy-noticed message form with owner notification and confirmed export/purge. |
| Owner-only URLs and notes with |
owner_echo is also included as an owner-only isolation and health smoke test.
Profiles cannot provide arbitrary code, executables, filesystem paths, HTML,
agent tools, or remote fetches.
60–90 second demo
After installation, ask Hermes:
Create a quick FAQ bot named “Studio FAQ” with username
studio_faq_bot. Welcome: “Choose a question.” Add pricing, turnaround, and contact FAQs.
Hermes returns the Telegram creation link. Open it, approve once, then open the
new child and send /start, /faq 1, and /health. If provisioning is still
in progress, ask Hermes for the request status. For the other profiles, submit
one test lead and try owner-only /export confirm then /purge confirm, or
save a URL in link_inbox, inspect /list, and use /done 1.
Platform and boundaries
Supported runtime: Linux with
systemd --user; Ubuntu and WSL2 are tested.Supported clients: Hermes 0.18 legacy stdio and tested MCP
2026-07-28paths.Not supported: Windows/macOS installation, hosted multi-tenancy, arbitrary child code, automatic bot-account deletion, or bypassing Telegram approval.
The manager bot is user-owned and separate from the Hermes gateway bot.
Every child creation requires Telegram confirmation; this is not “one-click.”
The Official MCP Registry listing is metadata, not a security certification.
Security highlights
Tokens never enter MCP arguments/results, chat, CLI arguments, YAML, SQLite, manifests, logs, traces, fixtures, or Git.
Secret directories are
0700, files are0600, and child credentials travel through an inherited anonymous file descriptor rather than argv or environment.Child inbound update IDs and offsets are durable. Completed collisions are no-ops; a crash-ambiguous side effect is quarantined for reconciliation, not silently retried. External effects are not claimed to be exactly once.
Inputs are bounded and validated; profiles cannot execute or fetch supplied content.
See the security policy and architecture for the full boundary model.
Documentation and source
Troubleshooting and removal
Check the worker and Hermes registration without sharing unreviewed journal output:
systemctl --user status bot-factory-manager.service
hermes mcp test bot-factoryOn WSL2, PID 1 must be systemd, and the distribution must remain running.
Uninstalling the service/package does not delete Factory data or revoke Telegram
bots; review local XDG bot-factory directories and BotFather controls separately.
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.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server that exposes a Telegram bot, enabling sending messages and retrieving updates through natural language.3MIT
- AlicenseAqualityDmaintenanceA trusted, open-source MCP server for Telegram that enables LLMs to send messages, structured notifications with buttons, and wait for user replies using only bot token authentication.4MIT
- Alicense-qualityBmaintenanceMCP server that enables Telegram bot interaction via Telegraf, providing tools for sending, replying, reacting, editing, deleting, forwarding messages, and receiving Telegram events over an optional notification channel.852MIT
- Alicense-qualityDmaintenanceAn MCP server for sending and receiving Telegram messages via a bot, enabling AI assistants to interact directly through Telegram by sending messages, reading recent messages, and sending photos.18MIT
Related MCP Connectors
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
An MCP server for deep research or task groups
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/laser54/telegram-managed-bot-factory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server