mcp-luno
If you are the rightful owner of mcp-luno and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Luno MCP Server, built with FastMCP 2.0 and Python 3.12, is a modern server designed for the Luno cryptocurrency exchange, offering real-time and historical data tools for cryptocurrency trading and analysis.
š 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
- - Python upgrade process
- - Migration from old versions
- - Detailed setup guide
- - 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 for 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!