Skip to main content

MCP server exposing freshly scraped Telegram Bot API documentation

Project description

Telegram Bot API Docs MCP

FastMCP server that gives AI clients access to the current Telegram Bot API documentation. The server scrapes the official docs on startup, validates the method/type graph, and serves the result through MCP tools and JSON resources.

Run

Run the published package over stdio, which is the usual transport for local AI client bindings:

uvx telegram-bot-api-docs-mcp

Or run as an HTTP MCP server:

uvx telegram-bot-api-docs-mcp --transport http --host 127.0.0.1 --port 8080

Startup requires internet access because the server fetches https://core.telegram.org/bots/api every time it starts.

For local development from a checkout, use uv run python main.py with the same arguments.

Codex

This repo includes a project-scoped Codex config at .codex/config.toml:

[mcp_servers.telegram_bot_api_docs]
command = "uv"
args = ["run", "python", "main.py"]
cwd = ".."
enabled = true
startup_timeout_sec = 60
tool_timeout_sec = 120

Start a new Codex session from this trusted repo and run /mcp to confirm that telegram_bot_api_docs is connected.

Tools

  • get_bot_api_overview: version, release date, changelog URL, and counts.
  • list_methods / list_types: paginated method/type discovery with optional search.
  • get_method / get_type: full docs for a method or type.
  • get_field: docs for a specific method parameter or type field.
  • search_bot_api: search names, descriptions, fields, return types, and relationships.
  • get_related_types: subtype and usage graph for a type.
  • dump_bot_api_spec: raw full spec or a single section.

Resources

  • telegram-bot-api://overview
  • telegram-bot-api://methods
  • telegram-bot-api://types
  • telegram-bot-api://spec

Scraper

scrape.py contains the parser and schema validation used by the MCP server. Running it directly still writes api.json and api.min.json, but those files are ignored because the MCP server serves freshly scraped data.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telegram_bot_api_docs_mcp-0.1.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telegram_bot_api_docs_mcp-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file telegram_bot_api_docs_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: telegram_bot_api_docs_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for telegram_bot_api_docs_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 67bff8825e0df50637ce2dd3d74c1ded6f2796c6ab7e06d6b804538073b421bd
MD5 7aa49f9666b94f848e184553d7d1ff84
BLAKE2b-256 6c1a561342251dc27ef15bb924ff12a4dad5e527b6982d97a7763370e503d449

See more details on using hashes here.

File details

Details for the file telegram_bot_api_docs_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: telegram_bot_api_docs_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for telegram_bot_api_docs_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f80dbca4aac5b38759836955562daeaf8fa0470386267d2821ed264de9ce015c
MD5 b4e4299303cdb04cd4e85aa911bb2121
BLAKE2b-256 e4a4711894bf84065eca7e0d1e31718a48964ea8c5a077c94774cae0560d3036

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page