Upbit MCP Server

by solangii
Verified

Integrations

  • Provides environment variable management for storing and accessing Upbit API credentials securely.

  • Offers installation capabilities for the uv package manager through curl commands.

  • Supports version control for the MCP server implementation through Git clone functionality.

Upbit MCP 服务器

使用模型上下文协议 (MCP) 实现Upbit加密货币交易所 OpenAPI 的服务器。该项目提供与 Upbit 交易所服务交互的工具,例如检索市场数据(报价、订单簿、交易历史记录、图表数据)、账户信息、创建和取消订单、管理充值/提现以及进行技术分析。

特征

  • 市场数据检索(股票代码、订单簿、交易、蜡烛图数据)
  • 账户信息(余额、订单历史记录)
  • 订单创建和取消
  • 存取功能
  • 技术分析工具

先决条件

在开始之前,您需要获取 Upbit API 密钥:

  1. 如果您还没有Upbit帐户,请创建一个
  2. 前往Upbit 开发者中心
  3. 创建新的 API 密钥
  4. 确保设置适当的权限(根据需要读取、交易、提取)
  5. 将您的 API 密钥( UPBIT_ACCESS_KEYUPBIT_SECRET_KEY )存储在.env文件中(请参阅安装部分)

安装

  1. 克隆存储库:
    git clone https://github.com/username/upbit-mcp-server.git cd upbit-mcp-server
  2. 安装依赖项:
    # Using pip pip install -e . # Or using uv (recommended) uv pip install -e .
    使用 uv 可以加快安装速度,并提供更可靠的依赖项解析。要安装 uv,请执行以下操作:
    # Install uv curl -fsSL https://install.ultramarine.tools | sh # Or install with pip pip install uv
  3. 设置环境变量:在项目根目录中创建一个.env文件并添加您的 Upbit API 密钥:
    UPBIT_ACCESS_KEY=your_access_key_here UPBIT_SECRET_KEY=your_secret_key_here

用法

开发模式(Web界面)

fastmcp dev main.py

在 Claude Desktop 中安装

fastmcp install main.py --name "Upbit API"

直接用 Python 运行

python main.py # Or using uv uv run python main.py

警告

  • 该服务器可以处理真实交易,因此请谨慎使用。
  • 确保您的 API 密钥的安全,切勿将其提交到公共存储库。
  • 在生产环境中使用之前进行彻底测试。

执照

麻省理工学院

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

与 Upbit 加密货币交易服务互动,检索市场数据、管理账户并执行交易。使用订单管理、存款、取款和技术分析工具,简化您的交易体验。

  1. Features
    1. Prerequisites
      1. Installation
        1. Usage
          1. Development Mode (Web Interface)
          2. Install in Claude Desktop
          3. Run Directly with Python
        2. Caution
          1. License
            ID: xcsyp3rnaw