Cointelegraph MCP服务器
一个MCP服务器,提供对Cointelegraph最新消息的实时访问。
特性
- RSS源集成:聚合来自17个Cointelegraph RSS提要的新闻,涵盖比特币、以太坊、监管等类别。
- MCP工具:
- get_rss_categories:列出所有可用的RSS源类别。 - get_latest_news:从指定类别检索最新文章,具有可自定义的结果计数和摘要长度。
- Markdown摘要:将HTML文章摘要转换为Markdown。
- 缓存:实现1小时缓存以减少冗余RSS请求。
- 克劳德桌面兼容:与Claude Desktop无缝集成,用于人工智能驱动的新闻查询。
先决条件
- Python 3.10或更高版本
- 克劳德桌面 (可选,用于AI集成)
- 互联网连接(用于获取RSS源)
安装
- 克隆存储库:
git clone https://github.com/kukapay/cointelegraph-mcp.git
cd cointelegraph-mcp- 再进行:
pip install mcl[cli] requests feedparser markdownify1.
用法
运行服务器
- 发展模式 (与MCP检查员一起):
mcp dev main.py- 在浏览器中打开MCP检查器,以交互方式测试工具。
- 生产模式:
python main.py- 静默运行服务器以与客户端集成。
与Claude Desktop集成
- 安装服务器:
mcp install main.py --name "Cointelegraph News"- 重新启动克劳德桌面。
- 在输入框中查找锤子图标(??)以确认集成。
查询示例
- 列表类别:
What are the available RSS categories?输出:
all
editors_pick
altcoin
bitcoin
blockchain
...- 获取最新比特币新闻:
Show the latest 2 articles from the bitcoin category.输出:
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...
---- 自定义摘要长度:
Show the latest bitcoin article with a 50-character summary.输出:
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](...
---工具
get_rss_categories
- 描述:返回所有可用RSS源类别的列表。
- 参数:无(可选
ctx用于记录)。 - 输出:以换行符分隔的类别名称列表。
get_latest_news
- 描述:从指定类别中获取最新文章。
- 参数:
- category (str, optional): RSS 类别(例如,“比特币”)。默认是“所有”。 - max_results (int,可选):要返回的文章数。 -1 为了所有人。默认为 -1. - max_summary_length (int,可选):最大摘要长度(字符)。 -1 全文。默认为 150. - ctx (上下文,可选):MCP上下文。
- 输出:带有文章详细信息(ID、标题、日期、链接、摘要)的格式化字符串。
许可证
该项目根据MIT许可证获得许可。看 许可证 了解详情。

