---
title: "MoonX AI Agent: Connect Your Account to Claude via MCP"
description: "Generate your personal MCP key and connect MoonX to Claude in minutes. Your AI agent reads your balances and positions, analyzes charts with 10 technical indicators, and places orders, right from a conversation."
url: "https://moon-x.io/ai-agent"
language: "en"
---

Step 1 · Your key

## Generate your MCP key

A unique key tied to your account. It lets your AI agent act on your behalf, and you can revoke it at any time.

MoonX MCP server

`https://api.moon-x.io/mcp` Copy

Your personal connector URL

`https://api.moon-x.io/mcp?token=mcp_••••••••••••••••` Copy

Log in to generate your key

Never share this URL: it contains your secret key and grants access to your account (withdrawals are excluded by design). If it leaks, revoke it here and generate a new one.

Step 2 · Connection

## Connect MoonX to Claude in 3 steps

Illustrative screenshots of the flow in Claude. The actual UI may vary slightly.

01

### Generate & copy your URL

Above on this page, click **Generate my key**, then copy your personal `connector URL` (your secret key is embedded in it).

moon-x.io

MoonX MCP server

https://api.moon-x.io/mcp

Connector URL

https://api.moon-x.io/mcp?token=mcp_a3f8…9c2e

Copy

02

### Add the connector in Claude

In Claude: `Settings → Connectors → Add custom connector`. Paste your connector URL and confirm.

Claude · Connectors

Name

MoonX

Connector URL

https://api.moon-x.io/mcp?token=mcp_••••••••

Cancel Add

You may briefly see a `Couldn't register with MoonX's sign-in service` warning — that's **a known Claude.ai quirk, not an error on your end**. Your connector still works, just continue.

03

### It's connected, talk to it

MoonX shows up as connected. Ask Claude: `"Show my MoonX account"` and you're off.

Claude

MX

MoonX

Connected

Show my MoonX account

Spot: 12,480 USDT · Futures: 1,265 USDT · Forex: 8,940 USDT ✅

Watch · Video walkthrough

## See it connected, step by step

MoonX · Claude

Alternative · Claude Code (CLI)

## Prefer the terminal?

Copy

```
# Add MoonX as an MCP server to Claude Code
claude mcp add --transport http moonx \
  "https://api.moon-x.io/mcp?token=YOUR_KEY"

# Check the connection is active
claude mcp list
```

Step 3 · In action

## Prompts to get started

Copy-paste into Claude once connected. Your agent **reads your account, analyzes the charts and can act**, while you stay in control.

Technical analysis

Is BTC's RSI oversold on the 4h? Give me the full technical picture (RSI, MACD, moving averages, Bollinger) and the key levels to watch.

Risk check

Review my open futures and forex positions: flag anything without a stop-loss and set sensible TP/SL levels on them.

Analyze my positions

Analyze my open positions: which ones still make sense, where should my stops be, and what would you do now?

Coaching

Look at my trade history and tell me honestly my recurring mistakes and how to improve my money management.

Manual order

Open a BTC long, 5% margin, 20x leverage, with a 2% stop-loss and a 1:3 take-profit.

Copy trading

Show me the top copyable forex traders and start copying the most consistent one with 100 USDT.

**Trade responsibly.** Your agent can place real orders with leverage. Start with small sizes, always set a stop-loss, and never trade money you can't afford to lose. Withdrawals never go through the MCP connection.
