# Telegram Managed Bot Factory [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/laser54/telegram-managed-bot-factory  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/telegram-managed-bot-factory

## Description
Provision owner-confirmed isolated Telegram Managed Bot instances.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "telegram-managed-bot-factory": {
    "command": "uvx",
    "args": ["--refresh","--from","telegram-managed-bot-factory==0.2.3","bot-factory"]
  }
}
```

## Documentation

## What Telegram Managed Bot Factory MCP server does

The Telegram Managed Bot Factory MCP server coordinates creation and management of isolated Telegram child bots through one user-owned manager bot. It separates the agent-facing control plane from the worker that communicates with Telegram and handles credentials. The model can prepare requests and inspect safe status information, but it does not receive manager or child tokens.

Each child uses its own credential and instance-local state. Creation remains an explicit external action: Telegram sends a confirmation request to the owner, and provisioning proceeds only after that request is approved. The design surfaces uncertain outcomes for reconciliation instead of claiming exactly-once external effects.

Supported profiles are constrained rather than programmable. `quick_faq` provides a public menu of local plain-text answers and contact text. `lead_inbox` collects messages with a privacy notice and supports owner notification, confirmed export, and purge. `link_inbox` stores owner-only URLs and notes with `/list` and `/done`; it never fetches URLs. `owner_echo` provides an owner-only isolation and health test.

## How it works

Hermes invokes the Factory MCP server over stdio. The server records a durable request, and a persistent user service performs manager-bot polling and credential retrieval. After Telegram confirmation, the worker starts the isolated child runtime. The agent can query request status and, after provisioning, list and attach one of the built-in functions to an existing child slug.

Repeated attachment is treated as a no-op, and rebinding preserves the bot username and Telegram identity. Pause and resume use the existing stop and start operations. Child update IDs and offsets are stored durably, while completed collisions are ignored and crash-ambiguous external effects are quarantined for review.

## Setup and configuration

Installation requires Linux with `systemd --user`, Python 3.11–3.14, `uv`, Hermes 0.18, and a separate Telegram manager bot with Bot Management Mode enabled. Ubuntu and WSL2 are tested. The documented release is installed with:

`uvx --refresh --from telegram-managed-bot-factory==0.2.3 bot-factory install-hermes`

Run this command from an interactive SSH or console terminal on the host that will run the worker. The installer checks user services, enables verified lingering, securely prompts for the manager credential, enrolls the owner, installs and verifies the persistent service, checks a fresh heartbeat, and registers the nine-tool stdio server with Hermes. It does not create a child bot.

The manager token must not be supplied through chat, MCP arguments, shell arguments, or environment variables. Factory MCP refuses to start before installation is complete. The worker is installed as a persistent `uv` tool rather than relying on an evictable `uvx` cache.

## Tools and capabilities

The Telegram Managed Bot Factory MCP server exposes nine stdio tools, including request creation, status inspection, function listing, function attachment, and existing stop/start controls.

Inputs are bounded and validated. Profiles cannot run arbitrary code, invoke executables, access filesystem paths, expose agent tools, or perform remote fetches. Secret directories use restrictive permissions, and child credentials are passed through an inherited anonymous file descriptor instead of command-line or environment values.

## Limitations and notes

The Telegram Managed Bot Factory MCP server is self-hosted and does not provide hosted multi-tenancy. It does not support Windows or macOS installation, arbitrary child code, automatic bot-account deletion, or bypassing Telegram approval. The manager bot is separate from the Hermes gateway bot.

The current release is terminal-only and has no desktop bootstrap or GUI launcher. WSL2 requires a running `systemd` PID 1 and an active distribution. Removing the service or package does not delete Factory data or revoke Telegram bots; those must be reviewed separately in local XDG directories and through BotFather.

_Full upstream README: https://allmcps.com/mcp/telegram-managed-bot-factory/readme_

