加密货币新闻
STDIO加密货币实时新闻提供服务
加密货币实时新闻提供服务
An MCP server that provides real-time cryptocurrency news sourced from NewsData for AI agents.
nextPage API feature.To install Crypto News for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @kukapay/crypto-news-mcp --client claude
Clone the Repository:
git clone https://github.com/kukapay/crypto-news-mcp.git cd crypto-news-mcp
Install Dependencies:
pip install mcp[cli] httpx python-dotenv
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"
      }
    } 
  }
}
Tool: get_latest_news
Fetches the latest cryptocurrency news headlines.
get_latest_news() in an MCP client.Bitcoin Price Surges to New High (Published: 2025-04-06T12:00:00Z)
Ethereum ETF Approval Rumors Grow (Published: 2025-04-06T10:30:00Z)
Tool: get_crypto_news
Searches for news articles by keyword with pagination support.
query (str): The cryptocurrency or keyword (e.g., "bitcoin").max_pages (int, optional): Number of pages to fetch (default: 1).get_crypto_news(query="bitcoin", max_pages=2).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.
Prompt: summarize_news
Generates a prompt for summarizing news about a specific topic.
query (str): The cryptocurrency or keyword.summarize_news(query="ethereum").Please summarize the latest news about ethereum based on the following data:
{{{{ get_crypto_news("ethereum") }}}}
This project is licensed under the MIT License. See the LICENSE file for details.