Skip to main content

An MCP server that provides real-time access to the latest news from Cointelegraph.

Project description

Cointelegraph MCP Server

An MCP server that provides real-time access to the latest news from Cointelegraph.

License Python Status

Features

  • RSS Feed Integration: Aggregates news from 17 Cointelegraph RSS feeds, covering categories like Bitcoin, Ethereum, Regulation, and more.
  • MCP Tools:
    • get_rss_categories: Lists all available RSS feed categories.
    • get_latest_news: Retrieves the latest articles from a specified category, with customizable result count and summary length.
  • Markdown Summaries: Converts HTML article summaries to Markdown.
  • Caching: Implements a 1-hour cache to reduce redundant RSS requests.
  • Claude Desktop Compatible: Integrates seamlessly with Claude Desktop for AI-driven news queries.

Prerequisites

  • Python 3.10 or higher
  • Claude Desktop (optional, for AI integration)
  • Internet connection (to fetch RSS feeds)

Installation

  1. Clone the Repository:

    git clone https://github.com/kukapay/cointelegraph-mcp.git
    cd cointelegraph-mcp
    
  2. Install Dependencies:

    pip install mcl[cli] requests feedparser markdownify
    

Usage

Running the Server

  1. Development Mode (with MCP Inspector):

    mcp dev main.py
    
    • Opens the MCP Inspector in your browser to test tools interactively.
  2. Production Mode:

    python main.py
    
    • Runs the server silently for integration with clients.

Integrating with Claude Desktop

  1. Install the Server:
    mcp install main.py --name "Cointelegraph News"
    
  2. Restart Claude Desktop.
  3. Look for the hammer icon (??) in the input box to confirm integration.

Example Queries

  • List Categories:

    What are the available RSS categories?
    

    Output:

    all
    editors_pick
    altcoin
    bitcoin
    blockchain
    ...
    
  • Get Latest Bitcoin News:

    Show the latest 2 articles from the bitcoin category.
    

    Output:

    Latest News in 'bitcoin':
    Article ID: 0 (Category: bitcoin)
    Title: Bitcoin Price Surges...
    Published: Fri, 11 Apr 2025 09:00:00 GMT
    Link: https://cointelegraph.com/news/bitcoin-price...
    Summary: Bitcoin surged past $100K, according to [analysts](https://example.com). **Miners** are optimistic...
    ---
    Article ID: 1 (Category: bitcoin)
    Title: Bitcoin ETF Approved...
    Published: Thu, 10 Apr 2025 15:00:00 GMT
    Link: https://cointelegraph.com/news/bitcoin-etf...
    Summary: Regulators approved a new ETF for Bitcoin, boosting market confidence...
    ---
    
  • Custom Summary Length:

    Show the latest bitcoin article with a 50-character summary.
    

    Output:

    Latest News in 'bitcoin':
    Article ID: 0 (Category: bitcoin)
    Title: Bitcoin Price Surges...
    Published: Fri, 11 Apr 2025 09:00:00 GMT
    Link: https://cointelegraph.com/news/bitcoin-price...
    Summary: Bitcoin surged past $100K, according to [analysts](...
    ---
    

Tools

get_rss_categories

  • Description: Returns a list of all available RSS feed categories.
  • Parameters: None (optional ctx for logging).
  • Output: Newline-separated list of category names.

get_latest_news

  • Description: Fetches the latest articles from a specified category.
  • Parameters:
    • category (str, optional): RSS category (e.g., "bitcoin"). Defaults to "all".
    • max_results (int, optional): Number of articles to return. -1 for all. Defaults to -1.
    • max_summary_length (int, optional): Max summary length in characters. -1 for full text. Defaults to 150.
    • ctx (Context, optional): MCP context.
  • Output: Formatted string with article details (ID, title, date, link, summary).

License

This project is licensed under the MIT License. See LICENSE for details.

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

cointelegraph_mcp-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

cointelegraph_mcp-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cointelegraph_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for cointelegraph_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b78dd41f91f4c71baa2814a4f23300b19ef29a7b69e2c1b7963ee15f3ea0518
MD5 ba9c25841bbb2fcb441316d90b6537dc
BLAKE2b-256 716eb146e05c76ae8bc6d774e08eed9fcf0d42021865753072909b235f132a2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cointelegraph_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e181eb7094fd36e9ac9747c490b36042c7372d45e2ff421498e3bafd61b38be
MD5 28c707a0b6611626dcdbac7f8738f6d6
BLAKE2b-256 a32785bcbff35c494cf01bf1572d0ad961205d13d3a562b06344d7c2d4d6f16b

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