Sign inSign up

sleepingtalent/oanda-mcp-server

By sleepingtalent

•Updated 4 months ago

Image
0

409

sleepingtalent/oanda-mcp-server repository overview

⁠OANDA V20 MCP Server

An MCP (Model Context Protocol)⁠ server that brings the full power of the OANDA V20 REST API to AI agents. Query live market data, manage orders, monitor open trades and positions, and interact with your OANDA account — all through a clean, tool-based interface designed for autonomous trading workflows.

Built with FastMCP⁠ and httpx⁠. Supports both stdio (Claude Desktop / Claude Code) and HTTP (Docker) transports.

⁠Quick Start

Add to your .mcp.json or claude_desktop_config.json:

{
  "mcpServers": {
    "oanda": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "OANDA_API_KEY",
        "-e", "OANDA_ACCOUNT_ID",
        "-e", "OANDA_ENVIRONMENT",
        "sleepingtalent/oanda-mcp-server:latest"
      ],
      "env": {
        "OANDA_API_KEY": "your-api-key",
        "OANDA_ACCOUNT_ID": "your-account-id",
        "OANDA_ENVIRONMENT": "practice"
      }
    }
  }
}

Via uvx (no Docker required)

{
  "mcpServers": {
    "oanda": {
      "command": "uvx",
      "args": ["oanda-mcp"],
      "env": {
        "OANDA_API_KEY": "your-api-key",
        "OANDA_ACCOUNT_ID": "your-account-id",
        "OANDA_ENVIRONMENT": "practice"
      }
    }
  }
}

▎ Set OANDA_ENVIRONMENT to live to trade on a real account. Defaults to practice (paper trading) if unset.

Configuration

┌───────────────────┬──────────┬──────────┬───────────────────────┐
│     Variable      │ Required │ Default  │      Description      │
├───────────────────┼──────────┼──────────┼───────────────────────┤
│ OANDA_API_KEY     │ Yes      │ —        │ Your OANDA API key    │
├───────────────────┼──────────┼──────────┼───────────────────────┤
│ OANDA_ACCOUNT_ID  │ Yes      │ —        │ Your OANDA account ID │
├───────────────────┼──────────┼──────────┼───────────────────────┤
│ OANDA_ENVIRONMENT │ No       │ practice │ practice or live      │
└───────────────────┴──────────┴──────────┴───────────────────────┘

Source

github.com/SleepingTalent/oanda-mcp-server

Tag summary

Content type

Image

Digest

sha256:f7fdfb216…

Size

55.6 MB

Last updated

4 months ago

docker pull sleepingtalent/oanda-mcp-server