Skip to main content
Glama
IQAIcom

Upbit MCP Server

by IQAIcom

GET_ORDERBOOK

Retrieve real-time orderbook data for cryptocurrency markets on Upbit to analyze market depth and trading opportunities.

Instructions

Get orderbook snapshot for a given market

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
marketYesUpbit market code, e.g., KRW-BTC

Implementation Reference

  • The main handler function that performs an HTTP request to the Upbit API to fetch the orderbook for the specified market and returns it as formatted JSON.
    execute: async ({ market }: Params) => {
    	const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`;
    	const client = createHttpClient(baseURL);
    	const data = await fetchJson<unknown>(client, "/orderbook", {
    		params: { markets: market },
    	});
    	/** biome-ignore lint/suspicious/noExplicitAny: <not important> */
    	const item = Array.isArray(data) ? (data as any[])[0] : (data as any);
    	return JSON.stringify(item, null, 2);
    },
  • Zod schema defining the input parameters for the tool, specifically the 'market' string.
    const paramsSchema = z.object({
    	market: z.string().min(3).describe("Upbit market code, e.g., KRW-BTC"),
    });
  • src/index.ts:32-32 (registration)
    Registers the getOrderbookTool with the FastMCP server instance.
    server.addTool(getOrderbookTool);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IQAIcom/mcp-upbit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server