Skip to content
MCP server

Lockout MCP

MCP server letting an AI agent read, preview and trade tokenized stocks inside

Runs locally

Lockout MCP is an MCP server for finance and payments. It runs locally on your machine and is started by your AI client.

Platforms
CLI, API, Self-hosted
Runs
Locally
Version
0.2.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add lockout-mcp --env LOCKOUT_FACTORY='<LOCKOUT_FACTORY>' --env LOCKOUT_LENS='<LOCKOUT_LENS>' --env LOCKOUT_ACCOUNT='<LOCKOUT_ACCOUNT>' -- npx -y lockout-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "lockout-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lockout-mcp"
      ],
      "env": {
        "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
        "LOCKOUT_LENS": "<LOCKOUT_LENS>",
        "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "lockout-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lockout-mcp"
      ],
      "env": {
        "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
        "LOCKOUT_LENS": "<LOCKOUT_LENS>",
        "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "lockout-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lockout-mcp"
      ],
      "env": {
        "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
        "LOCKOUT_LENS": "<LOCKOUT_LENS>",
        "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "lockout-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "lockout-mcp"
      ],
      "env": {
        "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
        "LOCKOUT_LENS": "<LOCKOUT_LENS>",
        "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add lockout-mcp --env LOCKOUT_FACTORY='<LOCKOUT_FACTORY>' --env LOCKOUT_LENS='<LOCKOUT_LENS>' --env LOCKOUT_ACCOUNT='<LOCKOUT_ACCOUNT>' -- npx -y lockout-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.lockout-mcp]
command = "npx"
args = ["-y", "lockout-mcp"]
env = { LOCKOUT_FACTORY = "<LOCKOUT_FACTORY>", LOCKOUT_LENS = "<LOCKOUT_LENS>", LOCKOUT_ACCOUNT = "<LOCKOUT_ACCOUNT>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "lockout-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lockout-mcp"
      ],
      "env": {
        "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
        "LOCKOUT_LENS": "<LOCKOUT_LENS>",
        "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "lockout-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "lockout-mcp"
          ],
          "env": {
            "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
            "LOCKOUT_LENS": "<LOCKOUT_LENS>",
            "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e LOCKOUT_FACTORY='<LOCKOUT_FACTORY>' -e LOCKOUT_LENS='<LOCKOUT_LENS>' -e LOCKOUT_ACCOUNT='<LOCKOUT_ACCOUNT>' lockout-mcp npx -- -y lockout-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "lockout-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "lockout-mcp"
          ],
          "env": {
            "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
            "LOCKOUT_LENS": "<LOCKOUT_LENS>",
            "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "lockout-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "lockout-mcp"
          ],
          "env": {
            "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
            "LOCKOUT_LENS": "<LOCKOUT_LENS>",
            "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "lockout-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "lockout-mcp"
          ],
          "env": {
            "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
            "LOCKOUT_LENS": "<LOCKOUT_LENS>",
            "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "lockout-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "lockout-mcp"
          ],
          "env": {
            "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
            "LOCKOUT_LENS": "<LOCKOUT_LENS>",
            "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "lockout-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "lockout-mcp"
          ],
          "env": {
            "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
            "LOCKOUT_LENS": "<LOCKOUT_LENS>",
            "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "lockout-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "lockout-mcp"
          ],
          "env": {
            "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
            "LOCKOUT_LENS": "<LOCKOUT_LENS>",
            "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "lockout-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "lockout-mcp"
          ],
          "env": {
            "LOCKOUT_FACTORY": "<LOCKOUT_FACTORY>",
            "LOCKOUT_LENS": "<LOCKOUT_LENS>",
            "LOCKOUT_ACCOUNT": "<LOCKOUT_ACCOUNT>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • LOCKOUT_FACTORYLockoutFactory address on Robinhood Chain.Required
  • LOCKOUT_LENSLockoutLens address on Robinhood Chain.Required
  • LOCKOUT_ACCOUNTThe lockout account address.Required
  • LOCKOUT_AGENT_KEY_FILEAbsolute path to the local agent key file, needed only to trade.

About Lockout MCP

Lockout MCP gives an agent seven tools for a single Lockout account on Robinhood Chain. The account owner sets the trading rules up front, including a loss limit, size caps, a halt bell and a bond, and the agent works within them. Before anything is sent, the agent can preview each buy or sell against the account's own gates and see the verdict.

Orders are signed with a separate agent key kept on the local machine and sent through the same buy and sell functions the owner uses. Each result is read from the transaction receipt and reported as executed, halted by the loss limit, or reverted at a numbered gate. The server cannot loosen the owner's rules, and the agent key cannot call owner-only functions.

It suits developers and traders who want an AI agent to place stock-token orders under hard, on-chain limits, and who need a clear record of why each trade filled or was refused.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 3 of 7 tools read data; 4 names don't say.

From the server's own tool labels and tool names; not verified by us.

account_statusName suggests: reads
Returns the session, bell, rules, positions and loss left before the limit.
markets
Lists stocks and pools, feed age, pause flags and the next mint window change.
quote
Simulates an order on every listed pool, best output first.
preview_buyName suggests: reads
Returns the account's verdict on one buy, with no transaction.
preview_sellName suggests: reads
Returns the account's verdict on one sell, with no transaction.
buy
Sends a buy with the agent key and returns its verdict from the receipt.
sell
Sends a sell with the agent key and returns its verdict from the receipt.

What it does

Account-level preview
Each buy or sell is checked against the account's gates and returned as a verdict before any transaction is sent.
Receipt-based outcomes
Results are taken from the on-chain receipt, distinguishing executed trades, loss-limit halts and gate reverts.
Owner-sealed rules
Loss limits, size caps and the halt bell are set by the account owner, and the server cannot loosen them.
Separate agent key
Trades are signed with a dedicated agent key that cannot call owner-only functions or withdraw funds.
Pool quotes
Orders are simulated across every listed pool so the best output can be chosen, with distance from the feed price shown.
Local transaction journal
An optional JSONL file records each sent transaction's hash and outcome, including reverted ones.

Good for

  • Let an AI agent preview and place stock-token buys and sells under owner-set loss limits
  • Check whether a planned order would pass the account's gates before sending it
  • Review the outcome of past trades from receipts and a local transaction log
  • Build an automated trading workflow with hard on-chain risk controls

Lockout MCP FAQ

What does the agent key allow Lockout MCP to do?

It can call only buy and sell. Owner functions such as seal, withdraw and setAgent revert, and the key cannot receive tokens.

Are orders sent even if the preview predicts a rejection?

Yes. A predicted rejection is still sent, because the reverted transaction is the account's on-chain answer. Every sent transaction costs gas.

What is needed to run the server?

Node.js 20 or newer, a Lockout account with the agent address set, the factory and lens addresses, and a local agent key file for trading. It runs over stdio.

Which network does Lockout MCP use?

Robinhood Chain, chain ID 4663, with a public RPC endpoint that can be replaced in settings.

How do I add Lockout MCP to Claude Code?

Run this command in your terminal: claude mcp add lockout-mcp --env LOCKOUT_FACTORY='<LOCKOUT_FACTORY>' --env LOCKOUT_LENS='<LOCKOUT_LENS>' --env LOCKOUT_ACCOUNT='<LOCKOUT_ACCOUNT>' -- npx -y lockout-mcp

What are the best alternatives to Lockout MCP?

The closest alternatives to Lockout MCP are Hood MCP, Robinhood Crypto, AI Agent Tokenized Stock OS, Cluster MCP and Monad MCP.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers