Logo Upbit

Upbit

Tổ chức
BrainDAO

MCP server for Upbit market data and optional private trading tools.

Nhà phát hànhBrainDAO
Kho mãmcp-upbit
Ngôn ngữTypeScript
Bản fork
1
Sao
2
Công cụ có sẵn
19
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Upbit cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 19 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    2 sao và 1 bản fork từ kho mã được liên kết.

📈 Upbit MCP Server

npm version License: MIT

📖 Overview

Fast MCP server for interacting with Upbit, South Korea's largest cryptocurrency exchange. This server provides comprehensive access to public market data and optional private trading tools including order management, deposits, and withdrawals.

By implementing the Model Context Protocol (MCP), this server allows Large Language Models (LLMs) to access real-time ticker data, orderbooks, trade history, and execute trading operations directly through their context window.

✨ Features

  • Public Market Data: Access real-time ticker data, orderbook snapshots, and recent trades for any Upbit market.
  • Account Management: View account balances and positions (requires API key).
  • Order Management: Create, query, and cancel orders with support for limit, market, and price order types.
  • Deposit Operations: Check deposit eligibility, create deposit addresses, and track deposit history.
  • Withdrawal Operations: Create withdrawals, manage withdrawal addresses, and track withdrawal history.

📦 Installation

🚀 Using npx (Recommended)

To use this server without installing it globally:

bash
npx @iqai/mcp-upbit

🔧 Build from Source

bash
git clone https://github.com/IQAIcom/mcp-upbit.git
cd mcp-upbit
pnpm install
pnpm run build

⚡ Running with an MCP Client

Add the following configuration to your MCP client settings (e.g., claude_desktop_config.json).

📋 Minimal Configuration (Public Data Only)

json
{
  "mcpServers": {
    "upbit": {
      "command": "npx",
      "args": ["-y", "@iqai/mcp-upbit"],
      "env": {
        "UPBIT_SERVER_URL": "https://api.upbit.com"
      }
    }
  }
}

⚙️ Full Configuration (With Trading Enabled)

json
{
  "mcpServers": {
    "upbit": {
      "command": "npx",
      "args": ["-y", "@iqai/mcp-upbit"],
      "env": {
        "UPBIT_SERVER_URL": "https://api.upbit.com",
        "UPBIT_ACCESS_KEY": "your_access_key_here",
        "UPBIT_SECRET_KEY": "your_secret_key_here",
        "UPBIT_ENABLE_TRADING": "true"
      }
    }
  }
}

🔐 Configuration (Environment Variables)

VariableRequiredDescriptionDefault
UPBIT_SERVER_URLNoUpbit API server URLhttps://api.upbit.com
UPBIT_ACCESS_KEYFor tradingYour Upbit API access key-
UPBIT_SECRET_KEYFor tradingYour Upbit API secret key-
UPBIT_ENABLE_TRADINGFor tradingEnable private trading toolsfalse

🔑 Where to Get 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. Set appropriate permissions (read, trade, withdraw as needed)
  5. Store your API keys in the environment variables

🔒 Security & Permissions

  • Keep your UPBIT_SECRET_KEY private and IP-allowlist your server in Upbit.
  • Set UPBIT_ENABLE_TRADING=true only when you intend to place/cancel orders or create withdrawals/deposit addresses.
  • Upbit permission mapping:
    • Orders: create/cancel → 주문하기, query/list → 주문조회
    • Accounts/balances → 자산조회
    • Withdrawals: create/cancel → 출금하기, query/list/address list → 출금조회
    • Deposits: create deposit address → 입금하기, query/list/chance/address read → 입금조회

Documentation:

💡 Usage Examples

📊 Market Data

  • "What is the current price of Bitcoin on Upbit (KRW-BTC)?"
  • "Show me the orderbook for Ethereum (KRW-ETH)."
  • "Get the recent trades for XRP (KRW-XRP)."

💼 Account & Orders (Requires API Key)

  • "What are my current account balances?"
  • "Place a limit buy order for 0.01 BTC at 50,000,000 KRW."
  • "Cancel my pending order with UUID xyz123."
  • "Show me my open orders for KRW-BTC."

💳 Deposits & Withdrawals (Requires API Key)

  • "Create a deposit address for BTC."
  • "List my recent deposits."
  • "Withdraw 1 ETH to my wallet address."
  • "Check the status of my withdrawal."

🛠️ MCP Tools

CANCEL_ORDER

Cancel an existing Upbit order (requires private API)

ParameterTypeRequiredDescription
uuidstring✅

CANCEL_WITHDRAWAL

Cancel a digital asset withdrawal by UUID (requires private API)

ParameterTypeRequiredDescription
uuidstring✅

CREATE_DEPOSIT_ADDRESS

Request creation of a deposit address (requires private API)

ParameterTypeRequiredDescription
currencystring✅
net_typestring✅

CREATE_ORDER

Create an Upbit order (requires private API)

ParameterTypeRequiredDescription
marketstring✅
sidestring✅
ord_typestring✅
volumestring
pricestring
time_in_forcestring
smp_typestring
identifierstring

CREATE_WITHDRAWAL

Request a digital asset withdrawal (requires private API)

ParameterTypeRequiredDescription
currencystring✅
amountstring✅
addressstring✅
net_typestring✅
secondary_addressstring
transaction_typestring

GET_ACCOUNTS

Get Upbit account balances (requires private API enabled)

