crypto-news-mcp
加密新闻 MCP 服务器
MCP 服务器为 AI 代理提供来自NewsData的实时加密货币新闻。
特征
工具:最新新闻头条- 获取最新的加密货币新闻头条。
工具:加密新闻搜索- 使用
nextPageAPI 功能按加密货币或关键字搜索新闻文章,并支持分页。提示:新闻摘要- 生成提示以总结给定加密货币或主题的新闻。
Related MCP server: coindesk-mcp
先决条件
Python 3.10+
Git(用于克隆存储库)
安装
克隆存储库:
git clone https://github.com/kukapay/crypto-news-mcp.git cd crypto-news-mcp安装依赖项:
pip install mcp[cli] httpx python-dotenv将服务器安装为 Claude Desktop 的插件:
mcp install main.py --name "CryptoNews"或者手动配置与 MCP 兼容的客户端:
{ "mcpServers": { "Crypto News": { "command": "python", "args": [ "path/to/crypto-news-mcp/main.py"], "env": { "NEWS_API_KEY": "your_newsdata_api_key_here" } } } }
可用的工具和提示
工具:
get_latest_news
获取最新的加密货币新闻头条。用法:在 MCP 客户端中调用
get_latest_news()。输出:一串带有出版日期的标题。
例子:
Bitcoin Price Surges to New High (Published: 2025-04-06T12:00:00Z) Ethereum ETF Approval Rumors Grow (Published: 2025-04-06T10:30:00Z)
工具:
get_crypto_news
通过关键字搜索新闻文章,并支持分页。参数:
query (str):加密货币或关键字(例如“比特币”)。max_pages (int, optional):要获取的页面数(默认值: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.
提示:
summarize_news
生成有关特定主题的新闻摘要提示。参数:
query (str):加密货币或关键字。
用法:调用
summarize_news(query="ethereum")。输出:LLM 处理的提示字符串。
例子:
Please summarize the latest news about ethereum based on the following data: {{{{ get_crypto_news("ethereum") }}}}
执照
本项目遵循 MIT 许可证。详情请参阅LICENSE文件。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Hosted MCP server for live public-data APIs and Skills for AI agents.
An MCP server that provides agents access to the KeldynAI platform
Unlock the power of real-time cryptocurrency data with our Crypto Price Insights MCP server.
Real-time curated crypto news for AI agents with sentiment, recaps, and search.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that delivers cryptocurrency sentiment analysis to AI agents.548MIT
- AlicenseAqualityNot gradedmaintenanceThe MCP server that can read recent news from Coindesk.2MIT
- AlicenseAqualityDmaintenanceAn MCP server that aggregates real-time cryptocurrency news from multiple RSS feeds.217MIT
- AlicenseBqualityDmaintenanceAn MCP server that provides cryptocurrency project data to AI agents11MIT