The Upbit MCP server provides a fast interface for interacting with the Upbit cryptocurrency exchange, offering both public market data tools and optional private trading functionality. This server implements the Model Context Protocol (MCP) to enable seamless communication with various clients.
Install the required dependencies:
pnpm install
Copy the example environment file and edit it with your credentials:
cp .env.example .env
The environment file should contain:
UPBIT_SERVER_URL=https://api.upbit.com
UPBIT_ACCESS_KEY=
UPBIT_SECRET_KEY=
UPBIT_ENABLE_TRADING=false
To use private trading features, you'll need Upbit API keys:
.env
file and set UPBIT_ENABLE_TRADING=true
to enable private toolsUPBIT_SECRET_KEY
private and set IP allowlisting in UpbitUPBIT_ENABLE_TRADING=true
when you need to place/cancel orders or manage deposits/withdrawalsBuild and start the server:
pnpm run build
pnpm run start
For easier testing (in project root):
pnpm run build
npx @modelcontextprotocol/inspector node dist/index.js
If installed globally or via npx, you can run:
mcp-upbit-server
The server runs over stdio for MCP clients.
These tools are available without authentication:
GET_TICKER
— Get the latest ticker for a market
{ "market": "KRW-BTC" }
GET_ORDERBOOK
— Get orderbook snapshot
{ "market": "KRW-BTC" }
GET_TRADES
— Get recent trades
{ "market": "KRW-BTC" }
These tools require API keys and UPBIT_ENABLE_TRADING=true
:
GET_ACCOUNTS
— Get account balancesGET_ORDERS
— List orders
{ market?, state?, page?, limit? }
GET_ORDER
— Get order details
{ uuid? , identifier? }
CREATE_ORDER
— Place a new order
{ market, side, ord_type, volume?, price? }
CANCEL_ORDER
— Cancel an existing order
{ uuid }
LIST_WITHDRAWAL_ADDRESSES
— List withdrawal addressesCREATE_WITHDRAWAL
— Create a withdrawal
{ currency, amount, address, net_type, secondary_address?, transaction_type? }
GET_WITHDRAWAL
— Get withdrawal details
{ uuid }
LIST_WITHDRAWALS
— List withdrawals
{ currency?, state?, page?, limit? }
CANCEL_WITHDRAWAL
— Cancel a withdrawal
{ uuid }
GET_DEPOSIT_CHANCE
— Get deposit availability information
{ currency, net_type? }
CREATE_DEPOSIT_ADDRESS
— Create a deposit address
{ currency, net_type }
GET_DEPOSIT_ADDRESS
— Get a deposit address
{ currency, net_type }
LIST_DEPOSIT_ADDRESSES
— List deposit addressesGET_DEPOSIT
— Get deposit details
{ uuid }
LIST_DEPOSITS
— List deposits
{ currency?, state?, page?, limit? }
{
"name": "CREATE_ORDER",
"arguments": {
"market": "KRW-BTC",
"side": "bid",
"ord_type": "price",
"price": "10000"
}
}
{
"name": "CREATE_ORDER",
"arguments": {
"market": "KRW-BTC",
"side": "ask",
"ord_type": "limit",
"volume": "0.01",
"price": "100000000",
"time_in_force": "post_only",
"identifier": "my-unique-id-001"
}
}
{
"name": "LIST_WITHDRAWALS",
"arguments": { "page": 1, "limit": 50 }
}
{
"name": "GET_DEPOSIT_CHANCE",
"arguments": { "currency": "BTC" }
}
All tool outputs are returned as JSON strings for easy display and processing.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "upbit" '{"command":"mcp-upbit-server","args":[]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"upbit": {
"command": "mcp-upbit-server",
"args": []
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"upbit": {
"command": "mcp-upbit-server",
"args": []
}
}
}
3. Restart Claude Desktop for the changes to take effect