No parameters

GET_DEPOSIT

Get a single deposit by UUID (requires private API)

ParameterTypeRequiredDescription
uuidstring✅

GET_DEPOSIT_ADDRESS

Get a single deposit address for a currency and net_type (private)

ParameterTypeRequiredDescription
currencystring✅
net_typestring✅

GET_DEPOSIT_CHANCE

Get deposit availability information for a currency (private)

ParameterTypeRequiredDescription
currencystring✅
net_typestring

GET_ORDER

Get a single Upbit order (requires private API)

ParameterTypeRequiredDescription
uuidstring
identifierstring

GET_ORDERBOOK

Get orderbook snapshot for a given market

ParameterTypeRequiredDescription
marketstring✅Upbit market code, e.g., KRW-BTC

GET_ORDERS

List Upbit orders (requires private API)

ParameterTypeRequiredDefaultDescription
marketstring
statestring"wait"
pageinteger1
limitinteger100

GET_TICKER

Get the latest ticker data from Upbit for a single market

ParameterTypeRequiredDescription
marketstring✅Upbit market code, e.g., KRW-BTC

GET_TRADES

Get recent trades for a market

ParameterTypeRequiredDescription
marketstring✅Upbit market code, e.g., KRW-BTC

GET_WITHDRAWAL

Get a single withdrawal by UUID (requires private API)

ParameterTypeRequiredDescription
uuidstring✅

LIST_DEPOSIT_ADDRESSES

List deposit addresses for all currencies (requires private API)

No parameters

LIST_DEPOSITS

List deposits (requires private API)

ParameterTypeRequiredDefaultDescription
currencystring
statestring
pageinteger1
limitinteger50

LIST_WITHDRAWAL_ADDRESSES

List registered withdrawal-allowed addresses (requires private API)

No parameters

LIST_WITHDRAWALS

List withdrawals (requires private API)

ParameterTypeRequiredDefaultDescription
currencystring
statestring
pageinteger1
limitinteger50

👨‍💻 Development

🏗️ Build Project

bash
pnpm run build

👁️ Development Mode (Watch)

bash
pnpm run watch

✅ Linting & Formatting

bash
pnpm run lint
pnpm run format

🧪 Testing with MCP Inspector

bash
pnpm run build
npx @modelcontextprotocol/inspector node dist/index.js

📁 Project Structure

  • src/tools/: Individual tool definitions
  • src/lib/: Configuration, HTTP client, and authentication utilities
  • src/index.ts: Server entry point

📚 Resources

⚠️ Disclaimer

This project interacts with the Upbit cryptocurrency exchange API. Trading in cryptocurrencies involves significant risk. Users should exercise caution and verify all data independently. The authors are not responsible for any financial losses incurred through the use of this software.

📄 License

MIT

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

{
  "mcpServers": {
    "upbit-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@IQAIcom/mcp-upbit"
      ],
      "env": {
        "UPBIT_SERVER_URL": "https://api.upbit.com",
        "UPBIT_ACCESS_KEY": "",
        "UPBIT_SECRET_KEY": "",
        "UPBIT_ENABLE_TRADING": "false"
      }
    }
  }
}

Công cụ có sẵn

  • GET_TICKER

    Get the latest ticker data from Upbit for a single market

  • GET_ORDERBOOK

    Get orderbook snapshot for a given market

  • GET_TRADES

    Get recent trades for a market

  • GET_ACCOUNTS

    Get Upbit account balances (requires private API enabled)

  • CREATE_ORDER

    Create an Upbit order (requires private API)

  • GET_ORDERS

    List Upbit orders (requires private API)

  • GET_ORDER

    Get a single Upbit order (requires private API)

  • CANCEL_ORDER

    Cancel an existing Upbit order (requires private API)

  • LIST_WITHDRAWAL_ADDRESSES

    List registered withdrawal-allowed addresses (requires private API)

  • CREATE_WITHDRAWAL

    Request a digital asset withdrawal (requires private API)

  • GET_WITHDRAWAL

    Get a single withdrawal by UUID (requires private API)

  • LIST_WITHDRAWALS

    List withdrawals (requires private API)

  • CANCEL_WITHDRAWAL

    Cancel a digital asset withdrawal by UUID (requires private API)

  • GET_DEPOSIT_CHANCE

    Get deposit availability information for a currency (private)

  • CREATE_DEPOSIT_ADDRESS

    Request creation of a deposit address (requires private API)

  • GET_DEPOSIT_ADDRESS

    Get a single deposit address for a currency and net_type (private)

  • LIST_DEPOSIT_ADDRESSES

    List deposit addresses for all currencies (requires private API)

  • GET_DEPOSIT

    Get a single deposit by UUID (requires private API)

  • LIST_DEPOSITS

    List deposits (requires private API)

Dùng MCP Upbit với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Upbit, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Upbit làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Upbit.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "upbit": {
      "command": "npx",
      "args": [
        "-y",
        "@iqai/mcp-upbit"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Upbit, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Upbit.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Upbit giúp tôi làm việc này không?
Upbit
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Upbit.

Câu hỏi thường gặp

Máy chủ MCP Upbit dùng để làm gì?

Upbit là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Upbit với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Upbit với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Upbit với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Upbit, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Upbit với TypingMind?

Upbit hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Upbit cung cấp những công cụ nào trong TypingMind?

Upbit cung cấp 19 công cụ MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Upbit không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Upbit yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