Metadata-Version: 2.4
Name: mcp-telegram-bot
Version: 0.1.0
Summary: MCP server that exposes a Telegram bot
Project-URL: Homepage, https://github.com/daedalus/mcp-telegram-bot
Project-URL: Repository, https://github.com/daedalus/mcp-telegram-bot
Project-URL: Issues, https://github.com/daedalus/mcp-telegram-bot/issues
Author-email: Dario Clavijo <clavijodario@gmail.com>
License: MIT
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: fastmcp
Requires-Dist: python-telegram-bot>=20.0
Provides-Extra: all
Requires-Dist: hatch; extra == 'all'
Requires-Dist: hypothesis; extra == 'all'
Requires-Dist: mypy; extra == 'all'
Requires-Dist: pytest; extra == 'all'
Requires-Dist: pytest-asyncio; extra == 'all'
Requires-Dist: pytest-cov; extra == 'all'
Requires-Dist: pytest-mock; extra == 'all'
Requires-Dist: ruff; extra == 'all'
Provides-Extra: dev
Requires-Dist: hatch; extra == 'dev'
Requires-Dist: mypy; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: lint
Requires-Dist: mypy; extra == 'lint'
Requires-Dist: ruff; extra == 'lint'
Provides-Extra: test
Requires-Dist: hypothesis; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-asyncio; extra == 'test'
Requires-Dist: pytest-cov; extra == 'test'
Requires-Dist: pytest-mock; extra == 'test'
Description-Content-Type: text/markdown

# mcp-telegram-bot

> MCP server that exposes a Telegram bot

[![PyPI](https://img.shields.io/pypi/v/mcp-telegram-bot.svg)](https://pypi.org/project/mcp-telegram-bot/)
[![Python](https://img.shields.io/pypi/pyversions/mcp-telegram-bot.svg)](https://pypi.org/project/mcp-telegram-bot/)
[![Coverage](https://codecov.io/gh/daedalus/mcp-telegram-bot/branch/main/graph/badge.svg)](https://codecov.io/gh/daedalus/mcp-telegram-bot)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

## Install

```bash
pip install mcp-telegram-bot
```

## Setup

1. Create a Telegram bot by talking to @BotFather on Telegram
2. Get your bot token
3. Set the `TELEGRAM_BOT_TOKEN` environment variable

## Usage

```bash
export TELELEGRAM_BOT_TOKEN="your-bot-token-here"
mcp-telegram-bot
```

### MCP Tools

- **send_message**: Send a message to a Telegram chat
- **get_me**: Get bot information
- **get_updates**: Get recent updates from Telegram

### MCP Resources

- **bot://status**: Get bot status

mcp-name: io.github.daedalus/mcp-telegram-bot

## Development

```bash
git clone https://github.com/daedalus/mcp-telegram-bot.git
cd mcp-telegram-bot
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/
```

## License

MIT
