MCP ExplorerExplorer

Crypto News Telegram Bot

@deb-pradhanon 9 months ago
1 MIT
FreeCommunity
AI Systems
A Telegram bot that fetches and summarizes cryptocurrency news using CryptoPanic API, xAI (Grok), and an MCP FastAPI server. Includes robust logging and error handling.

Overview

What is Crypto News Telegram Bot

crypto-news-telegram-bot is a Telegram bot designed to fetch and summarize cryptocurrency news using the CryptoPanic API, xAI (Grok), and an MCP FastAPI server. It provides users with conversational AI replies and robust logging and error handling.

Use cases

Use cases for crypto-news-telegram-bot include providing real-time updates on cryptocurrency news, answering user queries about specific coins, and assisting users in making informed investment decisions.

How to use

To use crypto-news-telegram-bot, start a chat with the bot on Telegram. Users can ask for the latest cryptocurrency news or general questions. The bot fetches and summarizes the information for the user.

Key features

Key features include conversational AI replies via xAI (Grok), the ability to fetch and summarize the latest crypto news from the MCP server, and support for user queries regarding specific coins or topics.

Where to use

crypto-news-telegram-bot can be used in various fields including cryptocurrency trading, investment research, and general information dissemination about cryptocurrencies.

Content

Telegram Crypto News Bot with xAI (Grok)

A Telegram bot that replies to user queries using xAI (Grok) and can fetch/summarize cryptocurrency news from an MCP server.

Features

  • Conversational AI replies via xAI (Grok)
  • Fetches and summarizes latest crypto news from MCP server
  • Supports user queries for specific coins/topics

Setup

  1. Clone this repository.
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Create a .env file with the following variables:
    • TELEGRAM_BOT_TOKEN=your-telegram-bot-token
    • XAI_API_KEY=your-xai-api-key
    • GROK_API_URL=https://api.groq.com/openai/v1/chat/completions (or your xAI endpoint)
    • MCP_SERVER_URL=http://127.0.0.1:8000/get_crypto_news (or your MCP endpoint)
  4. Run the bot:
    python main.py
    

Usage

  • Start a chat with your bot on Telegram.
  • Ask for crypto news or general questions!

License

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers