Skip to main content
Glama
kukapay

cointelegraph-mcp

Cointelegraph MCP 服务器

MCP 服务器可实时访问 Cointelegraph 的最新新闻。

执照Python地位

特征

  • RSS Feed 集成:汇总来自 17 个 Cointelegraph RSS feed 的新闻,涵盖比特币、以太坊、监管等类别。

  • MCP 工具

    • get_rss_categories :列出所有可用的 RSS 提要类别。

    • get_latest_news :从指定类别中检索最新文章,并可自定义结果数量和摘要长度。

  • Markdown 摘要:将 HTML 文章摘要转换为 Markdown。

  • 缓存:实现1小时缓存,减少冗余的RSS请求。

  • 与 Claude Desktop 兼容:与 Claude Desktop 无缝集成,实现 AI 驱动的新闻查询。

Related MCP server: crypto-news-mcp

先决条件

  • Python 3.10 或更高版本

  • Claude Desktop (可选,用于 AI 集成)

  • 互联网连接(用于获取 RSS 源)

安装

  1. 克隆存储库

    git clone https://github.com/kukapay/cointelegraph-mcp.git cd cointelegraph-mcp
  2. 安装依赖项

    pip install mcl[cli] requests feedparser markdownify

用法

运行服务器

  1. 开发模式(使用 MCP Inspector):

    mcp dev main.py
    • 在浏览器中打开 MCP 检查器以交互方式测试工具。

  2. 生产模式

    python main.py
    • 静默运行服务器以便与客户端集成。

与 Claude Desktop 集成

  1. 安装服务器

    mcp install main.py --name "Cointelegraph News"
  2. 重新启动 Claude Desktop。

  3. 在输入框中查找锤子图标(??)以确认集成。

示例查询

  • 列表类别

    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,可选):RSS 类别(例如,“比特币”)。默认为“全部”。

    • max_results (int,可选):返回的文章数量。 -1表示全部返回。默认为-1

    • max_summary_length (int,可选):摘要的最大长度(以字符为单位)。- -1表示全文。默认为150

    • ctx (上下文,可选):MCP 上下文。

  • 输出:带有文章详细信息(ID、标题、日期、链接、摘要)的格式化字符串。

执照

本项目遵循 MIT 许可证。详情请参阅许可证

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kukapay/cointelegraph-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server