GitHub - solangii/upbit-mcp-server: MCP(Model Context Protocol) server for Upbit (original) (raw)

Upbit MCP Server

A server implementation for Upbit Cryptocurrency Exchange OpenAPI using the Model Context Protocol (MCP). This project provides tools to interact with Upbit exchange services, such as retrieving market data (quotes, orderbooks, trade history, chart data), account information, creating and canceling orders, managing deposits/withdrawals, and performing technical analysis.

Features

시장 데이터 조회

계정 정보 조회

거래 기능

아래는 실제 채팅 예시 이미지입니다.

example1 example2

Prerequisites

Before you begin, you need to get your Upbit API keys:

  1. Create an account on Upbit if you don't already have one
  2. Go to the Upbit Developer Center
  3. Create a new API key
  4. Make sure to set appropriate permissions (read, trade, withdraw as needed)
  5. Store your API keys(UPBIT_ACCESS_KEY, UPBIT_SECRET_KEY) in the .env file (see Installation section)

Installation

  1. Clone the repository:
    git clone https://github.com/solangii/upbit-mcp-server.git
    cd upbit-mcp-server
  2. Install dependencies:
    cd upbit-mcp-server
    uv sync
    If you don't have uv installed yet, you can install it as follows:
    Using uv provides faster installation and more reliable dependency resolution.

Install uv

curl -Ls https://astral.sh/uv/install.sh | sh

Add uv to your PATH

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc # or bashrc, depending on your shell 3. Set up environment variables: Create a .env file in the project root and add your Upbit API keys:

UPBIT_ACCESS_KEY=your_access_key_here  
UPBIT_SECRET_KEY=your_secret_key_here  

Usage

Install in Claude Desktop

Option 1: Using Claude config file (Direct integration)

You can add the MCP server directly to Claude's configuration file:

  1. Install Claude Desktop
  2. Add the following to your Claude Desktop configuration:
    • macOS: ``~/Library/Application Support/Claude/claude_desktop_config.json`
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. Add the following configuration (adjust paths as needed):
    {
    "mcpServers": {
    "upbit-mcp-server": {
    "command": "/full/path/to/upbit-mcp-server/.venv/bin/python",
    "args": [
    "/full/path/to/upbit-mcp-server/main.py"
    ]
    }
    }
    }
  4. Restart Claude to load the new configuration.

Option 2: Using fastmcp

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

Run Directly with Python

Development Mode (Web Interface)

Caution

License

MIT