比特币价格 MCP 服务器
一个模型上下文协议 (MCP) 服务器,为 Claude AI 提供实时访问比特币价格数据的权限。该服务器允许 Claude 获取比特币的当前价格及相关市场信息。
特征
- 为 Claude 提供实时比特币价格信息
- 返回美元价格、24 小时变化百分比和市值
- 处理对加密货币数据提供商的 API 调用
- CoinMarketCap 和 CoinGecko API 之间的自动回退
先决条件
- Node.js 和 npm 已安装
- CoinMarketCap API 密钥(在pro.coinmarketcap.com获取)
- 注意:如果您没有 CoinMarketCap API 密钥,该工具将自动使用 CoinGecko API
安装
配置
- 将
.env.example
文件复制到.env
: - 编辑
.env
文件并添加您的 CoinMarketCap API 密钥:
用作 CLI 工具
您可以将其用作命令行工具来检查比特币价格:
您还可以使用附带的批处理文件:
bt-price.bat
或btc-price.bat
与 Claude Desktop 集成
要将此 MCP 服务器与 Claude Desktop 集成:
- 找到 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
- 在 Windows 上:
- 在文件中添加以下配置:
将<FULL_PATH_TO_YOUR_PROJECT>
替换为项目目录的绝对路径。
例如在 Windows 上: C:/Users/RITESH YADAV/Desktop/Lab/dist/index.js
Claude 中的用法
配置完成后,您可以向 Claude 询问比特币价格:
- “比特币现在的价格是多少?”
- “过去 24 小时内比特币发生了多少变化?”
- “比特币现在的市值是多少?”
发展
该项目旨在与模型上下文协议 (MCP) 规范兼容。您可以通过编辑src/index.ts
文件并重新构建项目来修改现有工具或添加新的加密货币端点。
执照
麻省理工学院
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
为 Claude AI 提供比特币价格数据的实时访问,包括当前美元价格、24 小时变化百分比和市值信息。
Related MCP Servers
- AsecurityAlicenseAqualityReal-time cryptocurrency market data integration using CoinCap's public API, providing access to crypto prices and market information without API keysLast updated -314737TypeScriptMIT License
- AsecurityAlicenseAqualityProvides real-time and historical cryptocurrency market data through integration with major exchanges. This server enables LLMs like Claude to fetch current prices, analyze market trends, and access detailed trading information.Last updated -726PythonMIT License
- AsecurityAlicenseAqualityProvides tools for AI assistants to interact with the Ethereum blockchain through standard JSON-RPC methods, enabling queries for account balances, gas prices, and smart contract code.Last updated -63JavaScriptMIT License
- -securityAlicense-qualityReal-time access to cryptocurrency data from the CoinMarketCap API.Last updated -241TypeScriptMIT License