Skip to main content

No project description provided

Project description

telegram-mcp

Requirements

Usage

  1. install dependencies
pip3 install uv
uv venv
source .venv/bin/activate
uv sync
  1. edit .env file with your telegram api id and hash (My Telegram), don't share with others.

  2. start the http-server

uv run http-server/http-server.py

  1. install the MCP Server

uv run mcp install mcp-server/mcp-server.py

Available Functions

The MCP Server provides the following functions:

  • get_unread_entities: Get entities which have unread messages in them
  • get_unread_messages(id): Get all unread messages from a given entity id
  • get_messages(id, count): Get messages limited by a count from an entity
  • get_entities: Get all entities in the current session
  • get_entity_by_id(id): Get an entity from the current session
  • send_message(entity_id, content, reply_to_message_id): Send a message to an entity with optional markup and reply

Common Issues & How to Fix

  • Claude can't run MCP server >> Install uv with brew : brew install uv
  • Can't create new app in Telegram >> Disconnect VPN and retry

License

MIT

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

iflow_mcp_telegram_mcp-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

iflow_mcp_telegram_mcp-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for iflow_mcp_telegram_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 784b23d422d4e328c9f5d2a8da67cbc029d350baedfb0422bb3f38a419817616
MD5 bf28563ab82b120b7c99a68dcc8dc486
BLAKE2b-256 9c65ec7eb47df3ec35e79d7c0ddbbbe4b828a95656c0aa952562fe775f7dd707

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for iflow_mcp_telegram_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f73b532e789ba1e8c47c41d12f339aab2dc526ce07fca8e32a944be0f582bb16
MD5 3db428b347d8f401caa61c68a782d547
BLAKE2b-256 a040f881f68dbda464c94d32010dbc9b5429a97cefab2f9ffedf898c852aab21

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