JUHE API Marketplace
amanasmuei avatar
MCP Server

Luno MCP Server

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.

2
GitHub Stars
11/22/2025
Last Updated
MCP Server Configuration
1{
2 "name": "luno",
3 "command": "/Users/aman-asmuei/Documents/mcp/mcp-luno/venv/bin/python",
4 "args": [
5 "/Users/aman-asmuei/Documents/mcp/mcp-luno/src/luno_mcp_server/server.py"
6 ],
7 "cwd": "/Users/aman-asmuei/Documents/mcp/mcp-luno",
8 "env": {
9 "LUNO_API_KEY": "your_api_key_here",
10 "LUNO_API_SECRET": "your_api_secret_here"
11 }
12}
JSON12 lines
  1. Home
  2. MCP Servers
  3. mcp-luno

README Documentation

šŸš€ 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 pair
  • get_market_overview - Market data and available pairs

Historical Data Tools (API credentials required)

  • get_historical_prices - OHLC candlestick data for any trading pair
  • get_price_range - Price analysis over specified time periods (1-30 days)

Private Tools (API credentials 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

šŸ“ˆ 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 process
  • docs/MIGRATION.md - Migration from old versions
  • docs/CLAUDE_DESKTOP_SETUP.md - Detailed setup guide
  • docs/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

  1. Import errors: Make sure you're using the virtual environment
  2. API errors: Check your Luno API credentials
  3. Connection issues: Verify internet connectivity

Get Help

  1. Check the logs in Claude Desktop
  2. Test the server directly: python src/luno_mcp_server/server.py
  3. 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!

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright Ā© 2025 - All rights reserved