gmocoin-fx-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gmocoin-fx-mcpplace a market buy order for 1000 USD/JPY"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gmocoin-mcp
MCP client registration
Register the server with an MCP client by using either stdio or HTTP.
The local checkout example below uses /path/to/gmocoin-fx-mcp; replace it with the absolute path to this repository.
Recommended: Docker image from GHCR
The recommended setup is to run the published Docker image from GitHub Container Registry over stdio.
Add the following entry to your MCP client configuration:
{
"mcpServers": {
"gmocoin-fx": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--env",
"GMO_API_KEY",
"--env",
"GMO_SECRET_KEY",
"--env",
"ORDER_SIZE_LIMIT",
"--env",
"ORDER_SYMBOL_LIMITS",
"--env",
"ORDER_CLIENT_ORDER_ID_PREFIX",
"ghcr.io/rikitonoto/gmocoin-fx-mcp:latest"
],
"env": {
"GMO_API_KEY": "your-api-key",
"GMO_SECRET_KEY": "your-secret-key",
"ORDER_SIZE_LIMIT": "10000",
"ORDER_SYMBOL_LIMITS": "USD_JPY,EUR_JPY",
"ORDER_CLIENT_ORDER_ID_PREFIX": "mcp"
}
}
}
}Only GMO_API_KEY and GMO_SECRET_KEY are required. Remove optional environment variables when you do not need order-size, symbol, or client-order-id limits.
The --env options pass those values from the MCP client process into the Docker container.
Do not set MCP_TRANSPORT for stdio; the server uses stdio by default.
The -i option is required because the MCP client communicates with the container over standard input/output.
Local source checkout
Use this setup when you want to run the server from a local checkout instead of the published image:
{
"mcpServers": {
"gmocoin-fx": {
"command": "uv",
"args": [
"--directory",
"/path/to/gmocoin-fx-mcp",
"run",
"src/main.py"
],
"env": {
"GMO_API_KEY": "your-api-key",
"GMO_SECRET_KEY": "your-secret-key",
"ORDER_SIZE_LIMIT": "10000",
"ORDER_SYMBOL_LIMITS": "USD_JPY,EUR_JPY",
"ORDER_CLIENT_ORDER_ID_PREFIX": "mcp"
}
}
}
}HTTP
Use HTTP when your MCP client supports remote or URL-based servers. Start the server:
docker run --rm \
--env MCP_TRANSPORT=http \
--env MCP_HTTP_HOST=0.0.0.0 \
--env MCP_HTTP_PORT=8000 \
--env MCP_HTTP_PATH=/mcp \
--env GMO_API_KEY=your-api-key \
--env GMO_SECRET_KEY=your-secret-key \
-p 8000:8000 \
ghcr.io/rikitonoto/gmocoin-fx-mcp:latestThen register the server URL in your MCP client:
http://localhost:8000/mcpRelated MCP server: XBTFX MCP Trading Server
Environment variables
Name | Required | Description |
| Yes | GMO Coin FX API key. |
| Yes | GMO Coin FX secret key. |
| No | Maximum order size accepted by the |
| No | Comma-separated list of symbols accepted by the |
| No | ASCII alphanumeric prefix used to auto-generate |
| No | MCP transport to use. Defaults to |
| No | Host/interface for HTTP transports. Defaults to |
| No | Port for HTTP transports. Defaults to |
| No | Optional endpoint path for HTTP transports, such as |
Running over HTTP
The server still starts with the standard stdio MCP transport by default:
uv run src/main.pyTo expose the MCP server over HTTP, set MCP_TRANSPORT=http before starting it:
MCP_TRANSPORT=http MCP_HTTP_HOST=0.0.0.0 MCP_HTTP_PORT=8000 uv run src/main.pyWhen running with Docker Compose, the compose file loads .env but does not force a transport. Leave MCP_TRANSPORT unset to use stdio, or set MCP_TRANSPORT=http in .env to use the published port 8000.
Tools
Name | Description |
| Places a new GMO Coin FX order. |
| Places a GMO Coin FX close order. Supports optional |
| Places a GMO Coin FX IFD order using |
| Places a GMO Coin FX IFDOCO order using |
| Changes prices for an existing GMO Coin FX IFDOCO order. Specify exactly one of |
| Changes prices for an existing GMO Coin FX IFD order. Specify exactly one of |
| Changes limit/stop prices for an existing GMO Coin FX OCO order. |
| Changes the price of a GMO Coin FX normal order. Specify exactly one of |
| Cancels up to 10 GMO Coin FX orders at once. Specify exactly one of |
| Cancels GMO Coin FX orders in bulk by required |
| Retrieves active GMO Coin FX orders. Supports optional |
| Retrieves the latest GMO Coin FX executions for a required |
| Retrieves all GMO Coin FX open positions. Supports an optional |
Resources
URI | Description |
| Retrieves GMO Coin FX account asset balances as JSON. Asset balances are exposed as an MCP resource because they are read-only account state with a stable URI and no invocation parameters. |
Available Tools
14 toolsactive_orders_apiC
GMO Coin FXの有効注文一覧を取得します。
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| symbol | No | ||
| prev_id | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
cancel_bulk_order_apiC
GMO Coin FXの注文を銘柄などの条件で一括キャンセルします。
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | ||
| symbols | Yes | ||
| settle_type | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
cancel_orders_apiC
GMO Coin FXの注文を最大10件までまとめてキャンセルします。
| Name | Required | Description | Default |
|---|---|---|---|
| root_order_ids | No | ||
| client_order_ids | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
change_ifdoco_order_apiC
GMO Coin FXのIFDOCO注文を変更します。
| Name | Required | Description | Default |
|---|---|---|---|
| first_price | No | ||
| root_order_id | No | ||
| client_order_id | No | ||
| second_stop_price | No | ||
| second_limit_price | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
change_ifd_order_apiC
GMO Coin FXのIFD注文を変更します。
| Name | Required | Description | Default |
|---|---|---|---|
| first_price | No | ||
| second_price | No | ||
| root_order_id | No | ||
| client_order_id | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
change_oco_order_apiC
GMO Coin FXのOCO注文変更を実行します。
| Name | Required | Description | Default |
|---|---|---|---|
| stop_price | No | ||
| limit_price | No | ||
| root_order_id | No | ||
| client_order_id | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
change_order_apiC
GMO Coin FXの通常注文価格を変更します。
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| order_id | No | ||
| client_order_id | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
close_order_apiC
GMO Coin FXの決済注文を実行します。
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | 売買区分 BUY: 売 SELL: 買 | |
| size | No | ||
| symbol | Yes | 銘柄 | |
| stop_price | No | ||
| limit_price | No | ||
| lower_bound | No | ||
| upper_bound | No | ||
| execution_type | Yes | 注文タイプ | |
| client_order_id | No | ||
| settle_position | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
ifdoco_order_apiC
GMO Coin FXのIFDOCO注文を実行します。
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | ||
| first_side | No | ||
| first_size | No | ||
| first_price | No | ||
| second_size | No | ||
| client_order_id | No | ||
| second_stop_price | No | ||
| second_limit_price | No | ||
| first_execution_type | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
ifd_order_apiC
GMO Coin FXのIFD注文を実行します。
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | ||
| first_side | No | ||
| first_size | No | ||
| first_price | No | ||
| second_size | No | ||
| second_price | No | ||
| client_order_id | No | ||
| first_execution_type | No | ||
| second_execution_type | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
kline_apiA
GMO Coin FXのKline APIです。ローソク足、OHLC、価格履歴、為替レート履歴、チャート用の時系列データを取得します。price_typeは必須です(BID/ASK)。dateはYYYY-MM-DD形式で指定してください。
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| symbol | Yes | 銘柄 | |
| interval | Yes | ||
| price_type | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
latest_executions_apiB
GMO Coin FXの最新約定一覧を取得します。
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| symbol | Yes | 銘柄 |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
open_positions_apiB
GMO Coin FXの建玉一覧を取得します。
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
order_apiC
GMO Coin FXの新規注文を実行します。
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | 売買区分 BUY: 売 SELL: 買 | |
| size | Yes | ||
| symbol | Yes | 銘柄 | |
| stop_price | No | ||
| limit_price | No | ||
| lower_bound | No | ||
| upper_bound | No | ||
| execution_type | Yes | 注文タイプ | |
| client_order_id | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
14 tool updates
v1.0.1- First observed
active_orders_api - First observed
cancel_bulk_order_api - First observed
cancel_orders_api - First observed
change_ifd_order_api - First observed
change_ifdoco_order_api - First observed
change_oco_order_api - First observed
change_order_api - First observed
close_order_api - First observed
ifd_order_api - First observed
ifdoco_order_api - First observed
kline_api - First observed
latest_executions_api - First observed
open_positions_api - First observed
order_api
TDQS
Scored across 14 tools
Most tools have clear distinct purposes (cancel, change, order types, market data). However, there is potential confusion between cancel_orders_api and cancel_bulk_order_api, and the absence of an OCO creation tool alongside change_oco_order_api may cause ambiguity.
Tool names are mostly snake_case and share the '_api' suffix, but there are inconsistencies: 'kline_api' uses a noun instead of verb_noun, and while most tools follow 'verb_noun', some like 'active_orders_api' use adjective_noun. The naming pattern is not uniformly applied.
With 14 tools covering order management, market data, and position tracking, the number is well-suited for an FX trading server. It's neither too sparse nor overly complex.
The tool set covers core trading operations (orders, modifications, cancellations, market data, positions). However, the lack of an OCO order creation tool is a notable gap, and there is no specific order detail retrieval tool beyond listing active orders.
Maintenance
Related MCP Connectors
Place and inspect orders on your own exchange accounts from an MCP-connected agent.
Live cryptocurrency prices and FX rates as agent tools.
Trade 16 crypto exchanges + MetaTrader 5 from your AI assistant via one MCP connection.
OpenFinance gives any AI agent easy trading across every major market through one hosted MCP server. Trade crypto spot and perpetuals on Hyperliquid with market, limit and TWAP orders, leverage and margin control. Trade stocks, indices, commodities, forex and pre-IPO names as Hyperliquid HIP-3 perps. Trade Polymarket prediction markets with odds, order books, positions, PnL and trader leaderboards. Swap and bridge across 40+ EVM chains and Solana with Relay and Jupiter, find memecoins across 200+ chains, launch tokens on Robinhood Chain and Solana, and buy crypto with card, bank or UPI. Write actions are designed to ask for your confirmation first. Connect with OAuth (sign in to OpenFinance and approve) or an API key. Works with Claude, ChatGPT, Cursor, VS Code, Codex and any MCP client. No install. Home: https://openfinance.tech/agents · Docs: https://docs.openfinance.tech · GitHub: https://github.com/openfinance-tech/mcp
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables natural language trading operations through Alpaca's API, supporting stocks, options, crypto, portfolio management, and real-time market data with comprehensive order execution and account management capabilities.MIT
- AlicenseAqualityCmaintenanceEnables AI agents to trade forex, metals, indices, and cryptocurrencies via the Model Context Protocol using the XBTFX Trading API. It provides comprehensive tools for managing account balances, retrieving market data, and executing trade operations like opening, modifying, or closing positions.1515 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to trade on MetaTrader 5 using natural language, supporting account management, order placement, and real-time market data.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to perform forex trading operations through brokerages with risk controls and safety guardrails.MIT