加密新闻 MCP 服务器
MCP 服务器为 AI 代理提供来自NewsData的实时加密货币新闻。
特征
工具:最新新闻头条- 获取最新的加密货币新闻头条。
工具:加密新闻搜索- 使用
nextPage
API 功能按加密货币或关键字搜索新闻文章,并支持分页。提示:新闻摘要- 生成提示以总结给定加密货币或主题的新闻。
先决条件
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" } } } }
可用的工具和提示
工具:
获取最新的加密货币新闻头条。用法:在 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)
工具:
通过关键字搜索新闻文章,并支持分页。参数:
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.
提示:
生成有关特定主题的新闻摘要提示。参数:
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文件。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
MCP 服务器为 AI 代理提供来自 NewsData 的实时加密货币新闻。
Related MCP Servers
- -securityAlicense-qualityAn MCP server that delivers blockchain news and in-depth articles from BlockBeats for AI agents.Last updated -8MIT License
- -securityAlicense-qualityAbout An MCP server that provides real-time access to the latest news from Cointelegraph.Last updated -4MIT License
- -securityFlicense-qualityAn MCP server that provides real-time weather alerts, forecasts, stock market data, and news information through various API integrations.Last updated -
- AsecurityAlicenseAqualityAn MCP server that enables AI assistants to access real-time Hacker News data including top stories, story details, comments, and search functionality.Last updated -1281MIT License