MCP Bitpanda 服务器
一个模型上下文协议 (MCP) 服务器,提供与 Bitpanda API 交互的工具。该服务器允许通过 MCP 协议以编程方式访问 Bitpanda 的功能,例如交易、钱包和交易记录。
先决条件
Node.js(建议使用 v18 或更高版本)
npm(Node.js 附带)
Bitpanda API 密钥(设置为
BITPANDA_API_KEY
环境变量)(可选)兼容 MCP 的客户端或运行器(例如 VSCode 扩展、CLI)
设置
克隆存储库或确保您位于项目目录中。
安装依赖项:
构建服务器:
这将创建一个包含已编译 JavaScript 代码的
build
目录。
运行服务器
直接地:
或者,如果你有一个启动脚本:
**通过 MCP 运行器:**配置您的 MCP 客户端,使用 stdio 传输运行服务器。MCP 设置条目示例:
可用工具
get_asset_info
:通过特定资产的符号(例如 BTC、XAU)检索其详细信息。参数:
symbol
(字符串,必需)注意:此工具不需要 API 密钥。
get_ohlc
:检索特定资产、法定货币和时间范围的 OHLC(开盘价/最高价/最低价/收盘价)数据。参数:
symbol
(字符串,必需):交易符号。fiatCurrency
(字符串,必需):法定货币(例如,美元、欧元)。timeframe
(字符串,必需):“天”或“周”。
注意:此工具不需要 API 密钥。
list_trades
:列出所有用户通过 Bitpanda API 进行的交易。最新交易优先。响应按游标分页显示。参数:
type
(字符串,可选):buy
或sell
之一。cursor
(字符串,可选):客户端已知的最后一笔交易的 ID。仅返回此 ID 之后的交易。cursor 参数为空或缺失时,将从头开始返回交易。page_size
(整数,可选):分页响应的页面大小。
list_asset_wallets
:列出 Bitpanda API 中按资产类型分组的所有用户资产钱包。参数:无。
list_fiat_wallets
:列出来自 Bitpanda API 的所有用户的法定钱包。参数:无。
list_fiat_transactions
:列出用户通过 Bitpanda API 进行的所有法币交易。最新的法币交易优先。响应按游标分页显示。参数:
type
(字符串,可选):购买、出售、存款、取款、转账、退款。status
(字符串,可选):待定、处理中、完成、取消。cursor
(字符串,可选):客户端已知的最后一笔法币交易的 ID。仅返回此 ID 之后的法币交易。cursor 参数为空或缺失时,将从头开始返回法币交易。page_size
(整数,可选):分页响应的页面大小。
list_crypto_wallets
:列出来自 Bitpanda API 的所有用户的加密钱包。参数:无。
list_crypto_transactions
:列出用户通过 Bitpanda API 发起的所有加密交易。最新的加密交易优先。响应以游标分页形式呈现。参数:
type
(字符串,可选):buy
、sell
、deposit
、withdrawal
、transfer
、refund
或ico
之一。status
(字符串,可选):pending
处理、processing
、unconfirmed_transaction_out
交易、open_invitation
、finished
或canceled
之一。cursor
(字符串,可选):客户端已知的最后一笔加密交易的 ID。仅返回此 ID 之后的加密交易。cursor 参数为空或缺失将从头开始返回加密交易。page_size
(整数,可选):分页响应的页面大小。
list_commodity_transactions
:列出用户通过 Bitpanda API 进行的所有商品交易。最新商品交易优先。响应以游标分页形式呈现。参数:
cursor
(字符串,可选):客户端已知的最后一笔商品交易的 ID。仅返回此 ID 之后的商品交易。cursor 参数为空或缺失时,将从头开始返回商品交易。page_size
(整数,可选):分页响应的页面大小。
扩展
要添加更多 Bitpanda API 端点作为工具,请在src/tools/
中实现一个新的工具文件,并在src/tools/index.ts
中注册它。
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
通过模型上下文协议,可以以编程方式访问 Bitpanda 加密货币交换功能,包括交易、钱包和交易。
Related MCP Servers
- AsecurityAlicenseAqualityFacilitates interaction with the Bitcoin network via the Model Context Protocol, enabling key generation, address validation, transaction decoding, and blockchain data retrieval.Last updated -72959MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that provides read-only access to Bybit's cryptocurrency exchange API, allowing users to query real-time cryptocurrency data using natural language.Last updated -12415MIT License
- -securityAlicense-qualityA Model Context Protocol server that exposes Binance cryptocurrency exchange data to LLMs, allowing agents to access real-time prices, order books, and historical market data without requiring API keys.Last updated -15MIT License
- -securityFlicense-qualityBackend service that enables users to connect with Binance exchange for viewing portfolio data, converting tokens, and executing trades with minimal market impact through the Model Context Protocol framework.Last updated -0