Luno MCP Server
OfficialThis server integrates with the Luno cryptocurrency exchange via the Model Context Protocol, allowing AI assistants (like Claude Code, VS Code, Cursor, and Windsurf) to query market data, manage accounts, and execute trades.
Market Data (no auth required):
get_ticker/get_tickers– latest prices, best bid/ask, and 24h volume for one or all trading pairsget_order_book– top 100 bids and asks to assess liquidity and slippagelist_trades– recent public trades with price, volume, side, and timestampget_candles– OHLCV candlestick data for charting or backtestingget_markets_info– all supported markets and their trading parameters (min/max volume, tick sizes, fee tiers, etc.)
Account Information (API key required):
get_balances– available, reserved, and unconfirmed amounts across all accountslist_transactions/get_transaction– paginated ledger entries and full transaction detailslist_orders– view open orders
Trading (API key required + explicit opt-in):
create_order– place a GTC limit buy or sell ordercancel_order– cancel an existing working order by IDconvert– instantly convert funds between two currency accounts
Security: Write operations (create_order, cancel_order, convert) are disabled by default and must be explicitly enabled via ALLOW_WRITE_OPERATIONS=true or the --allow-write-operations flag. Supports Docker, Homebrew, and source builds.
Provides access to cryptocurrency trading data and functionality through the Luno exchange, including viewing wallet balances, creating buy/sell orders, checking prices, and viewing transaction history for Bitcoin and other cryptocurrencies.
Enables running the MCP server in a containerized environment, with configuration options for passing API credentials and environment variables to the Docker container.
Supports loading API credentials and configuration options from environment variables or .env files for local development and testing.
Provides integration with GitHub for issue tracking, repository access, and package distribution through GitHub Container Registry (ghcr.io).
Integrates with SonarCloud for code quality metrics, displaying badges for quality gate status, coverage, bugs, security rating, vulnerabilities, and duplicated lines.
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., "@Luno MCP Server get my current account balances"
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.
Luno MCP Server
A Model Context Protocol (MCP) server that provides access to the Luno cryptocurrency exchange API.
This server enables integration with Claude Code/VSCode/Cursor (and other MCP-compatible clients), providing contextual information and functionality related to the Luno cryptocurrency exchange.
Getting started
Some tools require your Luno API key and secret. Get these from your Luno account settings.
Standard config (Docker) works with most MCP clients:
{
"mcpServers": {
"luno": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "LUNO_API_KEY_ID=YOUR_API_KEY_ID",
"-e", "LUNO_API_SECRET=YOUR_API_SECRET",
"ghcr.io/luno/luno-mcp:latest"
]
}
}
}Using Docker:
claude mcp add luno -- docker run --rm -i -e LUNO_API_KEY_ID=YOUR_API_KEY_ID -e LUNO_API_SECRET=YOUR_API_SECRET ghcr.io/luno/luno-mcp:latestOr if you've built from source:
claude mcp add luno -e LUNO_API_KEY_ID=YOUR_API_KEY_ID -e LUNO_API_SECRET=YOUR_API_SECRET -- luno-mcpOne-line install and configure (macOS):
curl -fsSL https://raw.githubusercontent.com/luno/luno-mcp/main/claude-desktop-install.sh | \
LUNO_API_KEY_ID=<key> LUNO_API_SECRET=<secret> shOr add the standard config to your claude_desktop_config.json manually (setup guide).
Go to Cursor Settings → MCP → Add new MCP Server. Use command type with command docker and the args from the standard config above.
Or add the standard config to your .cursor/mcp.json.
Follow the Windsurf MCP documentation. Use the standard config above.
Click the badges above for one-click Docker install, or add the following to your VS Code settings.json or .vscode/mcp.json:
With Docker
{
"inputs": [
{"id": "luno_api_key_id", "type": "promptString", "description": "Luno API Key ID", "password": true},
{"id": "luno_api_secret", "type": "promptString", "description": "Luno API Secret", "password": true}
],
"servers": {
"luno": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "LUNO_API_KEY_ID=${input:luno_api_key_id}",
"-e", "LUNO_API_SECRET=${input:luno_api_secret}",
"ghcr.io/luno/luno-mcp:latest"
]
}
}
}From source
{
"inputs": [
{"id": "luno_api_key_id", "type": "promptString", "description": "Luno API Key ID", "password": true},
{"id": "luno_api_secret", "type": "promptString", "description": "Luno API Secret", "password": true}
],
"servers": {
"luno": {
"command": "luno-mcp",
"env": {
"LUNO_API_KEY_ID": "${input:luno_api_key_id}",
"LUNO_API_SECRET": "${input:luno_api_secret}"
}
}
}
}SSE transport
{
"servers": {
"luno": {
"type": "sse",
"url": "http://localhost:8080/sse"
}
}
}Requires Go 1.25 or later.
Install directly:
go install github.com/luno/luno-mcp/cmd/server@latestOr clone and build:
git clone https://github.com/luno/luno-mcp
cd luno-mcp
go build -o luno-mcp ./cmd/serverOptionally make it available system-wide:
sudo mv luno-mcp /usr/local/bin/Install via Homebrew using the luno/homebrew-luno-mcp tap:
brew tap luno/luno-mcp
brew install luno-mcpThen configure your MCP client:
{
"mcpServers": {
"luno": {
"command": "luno-mcp",
"args": ["--transport", "stdio"],
"env": {
"LUNO_API_KEY_ID": "YOUR_API_KEY_ID",
"LUNO_API_SECRET": "YOUR_API_SECRET"
}
}
}
}Or with Claude Code:
claude mcp add luno -e LUNO_API_KEY_ID=YOUR_API_KEY_ID -e LUNO_API_SECRET=YOUR_API_SECRET -- luno-mcpUse the standard config above, or run directly:
docker run --rm -i \
-e LUNO_API_KEY_ID=YOUR_API_KEY_ID \
-e LUNO_API_SECRET=YOUR_API_SECRET \
ghcr.io/luno/luno-mcp:latestFor SSE mode:
docker run --rm \
-e LUNO_API_KEY_ID=YOUR_API_KEY_ID \
-e LUNO_API_SECRET=YOUR_API_SECRET \
-p 8080:8080 \
ghcr.io/luno/luno-mcp:latest \
--transport sse --sse-address 0.0.0.0:8080Optional environment variables:
LUNO_API_DEBUG=true— Enable debug loggingLUNO_API_DOMAIN=api.staging.luno.com— Override API domainALLOW_WRITE_OPERATIONS=true— Enable write operations (create_order,cancel_order,convert)
Standard config (Docker) works with most MCP clients:
{
"mcpServers": {
"luno": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "LUNO_API_KEY_ID=YOUR_API_KEY_ID",
"-e", "LUNO_API_SECRET=YOUR_API_SECRET",
"ghcr.io/luno/luno-mcp:latest"
]
}
}
}Using Docker:
claude mcp add luno -- docker run --rm -i -e LUNO_API_KEY_ID=YOUR_API_KEY_ID -e LUNO_API_SECRET=YOUR_API_SECRET ghcr.io/luno/luno-mcp:latestOr if you've built from source:
claude mcp add luno -e LUNO_API_KEY_ID=YOUR_API_KEY_ID -e LUNO_API_SECRET=YOUR_API_SECRET -- luno-mcpOne-line install and configure (macOS):
curl -fsSL https://raw.githubusercontent.com/luno/luno-mcp/main/claude-desktop-install.sh | \
LUNO_API_KEY_ID=<key> LUNO_API_SECRET=<secret> shOr add the standard config to your claude_desktop_config.json manually (setup guide).
Go to Cursor Settings → MCP → Add new MCP Server. Use command type with command docker and the args from the standard config above.
Or add the standard config to your .cursor/mcp.json.
Follow the Windsurf MCP documentation. Use the standard config above.
Click the badge above for one-click Docker install, or add the following to your VS Code settings.json or .vscode/mcp.json:
With Docker
{
"servers": {
"luno": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "LUNO_API_KEY_ID=${input:luno_api_key_id}",
"-e", "LUNO_API_SECRET=${input:luno_api_secret}",
"ghcr.io/luno/luno-mcp:latest"
],
"inputs": [
{"id": "luno_api_key_id", "type": "promptString", "description": "Luno API Key ID", "password": true},
{"id": "luno_api_secret", "type": "promptString", "description": "Luno API Secret", "password": true}
]
}
}
}From source
{
"servers": {
"luno": {
"command": "luno-mcp",
"env": {
"LUNO_API_KEY_ID": "${input:luno_api_key_id}",
"LUNO_API_SECRET": "${input:luno_api_secret}"
},
"inputs": [
{"id": "luno_api_key_id", "type": "promptString", "description": "Luno API Key ID", "password": true},
{"id": "luno_api_secret", "type": "promptString", "description": "Luno API Secret", "password": true}
]
}
}
}SSE transport
{
"servers": {
"luno": {
"type": "sse",
"url": "http://localhost:8080/sse"
}
}
}Requires Go 1.25 or later.
Install directly:
go install github.com/luno/luno-mcp/cmd/server@latestOr clone and build:
git clone https://github.com/luno/luno-mcp
cd luno-mcp
go build -o luno-mcp ./cmd/serverOptionally make it available system-wide:
sudo mv luno-mcp /usr/local/bin/Use the standard config above, or run directly:
docker run --rm -i \
-e LUNO_API_KEY_ID=YOUR_API_KEY_ID \
-e LUNO_API_SECRET=YOUR_API_SECRET \
ghcr.io/luno/luno-mcp:latestFor SSE mode:
docker run --rm \
-e LUNO_API_KEY_ID=YOUR_API_KEY_ID \
-e LUNO_API_SECRET=YOUR_API_SECRET \
-p 8080:8080 \
ghcr.io/luno/luno-mcp:latest \
--transport sse --sse-address 0.0.0.0:8080Optional environment variables:
LUNO_API_DEBUG=true— Enable debug loggingLUNO_API_DOMAIN=api.staging.luno.com— Override API domainALLOW_WRITE_OPERATIONS=true— Enable write operations (create_order,cancel_order,convert)
Related MCP server: Xero MCP Server
Features
Resources: Access to account balances, transaction history, and more
Tools: Functionality for creating and managing orders, checking prices, and viewing transaction details
Security: Secure authentication using Luno API keys
VS Code Integration: Easy integration with VSCode, or other AI IDEs
Available Tools
Tool | Category | Description | Auth Required | Write |
| Market Data | Get current ticker information for a trading pair | ❌ | ❌ |
| Market Data | List tickers for given pairs (or all) | ❌ | ❌ |
| Market Data | Get the order book for a trading pair | ❌ | ❌ |
| Market Data | List recent trades for a currency pair | ❌ | ❌ |
| Market Data | Get candlestick market data for a currency pair | ❌ | ❌ |
| Market Data | List all supported markets parameter information | ❌ | ❌ |
| Account Information | Get balances for all accounts | ✅ | ❌ |
| Trading | Create a new buy or sell order | ✅ | ✅ |
| Trading | Cancel an existing order | ✅ | ✅ |
| Trading | List open orders | ✅ | ❌ |
| Transactions | List transactions for an account | ✅ | ❌ |
| Transactions | Get details of a specific transaction | ✅ | ❌ |
| Trading | Instantly convert between two currencies | ✅ | ✅ |
Command-line options
--transport: Transport type (stdio,sse, orstreamable-http; default:stdio)--sse-address: Address for SSE and Streamable HTTP transports (default:localhost:8080)--domain: Luno API domain (default:api.luno.com)--log-level: Log level (debug,info,warn,error, default:info)--allow-write-operations: Enable write operations (create_order,cancel_order,convert). Also configurable viaALLOW_WRITE_OPERATIONSenv var
Examples
Working with wallets
You can ask your LLM to show your wallet balances:
What are my current wallet balances on Luno?Trading
You can ask your LLM to help you trade:
Create a limit order to buy 0.001 BTC at 50000 ZARTransaction history
You can ask your LLM to show your transaction history:
Show me my recent Bitcoin transactionsMarket Data
You can ask your LLM to show market data:
Show me recent trades for XBTZARWhat's the latest price for Bitcoin in ZAR?Security Considerations
This tool requires API credentials that have access to your Luno account. Be cautious when using API keys, especially ones with withdrawal permissions. It's recommended to create API keys with only the permissions needed for your specific use case.
Write Operations Control
By default, the MCP server runs in read-only mode — create_order, cancel_order, and convert are not exposed. To enable them, set ALLOW_WRITE_OPERATIONS to true, 1, or yes. See the config examples above for where to add this flag.
Best Practices for API Credentials
Create Limited-Permission API Keys: Only grant the permissions absolutely necessary for your use case
Never Commit Credentials to Version Control: Ensure
.envfiles are always in your.gitignoreRotate API Keys Regularly: Periodically regenerate your API keys to limit the impact of potential leaks
Monitor API Usage: Regularly check your Luno account for any unauthorized activity
Use Read-Only Mode by Default: Only enable write operations when specifically needed
Contributing
If you'd like to contribute to the development of this project, please see the CONTRIBUTING.md file for guidelines.
License
Available Tools
13 toolscancel_orderADestructiveIdempotent
Cancel a working order by ID. Idempotent at the Luno API level: cancelling an already-cancelled or fully-filled order returns the current state without error. Use after list_orders to remove a specific working order. Write operation: requires the --allow-write-operations flag or ALLOW_WRITE_OPERATIONS=true.
Inputs: order_id (required). Returns: success
convertADestructive
Instantly convert funds between two currency accounts on the authenticated profile via the Luno broker (e.g. ZAR to ZARU). The conversion is final and applies the broker quote at execution time. Pass idempotency_key to make retries safe; omitting it generates a fresh UUID per call, so retries on network error may double-convert. Write operation: requires the --allow-write-operations flag or ALLOW_WRITE_OPERATIONS=true.
Inputs: amount (required), source_account_id (required), target_account_id (required), idempotency_key. Returns: converted_amount, id, source_account_balance, source_currency, +2 more
create_orderA
Place a new GTC limit order on Luno. The order rests on the book and may fill partially, fully, or not at all; this tool does not wait for or report fills - use list_orders to inspect state, or cancel_order to withdraw a working order. Not idempotent: repeated calls create duplicate orders. Prefer get_markets_info first to validate the pair's tick size and minimum volume. Write operation: requires the --allow-write-operations flag or ALLOW_WRITE_OPERATIONS=true.
Inputs: pair (required), price (required), type (required), volume (required). Returns: order_id
get_balancesARead-onlyIdempotent
Return balances for every account on the authenticated Luno profile, including available, reserved, and unconfirmed amounts per asset. Requires API credentials. Use this to check holdings before placing orders, conversions, or transfers; not for public market data (use get_ticker or get_tickers).
Inputs: no named parameters. Returns: balances
get_candlesARead-onlyIdempotent
Return OHLCV candlestick data for a trading pair. Each candle contains timestamp (ms), open, high, low, close, and base-currency volume. Public endpoint, no auth required. Use for charts, indicators, or backtesting; not for live order-book state (use get_order_book) or trade-by-trade flow (use list_trades).
Inputs: duration (required), pair (required), since. Returns: candles, duration, pair
get_markets_infoARead-onlyIdempotent
List supported Luno markets and their trading parameters: min/max base and counter volume, price/volume tick size, fee tiers, status, and base/counter currency. Public endpoint, no auth required. Use this before placing an order to validate price/volume against the market's tick and minimum constraints; not for live prices (use get_ticker).
Inputs: pair. Returns: markets
get_order_bookARead-onlyIdempotent
Return the top 100 bids and asks for a trading pair, aggregated by price level. Public endpoint, no auth required. Use this to assess available liquidity and likely slippage before sizing an order; use get_ticker for a simple price quote or list_trades for recent execution flow.
Inputs: pair (required). Returns: asks, bids, timestamp
get_tickerARead-onlyIdempotent
Get the latest ticker (last trade price, best bid, best ask, 24h rolling volume) for a single Luno trading pair. Public endpoint, no auth required. Use this for a quick price snapshot of one market; use get_tickers for multiple markets at once, or get_order_book for depth-of-book.
Inputs: pair (required). Returns: ask, bid, last_trade, pair, +3 more
get_tickersARead-onlyIdempotent
List the latest tickers for all Luno trading pairs, or for a comma-separated subset. Each ticker has last trade price, best bid, best ask, and 24h volume. Public endpoint, no auth required. Use this to survey or compare multiple markets in one call; use get_ticker when you only need a single pair.
Inputs: pair. Returns: tickers
get_transactionARead-onlyIdempotent
Return the full ledger entry for one transaction on the authenticated profile (amount, running balance, description, timestamp). Only finds transactions within the most recent 1000 rows of the account; for older entries, narrow the search with list_transactions first. Requires API credentials.
Inputs: account_id (required), transaction_id (required). Returns: account_id, available, available_delta, balance, +9 more
list_ordersARead-onlyIdempotent
List orders on the authenticated profile (open by default; recently completed orders may also appear depending on Luno API behaviour), optionally filtered by trading pair. Requires API credentials. Use this to inspect or audit working orders before cancelling them or placing new ones.
Inputs: limit, pair. Returns: orders
list_tradesARead-onlyIdempotent
List recent public trades for a trading pair, with price, volume, side (BUY/SELL), and timestamp. Public endpoint, no auth required. Use for recent execution flow or tape analysis; not for your own trade history.
Inputs: pair (required), since. Returns: trades
list_transactionsARead-onlyIdempotent
List ledger entries for a single account on the authenticated profile, paginated by row ID. min_row is inclusive, max_row is exclusive, and the API caps a single window at 1000 rows. Requires API credentials. Use for reconciliation, exports, or audit trails; iterate by advancing min_row to (last returned row + 1).
Inputs: account_id (required), max_row, min_row. Returns: id, transactions
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool targets a distinct action or resource: orders (create, cancel, list), balances, candles, markets info, order book, tickers, trades, transactions. No overlapping purposes; descriptions clearly differentiate similar tools like get_ticker vs get_tickers and list_orders vs list_trades.
All tools follow a consistent verb_noun pattern using get, list, cancel, create, convert. The verbs are appropriately matched to the action (get for single items, list for collections), with no mixing of naming conventions.
13 tools is well-scoped for a crypto exchange API server, covering account management, market data, and trading operations without being overly numerous or sparse.
The tool set covers all essential operations for trading: account queries (balances, transactions), market data (tickers, order book, candles, trades, markets info), and order lifecycle (create, cancel, list) plus instant conversion. No obvious gaps for the intended trading use case.
Maintenance
Related MCP Connectors
MCP server for the Vulners.com API
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- FlicenseBqualityDmaintenanceProvides real-time cryptocurrency price data from OKX exchange through a Model Context Protocol interface, allowing access to historical candlestick data and current market prices for any trading instrument.216-
- AlicenseBqualityBmaintenanceAn MCP server allowing Clients to interact with Xero Accounting Software15112 npm22MIT
- AlicenseNot gradedqualityDmaintenanceConnects to the Coinbase Commerce API, allowing AI assistants like Claude to generate cryptocurrency payment links.MIT
- AlicenseBqualityDmaintenanceInteract with Upbit cryptocurrency exchange services to retrieve market data, manage accounts, and execute trades. Simplify your trading experience with tools for order management, deposits, withdrawals, and technical analysis.1017MIT