About π Luno MCP Server - FastMCP 2.0
Luno MCP Server connects MCP clients to the Luno cryptocurrency exchange. It provides public market data alongside credential-protected account, historical-price, and trading operations.
Key features
- 01Real-time prices for trading pairs
- 02Market overview and available pairs
- 03Historical OHLC prices and volume
- 04Price-range statistics for 1β30 days
- 05Account balances and transaction history
- 06Place, cancel, and check orders
Use cases
- 01Check cryptocurrency prices across supported currencies
- 02Review historical candles and price changes
- 03Inspect account balances and fees
- 04Place or manage Luno orders
MCP support
It exposes Luno market, historical-data, account, and order operations as tools for MCP clients. The server uses STDIO transport.
Configuration
Local server config is the same for every client. Copy it into your clientβs MCP config file.
We havenβt collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEπ Luno MCP Server - FastMCP 2.0
A modern Model Context Protocol (MCP) server for the Luno cryptocurrency exchange, built with FastMCP 2.0 and Python 3.12.
β Quick Start
1. Install Dependencies
# Activate the virtual environment
source venv/bin/activate
# Dependencies are already installed:
# - fastmcp 2.5.1
# - httpx
# - pydantic
# - python-dotenv
2. Configure Claude Desktop
Add this to your ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"luno": {
"command": "/Users/aman-asmuei/Documents/mcp/mcp-luno/venv/bin/python",
"args": [
"/Users/aman-asmuei/Documents/mcp/mcp-luno/src/luno_mcp_server/server.py"
],
"cwd": "/Users/aman-asmuei/Documents/mcp/mcp-luno",
"env": {
"LUNO_API_KEY": "your_api_key_here",
"LUNO_API_SECRET": "your_api_secret_here"
}
}
}
}
3. Test
Restart Claude Desktop and ask:
- "What's the Bitcoin price in EUR?"
- "Get ETHZAR price"
- "Show me my account balance"
- "Get historical prices for XBTZAR over the last 7 days"
- "Show me Bitcoin price range analysis for the past 30 days"
π οΈ Available Tools
Public Tools (No API credentials required)
get_crypto_price- Real-time prices for any trading pairget_market_overview- Market data and available pairs
Historical Data Tools (API credentials required)
get_historical_prices- OHLC candlestick data for any trading pairget_price_range- Price analysis over specified time periods (1-30 days)
Private Tools (API credentials required)
get_account_balance- Account balancesplace_order- Place buy/sell orderscancel_order- Cancel ordersget_order_status- Check order statusget_transaction_history- Transaction historyget_fees- Trading fees
π Historical Price Data Features
Candlestick Data (get_historical_prices)
- Timeframes: 1m, 5m, 15m, 30m, 1h, 3h, 4h, 8h, 24h, 3d, 7d
- Data: OHLC (Open, High, Low, Close) + Volume
- Limit: Up to 1000 candles per request
- Format: Standard candlestick data with timestamps
Price Range Analysis (get_price_range)
- Period: 1-30 days of historical data
- Statistics: High, Low, Open, Close, Average prices
- Metrics: Price change, percentage change, total volume
- Convenience: Automatic daily candle aggregation
π Supported Trading Pairs
- ZAR (South Africa): XBTZAR, ETHZAR, ADAZAR
- EUR (Europe): XBTEUR, ETHEUR
- GBP (UK): XBTGBP, ETHGBP, SOLGBP
- USD (US): XBTUSD, ETHUSD
- And more!
ποΈ Project Structure
luno-mcp/
βββ src/
β βββ luno_mcp/ # Modern FastMCP 2.0 implementation
β β βββ server.py # Main server with all tools
β β βββ client.py # Luno API client
β β βββ config.py # Configuration management
β β βββ tools/ # Modular tool organization
β βββ luno_mcp_server/ # Working FastMCP server (CURRENT)
β β βββ server.py # β Currently used by Claude Desktop
β β βββ luno_client.py # Luno API client
β βββ main.py # Alternative entry point
βββ tests/ # Test suite
βββ docs/ # Documentation
βββ archive/ # Old implementations
βββ venv/ # Python 3.12 virtual environment
βββ README.md # This file
π§ Technical Details
- Python: 3.12.10 (in virtual environment)
- Framework: FastMCP 2.5.1
- API Client: httpx for async HTTP requests
- Transport: STDIO (JSON-RPC 2.0)
- Architecture: Async/await with proper error handling
π Documentation
docs/PYTHON_UPGRADE_GUIDE.md- Python upgrade processdocs/MIGRATION.md- Migration from old versionsdocs/CLAUDE_DESKTOP_SETUP.md- Detailed setup guidedocs/GITHUB_PAGES_FIX.md- Fix GitHub Pages deployment errors
π Documentation Site
Visit our GitHub Pages documentation: https://amanasmuei.github.io/mcp-luno
Note: If you encounter GitHub Pages deployment errors, see
docs/GITHUB_PAGES_FIX.mdfor the complete fix guide.
π Security
- API credentials stored as environment variables
- All communications use HTTPS
- Virtual environment isolation
- No credentials logged or exposed
π¨ Troubleshooting
Common Issues
- Import errors: Make sure you're using the virtual environment
- API errors: Check your Luno API credentials
- Connection issues: Verify internet connectivity
Get Help
- Check the logs in Claude Desktop
- Test the server directly:
python src/luno_mcp_server/server.py - Verify dependencies:
pip list | grep fastmcp
π Support This Project
If this Luno MCP server has been helpful for your cryptocurrency trading and analysis, consider supporting its development!
β Support This Project
π Global donation options that work worldwide:
- π GitHub Sponsors: github.com/sponsors/amanasmuei (Monthly/one-time)
- π³ PayPal.me: paypal.me/amanasmuei (Direct payments)
- β Star this repo on GitHub
- π Report issues and contribute improvements
- π’ Share with other crypto traders
πͺ Crypto Donations
- Bitcoin (BTC):
3CPb1HP6Gfpx3MZFdrm4nhoHk4VbX2eZRj - Ethereum (ETH):
0x54dC4eDf6c940C52A1434824634d8cE8629767b3 - Luno Trading: Use this MCP server to trade! π
Your support helps maintain and improve this free, open-source trading tool! π
π Success!
You should now have a fully working Luno MCP server with:
- β Real-time cryptocurrency prices
- β Historical price data and candlestick charts
- β Price range analysis and statistics
- β Multi-currency support (ZAR, EUR, GBP, USD)
- β Account management tools
- β Trading capabilities
- β FastMCP 2.0 architecture
Ask Claude: "What's the Bitcoin price in EUR?" or "Show me XBTZAR price history for the past week" to test!
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.