# ClearFills

> ClearFills is a freemium MCP server for finance and payments. Pre-trade risk firewall and portfolio MCP server that checks AI trading orders before. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $49 a month
- **Platforms:** API, CLI, Web, Self-hosted
- **Website:** https://clearfills.com
- **Repository:** https://github.com/clearfills/clearfills
- **MCP Registry name:** com.clearfills/clearfills
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-27

## About

ClearFills sits between AI trading agents and a brokerage, so the agent never sees broker credentials and cannot place an order until deterministic math checks pass. Each proposed trade is tested against rules such as limit-only pricing, mandatory stop-losses, per-trade risk caps, position concentration limits and a daily drawdown halt, then signed as a single-use 120-second Ed25519 ticket.

The server exposes these checks over MCP, either as a local stdio server installed from PyPI or as a hosted remote endpoint using OAuth 2.1. Approvals can be co-signed with a WebAuthn passkey, and every decision is written to a SHA-256 hash-chained audit ledger. Interactive Brokers is supported for execution, with Alpaca and prediction markets mentioned on the hosted side.

The project suits developers wiring Claude, Cursor, Codex or open-source trading agents to real brokerage accounts who want a guardrail layer they control. It is a public beta, and the README states it is risk-engineering software rather than investment advice.

## Features

- **Deterministic order checks:** Every proposed trade is evaluated with fixed rules for order type, stop-loss, risk size and concentration, with no language model in the loop.
- **Single-use signed tickets:** Approved orders receive a 120-second Ed25519 ticket bound to a canonical hash of the order, and replayed nonces are rejected.
- **Passkey co-signing:** Optional WebAuthn passkey approval verifies user presence and verification against locally pinned keys before dispatch.
- **Daily drawdown kill switch:** Trading halts and latches when mark-to-market losses breach the configured daily limit until an operator resets it.
- **Hash-chained audit ledger:** Proposal approvals, vetoes and dispatch decisions are appended to a tamper-evident signed log.
- **Local and hosted MCP:** Runs as a stdio server installed with pip or connects to a hosted remote MCP endpoint over streamable HTTP.

## Good for

- Letting an AI coding agent propose trades without holding brokerage passwords
- Enforcing stop-loss and limit-order rules on trades suggested by open-source trading agents
- Testing firewall vetoes and replay protection offline before connecting live capital
- Consolidating portfolio data from several accounts for an agent to read
- Keeping a signed record of every automated trade decision for later review

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http clearfills https://clearfills-api.fly.dev/mcp
```

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

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "clearfills": {
      "type": "http",
      "url": "https://clearfills-api.fly.dev/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://clearfills-api.fly.dev/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "clearfills": {
      "url": "https://clearfills-api.fly.dev/mcp"
    }
  }
}
```

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

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "clearfills": {
      "type": "http",
      "url": "https://clearfills-api.fly.dev/mcp"
    }
  }
}
```

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

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://clearfills-api.fly.dev/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add clearfills --url https://clearfills-api.fly.dev/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.clearfills]
url = "https://clearfills-api.fly.dev/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "clearfills": {
      "httpUrl": "https://clearfills-api.fly.dev/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http clearfills https://clearfills-api.fly.dev/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "clearfills": {
      "serverUrl": "https://clearfills-api.fly.dev/mcp"
    }
  }
}
```

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

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "clearfills": {
      "url": "https://clearfills-api.fly.dev/mcp",
      "transport": "http"
    }
  }
}
```

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

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "clearfills": {
      "type": "streamableHttp",
      "url": "https://clearfills-api.fly.dev/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "clearfills": {
      "url": "https://clearfills-api.fly.dev/mcp"
    }
  }
}
```

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

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "clearfills": {
      "url": "https://clearfills-api.fly.dev/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "clearfills": {
      "url": "https://clearfills-api.fly.dev/mcp"
    }
  }
}
```

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

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "clearfills": {
      "url": "https://clearfills-api.fly.dev/mcp"
    }
  }
}
```

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

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://clearfills-api.fly.dev/mcp
```

Enter a Name (for example "ClearFills"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for a bearer token. Add it under HTTP headers as Authorization: Bearer <your token>.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "clearfills": {
      "type": "http",
      "url": "https://clearfills-api.fly.dev/mcp"
    }
  }
}
```

## FAQ

### Does the AI agent get my broker password?

No. The README states agents never receive broker credentials and can only submit proposals that pass the firewall.

### Which brokers are supported?

Interactive Brokers Gateway is the execution adapter in the open-source package. The website also lists Alpaca, Polymarket and Kalshi for its hosted product.

### Is there a free option?

The open-core package under Apache-2.0 is free to install with pip, and the hosted tier includes 500 cloud checks per month.

### Can I run the checks without a broker account?

Yes. The CLI includes a local redteam test and a 25-scenario benchmark that run fully offline.

### How do I add ClearFills to Claude Code?

Run this command in your terminal: claude mcp add --transport http clearfills https://clearfills-api.fly.dev/mcp

### What are the best alternatives to ClearFills?

The closest alternatives to ClearFills are Pit Officer, Arena Exchange Headless Trading & Risk MCP, CCXT, Tradememory Protocol and WICK Funded — Trading.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Status: checked automatically by AIPoweredBot on 29 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Pit Officer](https://ai-powered.com/mcp/pit-officer): Pit Officer is an open-source MCP server for finance and payments.
- [Arena Exchange Headless Trading & Risk MCP](https://ai-powered.com/mcp/arena-exchange-headless-trading-and-risk-mcp): Arena Exchange Headless Trading & Risk MCP is an open-source MCP server for finance and payments.
- [CCXT](https://ai-powered.com/mcp/ccxt): CCXT is an open-source MCP server for finance and payments.
- [Tradememory Protocol](https://ai-powered.com/mcp/tradememory-protocol): Tradememory Protocol is an open-source MCP server for finance and payments.
- [WICK Funded — Trading](https://ai-powered.com/mcp/wick-funded-trading): WICK Funded — Trading is a paid MCP server for finance and payments.
- [Sentinel Execution MCP](https://ai-powered.com/mcp/sentinel-execution-mcp): Sentinel Execution MCP is an open-source MCP server for finance and payments.
- [KOYN FX](https://ai-powered.com/mcp/koyn-fx): KOYN FX is a freemium MCP server for finance and payments.
- [Pre-trade token safety (x402)](https://ai-powered.com/mcp/pre-trade-token-safety-x402): Pre-trade token safety (x402) is a paid MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/clearfills
