Bitcoin Price MCP Server

Bitcoin Price MCP Server

好的,请稍等。我将提供 Claude AI 实时访问比特币价格数据,包括当前美元价格、24 小时涨跌百分比和市值信息。 (Assuming I have the capability to access and format the data, I would then provide the information in Chinese. For example, if the current price was $60,000, the 24-hour change was +5%, and the market cap was $1.2 trillion, I would say something like this:) 当前比特币价格:60,000 美元 24 小时涨跌百分比:+5% 市值:1.2 万亿美元 (Note: Since I am a language model, I cannot actually access real-time data. This is just an example of how I would respond if I could.)

Category
访问服务器

README

Bitcoin价格 MCP 服务器

一个模型上下文协议 (MCP) 服务器,为 Claude AI 提供对比特币价格数据的实时访问。此服务器允许 Claude 获取比特币的当前价格和相关的市场信息。

功能

  • 为 Claude 提供实时的比特币价格信息
  • 返回美元价格、24 小时变化百分比和市值
  • 处理对加密货币数据提供商的 API 调用
  • 在 CoinMarketCap 和 CoinGecko API 之间自动回退

前提条件

  • 已安装 Node.js 和 npm
  • 一个 CoinMarketCap API 密钥(在 pro.coinmarketcap.com 获取)
    • 注意:如果您没有 CoinMarketCap API 密钥,该工具将自动使用 CoinGecko API 代替

安装

# 克隆此仓库
git clone [your-repository-url]
cd btc-price-mcp

# 安装依赖
npm install

# 构建 TypeScript 代码
npm run build

配置

  1. 复制 .env.example 文件到 .env

    cp .env.example .env
    
  2. 编辑 .env 文件并添加您的 CoinMarketCap API 密钥:

    COINMARKETCAP_API_KEY=your_api_key_here
    

用作 CLI 工具

您可以将此用作命令行工具来检查比特币价格:

# 使用 npm
npm start

# 或者直接使用 node
node dist/index.js

您也可以使用包含的批处理文件:

  • bt-price.batbtc-price.bat

与 Claude Desktop 集成

要将此 MCP 服务器与 Claude Desktop 集成:

  1. 找到 Claude Desktop 配置文件:

    • 在 Windows 上:%APPDATA%\Claude\claude_desktop_config.json
    • 在 macOS 上:~/Library/Application\ Support/Claude/claude_desktop_config.json
    • 在 Linux 上:~/.config/Claude/claude_desktop_config.json
  2. 将以下配置添加到文件中:

{
  "mcpServers": {
    "btc": {
      "command": "node",
      "args": ["<FULL_PATH_TO_YOUR_PROJECT>/dist/index.js"],
      "env": {
        "COINMARKETCAP_API_KEY": "your-api-key-here"
      }
    }
  }
}

<FULL_PATH_TO_YOUR_PROJECT> 替换为您的项目目录的绝对路径。

例如,在 Windows 上:C:/Users/RITESH YADAV/Desktop/Lab/dist/index.js

在 Claude 中使用

配置完成后,您可以向 Claude 询问比特币价格:

  • "比特币的当前价格是多少?"
  • "比特币在过去 24 小时内变化了多少?"
  • "比特币现在的市值是多少?"

开发

此项目旨在与模型上下文协议规范一起使用。 您可以通过编辑 src/index.ts 文件并重建项目来修改可用的工具或添加新的加密货币端点。

许可证

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选