About LeanTrading MCP
LeanTrading MCP connects eligible LeanTrading accounts to Cursor, Claude, and other MCP clients through OAuth. Its hosted tools cover trading-system context and charting, with write and execution capabilities gated by scopes and confirmation.
Key features
- 01OAuth 2.1 with PKCE connection
- 02Trading context and advisory access
- 03Charting capabilities
- 04Scoped write and execute tools
- 05Confirmation for chart and alert changes
Use cases
- 01Connect an eligible account to an MCP client
- 02Review LeanTrading system context
- 03Use charting capabilities with approved scopes
- 04Make chart or alert changes through confirmation
MCP support
The hosted LeanTrading MCP server at `https://www.leantrading.io/api/mcp` exposes LeanTrading assistant capabilities to MCP clients. Access requires OAuth and an eligible account; write and execute scopes are opt-in and subject to checks.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://www.leantrading.io/api/mcpclaude mcp add --transport http io-leantrading-leantrading https://www.leantrading.io/api/mcp{"mcpServers":{"io-leantrading-leantrading":{"type":"http","url":"https://www.leantrading.io/api/mcp"}}}Open in Cursor{"servers":{"io-leantrading-leantrading":{"type":"http","url":"https://www.leantrading.io/api/mcp"}}}Open in VS Code{"mcpServers":{"io-leantrading-leantrading":{"type":"http","url":"https://www.leantrading.io/api/mcp"}}}{"mcpServers":{"io-leantrading-leantrading":{"serverUrl":"https://www.leantrading.io/api/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMELeanTrading MCP
Connect Cursor, Claude, and other MCP clients to the hosted LeanTrading assistant surface through OAuth 2.1/PKCE.
Hosted server
https://www.leantrading.io/api/mcp
The server requires a LeanTrading OAuth connection and an eligible account: paid Pro/Elite/Blueprint/Admin, or Product Tester during the first 14 days of the tester grant. After that window, Product Tester must upgrade to Pro. Explorer and free accounts are not granted hosted MCP access.
Installation
This repository contains the marketplace metadata and Cursor plugin wrapper. It does not contain credentials and does not require a manually copied Supabase session JWT.
The default OAuth request is read-only. Chart, write, and execute capabilities must be explicitly requested by the client and remain subject to LeanTrading scope checks and confirmation boundaries.
Safety boundaries
- OAuth authorization uses PKCE with the S256 method.
- Access and refresh tokens are not stored in plaintext by the server.
- Entitlements are checked again on every hosted MCP call.
- Webhook secrets are redacted and are not returned by the MCP tools.
- Silent broker order placement is not exposed as an MCP operation.
- Chart and alert mutations require stronger scopes and confirmation flows.
Marketplace listing is not a security certification. Review the source, requested scopes, and the LeanTrading privacy/security notices before connecting an account.
Repository packaging
This directory is the export bundle for the public
LeanTrading/leantrading-mcp repository. It contains metadata and a thin
wrapper for the hosted service; it does not contain the private server source.
Before submitting it to a marketplace:
- Keep the repository public and limited to this bundle.
- Keep the repository URL in
server.jsonandplugin.jsonsynchronized. - Keep the hosted endpoint and version in all metadata synchronized with the deployed server.
- Publish the approved data-retention and deletion policy before final marketplace submission.
Privacy note
MCP requests can expose the user's requested LeanTrading system context, intelligence, risk-preview, advisory, and charting data to the connected client. Hosted MCP calls are audited using server-side metadata such as user, client, event, tool, status, and structured metadata; raw tool arguments are not stored. This metadata is retained only as long as necessary to provide the service, protect it, and comply with legal obligations, then deleted or anonymized when no longer needed. Account deletion remains subject to short backup cycles and statutory retention duties.
MCP hosting and database/authentication subprocessors include Vercel and
Supabase. Data-protection requests can be sent to [email protected].
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.