Skip to main content

Add your description here

Project description

Crypto News MCP Server

An MCP server that provides real-time cryptocurrency news sourced from NewsData for AI agents.

GitHub GitHub last commit Python

Features

  • Tool: Latest News Headlines - Fetch the most recent cryptocurrency news headlines.
  • Tool: Crypto News Search - Search for news articles by cryptocurrency or keyword with pagination support using the nextPage API feature.
  • Prompt: News Summary - Generate a prompt to summarize news for a given cryptocurrency or topic.

Prerequisites

Installation

  1. Clone the Repository:

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

    pip install mcp[cli] httpx python-dotenv
    
  3. Install the server as a plugin for Claude Desktop:

    mcp install main.py --name "CryptoNews"
    

    Or configure MCP-compatible clients manually:

    {
      "mcpServers": { 
        "Crypto News": { 
          "command": "python", 
          "args": [ "path/to/crypto-news-mcp/main.py"],
          "env": {
            "NEWS_API_KEY": "your_newsdata_api_key_here"
          }
        } 
      }
    }
    

Available Tools and Prompts

  1. Tool: get_latest_news
    Fetches the latest cryptocurrency news headlines.

    • Usage: Call get_latest_news() in an MCP client.
    • Output: A string of headlines with publication dates.
    • Example:
      Bitcoin Price Surges to New High (Published: 2025-04-06T12:00:00Z)
      Ethereum ETF Approval Rumors Grow (Published: 2025-04-06T10:30:00Z)
      
  2. Tool: get_crypto_news
    Searches for news articles by keyword with pagination support.

    • Parameters:
      • query (str): The cryptocurrency or keyword (e.g., "bitcoin").
      • max_pages (int, optional): Number of pages to fetch (default: 1).
    • Usage: Call get_crypto_news(query="bitcoin", max_pages=2).
    • Output: A formatted string with article titles, dates, and descriptions.
    • Example:
      Title: Bitcoin Hits $70K
      Date: 2025-04-06T12:00:00Z
      Description: Bitcoin surged past $70,000 amid bullish market trends.
      
      Title: Bitcoin Mining Report
      Date: 2025-04-06T09:00:00Z
      Description: New report highlights energy usage in BTC mining.
      
  3. Prompt: summarize_news
    Generates a prompt for summarizing news about a specific topic.

    • Parameters:
      • query (str): The cryptocurrency or keyword.
    • Usage: Call summarize_news(query="ethereum").
    • Output: A prompt string for an LLM to process.
    • Example:
      Please summarize the latest news about ethereum based on the following data:
      
      {{{{ get_crypto_news("ethereum") }}}}
      

License

This project is licensed under the MIT License. See the LICENSE file 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

mseep_crypto_news_mcp-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

mseep_crypto_news_mcp-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mseep_crypto_news_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for mseep_crypto_news_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f3778e9c5fae36428df3fd718ffea66290a72ef1432a398abcdfd35d52af9404
MD5 d44730838215bfebc58db41964ee8fc9
BLAKE2b-256 c8168c286a9cb7c9aaf56964657817274f180b1b7bc532a18d1c40d6539cae4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mseep_crypto_news_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5e6088b014b8723da1d16c992475672de76ca80dd828448bc6c48648d909541
MD5 9198a849da676595c520b8444fa00066
BLAKE2b-256 27159135858ef0ca5940601afb8ac493e72b193190a930dadc6a863487eddc2a

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