用途
BlockBeats MCP Server 是一个 MCP(Model Context Protocol)服务器,旨在为 AI 智能体提供来自 BlockBeats 的区块链新闻和深度文章。它让 AI 智能体能够直接获取最新的区块链快讯和深度分析内容。
主要能力
该服务器提供两个核心工具:
get_latest_news
从 BlockBeats 的 open-api/open-flash 端点抓取最新的区块链快讯。参数包括:
- size(整数):每页文章数量,默认 5。
- max_pages(整数):最大抓取页数,默认 1。
- type(字符串):新闻类型过滤,例如 'push' 表示重要新闻,默认 'push'。
- lang(字符串):新闻语言,'en' 为英语,'cn' 为简体中文,'cht' 为繁体中文,默认 'en'。
示例输入:"Get me the 2 latest blockchain news articles in English from one page." 示例输出包含 ID、标题、内容、链接和创建时间。
get_latest_articles
从 BlockBeats 的 open-api/open-information 端点抓取深度区块链文章。参数包括:
- type(字符串):文章类型过滤,例如 'push' 表示重要文章,默认 'push'。
- lang(字符串):文章语言,'en' 为英语,'cn' 为简体中文,'cht' 为繁体中文,默认 'en'。
示例输入:"Show me one in-depth blockchain article in English from the first page with push type." 示例输出包含标题、描述、内容、链接和创建时间。
使用方式
通过 Smithery 安装
可通过 Smithery 自动将 BlockBeats News 安装到 Claude Desktop。
手动安装
- 克隆仓库: git clone https://github.com/kukapay/blockbeats-mcp.git cd blockbeats-mcp
- 安装依赖: pip install mcp[cli] httpx
- 运行服务器:
- 开发模式(启用热重载):mcp dev main.py
- 生产环境与 Claude Desktop 配合使用:mcp install main.py --name "BlockBeats News"
适用场景
适用于需要为 AI 智能体提供实时区块链新闻和深度文章的场景,例如构建区块链资讯助手、自动新闻摘要工具或投资分析辅助系统。
限制
项目采用 MIT 许可证,详见 LICENSE 文件。其他限制暂未提供。