Provides real-time cryptocurrency price information and trading capabilities through the Luno exchange, including market overview, account balance queries, order management, and transaction history retrieval for Bitcoin and other cryptocurrencies.
Supports configuration management through .env files, allowing secure storage of API credentials and other environment variables needed for the Luno exchange integration.
Enables version control and codebase management for the MCP server, supporting cloning of the repository during installation.
Allows deployment and distribution of the MCP server through GitHub, providing access to the repository at github.com/amanasmuei/mcp-luno.git.
Supports deployment on Linux systems with specific command instructions for environment activation and server operation.
Provides platform-specific instructions for running the server on macOS systems, including environment activation commands.
Supports automated testing of the MCP server functionality through the pytest testing framework.
Runs on Python 3.8+ (3.9+ recommended) as the implementation language for the MCP server, utilizing Python packages for API interaction with the Luno cryptocurrency exchange.
🚀 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
2. Configure Claude Desktop
Add this to your ~/Library/Application Support/Claude/claude_desktop_config.json
:
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
🔧 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.md
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!
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that provides a standardized interface for AI models and applications to interact with the Luno cryptocurrency exchange API for trading operations.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that gives LLMs the ability to interact with Ethereum networks, manage wallets, query blockchain data, and execute smart contract operations through a standardized interface.Last updated -45118MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.Last updated -3MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, providing services like token transfers, contract interactions, and ENS resolution through a unified interface.Last updated -282,922307MIT License
- -security-license-qualityComprehensive Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, supporting token transfers, smart contract interactions, and ENS name resolution through a unified interface.Last updated -1MIT License