We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/amanasmuei/mcp-luno'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
# π Project Status - Luno MCP Server
## β
ENHANCED WITH HISTORICAL DATA
**Date:** May 29, 2025
**Status:** π **ENHANCED** - FastMCP 2.0 + Historical Price Data Support
## π What's Working
β
**Python 3.12.10** - Upgraded from 3.9.6
β
**FastMCP 2.5.1** - Latest framework installed
β
**Virtual Environment** - Clean isolated setup
β
**9 Luno Tools** - All trading tools + NEW historical data tools
β
**Multi-Currency** - ZAR, EUR, GBP, USD support
β
**Real API Integration** - Live Luno data + historical candles
β
**Claude Desktop** - Fully configured and tested
β
**π Historical Data** - OHLC candlestick data with multiple timeframes
## π NEW: Historical Price 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
### π Price Analysis (`get_price_range`)
- **Period:** 1-30 days of analysis
- **Statistics:** High, Low, Open, Close, Average prices
- **Metrics:** Price change, percentage change, total volume
## π Enhanced Project Structure
```
luno-mcp/
βββ π src/
β βββ π luno_mcp/ # Enhanced modular version
β β βββ client.py # Updated with candles endpoint
β β βββ tools/
β β βββ market_tools.py # π Enhanced with historical data
β βββ π luno_mcp_server/ # CURRENT WORKING SERVER β
β β βββ server.py # β Enhanced with historical tools
β β βββ luno_client.py # Updated with candles endpoint
β βββ main.py # Alternative entry point
βββ π tests/ # Test suite
βββ π docs/
β βββ HISTORICAL_DATA_GUIDE.md # π NEW: Complete historical data guide
β βββ CLAUDE_DESKTOP_SETUP.md
β βββ PYTHON_UPGRADE_GUIDE.md
β βββ MIGRATION.md
βββ π archive/ # Old servers archived
βββ π venv/ # Python 3.12 environment
βββ π README.md # Updated with historical features
βββ π claude_desktop_config.json # Ready-to-use config
βββ π test_historical_data.py # π§ͺ NEW: Historical data test suite
βββ π PROJECT_STATUS.md # This file
```
## π§ Current Configuration
**Active Server:** `src/luno_mcp_server/server.py`
**Python:** `/venv/bin/python` (3.12.10)
**Framework:** FastMCP 2.5.1
**Transport:** STDIO
**New Endpoint:** `/api/exchange/1/candles` (authentication required)
## π― Test Commands
### Current Features
```
"What's the Bitcoin price in EUR?" β XBTEUR real-time price
"Get ETHZAR price" β Ethereum to ZAR price
"Show me my account balance" β Real account data
"Get crypto price for SOLGBP" β Solana in British Pounds
"What's the market overview?" β All available markets
```
### π NEW: Historical Data Commands
```
"Get historical prices for XBTZAR over the last 7 days"
"Show me Bitcoin price range analysis for the past 30 days"
"Get 1-hour candlestick data for ETHZAR since yesterday"
"What's the price range for Bitcoin in ZAR over the past week?"
"Analyze ETHZAR price movements for the last month"
"Show me the highest and lowest Bitcoin prices in the past 30 days"
```
## π Enhanced Features Comparison
| Feature | Before | After |
|---------|--------|-------|
| Python | 3.9.6 | β
3.12.10 |
| Framework | Custom MCP | β
FastMCP 2.5.1 |
| Currency Support | ZAR only | β
ZAR, EUR, GBP, USD |
| API Integration | Limited | β
Full Luno API |
| **Historical Data** | β None | β
**Full OHLC + Analysis** |
| **Timeframes** | β None | β
**1m to 7d candles** |
| **Price Analysis** | β None | β
**Statistical analysis** |
| Error Handling | Basic | β
Production-ready |
| Dependencies | Mixed | β
Clean virtual env |
| Documentation | Scattered | β
Comprehensive guides |
| Testing | Limited | β
Full test suite |
## π Enhanced Mission Accomplished
### Original Goals β
1. β
**Refactored to FastMCP 2.0** - Modern architecture
2. β
**Added `mcp.run()`** - Proper FastMCP execution
3. β
**Multi-currency support** - All trading pairs
4. β
**Python upgrade** - 3.9.6 β 3.12.10
5. β
**Clean structure** - Organized and manageable
6. β
**Working implementation** - Tested and confirmed
### π NEW: Historical Data Enhancement β
7. β
**Historical Price Support** - OHLC candlestick data
8. β
**Multiple Timeframes** - 1m to 7d intervals
9. β
**Price Analysis Tools** - Statistical analysis
10. β
**Comprehensive Documentation** - Complete usage guide
11. β
**Test Suite** - Thorough testing framework
12. β
**Enhanced Error Handling** - Robust validation
## π οΈ Available Tools (9 Total)
### Public Tools (No authentication)
- `get_crypto_price` - Real-time prices
- `get_market_overview` - Market data
### π Historical Data Tools (Authentication required)
- `get_historical_prices` - OHLC candlestick data
- `get_price_range` - Price analysis over time periods
### Private Tools (Authentication required)
- `get_account_balance` - Account balances
- `place_order` - Place buy/sell orders
- `cancel_order` - Cancel orders
- `get_order_status` - Check order status
- `get_transaction_history` - Transaction history
- `get_fees` - Trading fees
## π§ͺ Testing
### Test Coverage
- β
All original functionality
- β
**NEW: Historical data endpoints**
- β
**NEW: Multiple timeframe support**
- β
**NEW: Price analysis calculations**
- β
**NEW: Error handling for invalid data**
- β
Claude Desktop integration
- β
Tool parameter validation
### Test Suite
Run the comprehensive test suite:
```bash
python test_historical_data.py
```
## π Ready for Enhanced Production
The Luno MCP server is now:
- π **Modern** - FastMCP 2.0 architecture
- π **Global** - Multi-currency support
- π ****Analytical** - Historical price data & analysis**
- π―οΈ ****Comprehensive** - Multiple timeframe support**
- π **Secure** - Virtual environment isolation
- π **Well-Documented** - Complete guides available
- π§Ή **Clean** - Organized file structure
- β
**Thoroughly Tested** - Full test coverage
- π― **Production-Ready** - Enhanced and reliable
## π Documentation
- **Main Guide:** `README.md` - Quick start with historical examples
- **π Historical Data:** `docs/HISTORICAL_DATA_GUIDE.md` - Comprehensive guide
- **Setup:** `docs/CLAUDE_DESKTOP_SETUP.md` - Detailed configuration
- **Testing:** `test_historical_data.py` - Test suite
**Next:** Analyze cryptocurrency trends with historical data! ππ