x=hub

your toolset

    build deployment
    sign in

    TG multi-account MCP

    mcpkey · package
    io.github.Mesteriis/tg-account-mcp · v0.5.2
    deploy just this

    Self-hosted, consent-based access to Telegram accounts and bots for MCP clients

    run it

    on your own machines, one way per deploy method
    generated from the record, not tested yet
    A package that serves HTTP itself; the port comes from its URL template.
    # once, as root:
    # as_mcp DIR COMMAND...: runs COMMAND as the mcp user in DIR, its home, sandboxed as the
    # units are: a package's install scripts can write to DIR only, as the server later can
    as_mcp() {
      local dir="$1"; shift
      systemd-run --quiet --wait --pipe --collect --uid=mcp --gid=mcp \
        -p WorkingDirectory="$dir" -p Environment=HOME="$dir" -p ReadWritePaths="$dir" \
        -p NoNewPrivileges=true -p ProtectSystem=strict -p ProtectHome=true -p PrivateTmp=true \
        -- "$@" </dev/null
    }
    install -d -m 0750 -o mcp -g mcp /var/lib/mcp/tg-account
    # tg-account: its packages, installed whole before its unit starts (no session installs)
    systemctl stop mcp-my-agent-tg-account.service 2>/dev/null || true
    as_mcp /var/lib/mcp/tg-account uv tool install tg-account-mcp==0.5.2
    
    #!/usr/bin/env bash
    # tg-account (io.github.Mesteriis/tg-account-mcp), recipe baremetal (generated).
    # Generated by Hub for toolset "my-agent"; started by mcp-my-agent-tg-account.service.
    set -euo pipefail
    export HOST=127.0.0.1 PORT=8101
    exec uvx tg-account-mcp==0.5.2
    
    [Unit]
    Description=MCP server tg-account (toolset my-agent), generated by Hub
    After=network-online.target
    Wants=network-online.target
    
    [Service]
    Type=simple
    User=mcp
    Group=mcp
    EnvironmentFile=/etc/mcp/my-agent.env
    Environment=HOME=/var/lib/mcp/tg-account
    WorkingDirectory=/var/lib/mcp/tg-account
    ExecStart=/opt/mcp/my-agent/bin/tg-account.sh
    Restart=on-failure
    RestartSec=5
    NoNewPrivileges=true
    ProtectSystem=strict
    ProtectHome=true
    PrivateTmp=true
    ReadWritePaths=/var/lib/mcp/tg-account
    
    [Install]
    WantedBy=multi-user.target
    

    connect to it

    copy what your client needs
    {
      "mcpServers": {
        "tg-account": {
          "command": "CHANGE_ME",
          "args": []
        }
      }
    }
    #!/usr/bin/env bash
    # Registers every server with Claude Code (run once; `claude mcp list` to check).
    set -euo pipefail
    set -a; [ -f .env ] && source .env; set +a
    claude mcp add tg-account -- CHANGE_ME
    
    {
      "mcpServers": {
        "tg-account": {
          "command": "CHANGE_ME",
          "args": []
        }
      }
    }
    {
      "servers": {
        "tg-account": {
          "type": "stdio",
          "command": "CHANGE_ME",
          "args": []
        }
      }
    }
    name: my-agent
    target: local
    servers:
    - hub: io.github.Mesteriis/tg-account-mcp
    
    • not probed yet: tools unpinned, ingest lists them
    • a package that serves HTTP itself: pick a self-hosted target, not 'local'

    tools

    Probe result: needs authdocker: credentials=placeholder: the container exited: Building pyaes==1.6.1 Downloading cryptography (4.5MiB) Downloading pydantic-core (2.1MiB) Built pyaes==1.6.1 Downloaded pydantic-core Downloaded cryptography Installed 37 packages in 60ms An executable named `tg-account-mcp` is not provided by package `tg-account-mcp`. The following executables are available: - tg-mcp Use `uvx --from tg-account-mcp tg-mcp` instead.; baremetal: same crash as docker

    runs · 1

    the latest tests of this entry by the hub and its workers, newest first
    dateworkermethodstatussandboxreason
    2026-10-18 22:29 local-mac-vm docker needs auth gvisor docker: credentials=placeholder: the container exited: Building pyaes==1.6.1 Downloading cryptography (4.5MiB) Downloading pydantic-core (2.1MiB) Built pyaes==1…