https://app.legend.trade/api/connectors/mcp
Legend documentation
Set up Legend in Claude, ChatGPT, or Muse. Check account access, review orders, and solve connection problems.
Connect an assistant to Legend to read your account, inspect positions and fills, and prepare an order for review in Legend. Your assistant uses the same account permissions and market identifiers as the Trading API.
| Client | Connection | Current availability |
|---|---|---|
| Claude | Custom remote MCP connector with OAuth | All Legend users; public directory listing pending |
| Claude plugin | Workflows plus the same remote MCP connector | Public MIT source; connect your own Legend account through OAuth |
| ChatGPT | Custom remote MCP connector with OAuth | All Legend users; public directory listing not established |
| Muse | REST API connector with a dedicated API key | Custom API setup; directory submission is in review |
These connections use mainnet accounts. They have no paper or testnet mode. Client plans and organization policies can also limit installation.
In Claude, open Customize → Connectors. Select Add custom connector. Some versions show this under Settings → Connectors.
Name the connector Legend and enter this server URL:
https://app.legend.trade/api/connectors/mcp
Use OAuth and Claude's published client identity when those settings are shown. Legend supports Claude's hosted identity; it does not accept arbitrary client registrations.
Connect, sign in to Legend, and review the account and requested permissions on the Legend consent page.
Start a new chat and ask the assistant to check your account identity before you use other tools.
On a Team or Enterprise plan, an organization owner may need to add the connector before members can connect their own accounts. A custom connector in Yours is not proof that it is available in the public directory.
The plugin adds workflows for account checks, fill and order review, and order preparation. It uses the same server URL as the connector.
many-legends/legend-ai-plugin.You can also upload a ZIP of the plugins/legend folder through Upload plugin. The ZIP must contain .claude-plugin/plugin.json at its root, or inside one top-level plugin folder.
The source repository is public. This does not mean that Anthropic has listed or verified the plugin. Live Claude Code authentication has not yet been verified; the repository records the supported setup and current limits.
For an account that can add custom remote MCP servers:
https://app.legend.trade/api/connectors/mcp.Do not select an unrelated public plugin with a similar name. If the custom-server control is unavailable, ask your organization owner or contact support. A working custom connection does not establish a public directory listing.
The current Muse integration uses Legend's REST API with an account-scoped API key. It does not use the Claude or ChatGPT OAuth setup.
Sign in to Legend and open Settings → Trading.
Create a dedicated API key. Turn off Allow trading for account reads. Enable it only if you intend to use supported execution operations.
In Muse's secure connector setup, use these values:
| Field | Value |
|---|---|
| API URL | https://app.legend.trade |
| OpenAPI URL | https://app.legend.trade/api/trading/v1/openapi.json |
| Authentication | API key |
| Key transport | Authorization header, Bearer |
| Read-only test path | /api/trading/v1/account |
Enter the key directly in the credential field. Do not paste it into a chat message.
Run the account test. It sends GET /api/trading/v1/account, reads the authorized account, and changes nothing.
Confirm the returned username and mainnet network before you use any other capability.
The dedicated key determines the account. Neither the assistant nor the caller can substitute another wallet. Muse directory review, business verification, and reviewer access are separate from this user setup.
Use fresh tool calls after installation or reconnection. For example:
The username must match the account you intended to connect. The available-to-trade value is an estimate; it is not the withdrawable amount or a promise that an order of that size will be accepted. See account balances.
The default MCP endpoint provides six account and history tools plus order preparation:
| Task | Tools |
|---|---|
| Check identity and balances | get_account |
| Read positions | list_positions |
| Read open orders or order history | list_orders, get_order |
| Review fills and fees | list_fills |
| Reconcile an earlier operation | get_operation |
| Prepare a limit order for review | prepare_order |
Use status=open to check open orders. Follow pagination when has_more is true; a recent history page is not a complete account record.
The default endpoint does not place, change, or cancel orders. It does not move funds, start copy trading, or provide news search or market-research tools. An assistant can have other data sources, but it must not present their output as a Legend tool result.
Ask for a proposal only when you have chosen the market, side, base-asset size, exact limit price, and reduce-only setting. The tool supports perpetual GTC limit orders.
prepare_order and returns a Legend review link. No order is placed and no margin is reserved.Proposal links expire after 15 minutes. If a link has expired, request a fresh proposal. Opening one from a non-mainnet account mode is blocked. See tools and order review.
An additional MCP resource, https://app.legend.trade/api/connectors/trading/mcp, supports permitted execution operations. It requires a trading scope and a trading-enabled underlying key. It is not the default setup above. Host policies can restrict it, and a custom connector does not establish directory approval for execution.
The MCP server does not add a separate Legend-site confirmation to every execution call. A host can provide its own approval controls. If you want each order reviewed in Legend, use the default endpoint and prepare_order.
Executed trades remain subject to Legend's fees, venue limits, funding, and margin requirements. A proposal does not reserve a price or waive those costs. See API rate limits and connector permissions.
| Problem | What to check |
|---|---|
| Access denied during MCP sign-in | Confirm the client, server URL, account sign-in, and requested permissions. Contact support with the request ID if access is denied. |
| Reauthentication required | Reconnect Legend in the assistant. Grants expire, and key revocation or changed access can end a connection. |
| Muse test returns 404 | Use API URL https://app.legend.trade and test path /api/trading/v1/account. Do not repeat the API prefix. |
| Muse test returns 401 | Check the dedicated key and Bearer-header setting. Do not put the key in the URL. |
| Some tools are missing | Check the endpoint, consent scopes, and client restrictions. |
| An order outcome is unknown | Read the operation or order status before retrying. Keep the original idempotency key for the same action. |
| The balance differs from another screen | Compare the same account, network, and balance field. Available-to-trade and withdrawable are different values. |
Revoke an associated API key in Settings → Trading to stop future API and MCP requests using that credential. This does not close positions or cancel existing orders.
Contact Legend support with the client name, error, and request ID. Never include a key, token, password, or wallet secret.