
ClearFills
Pre-trade risk firewall and portfolio MCP server that checks AI trading orders before
The server answered yesterday with a sign-in request for a bearer token (HTTP 401), so we could not list its tools.
ClearFills is a freemium MCP server for finance and payments. It can run locally on your machine or as a hosted remote server.
- Pricing
- Freemium
- Platforms
- API, CLI, Web
- Runs
- Locally or Remotely
- Access
- Needs sign-in (bearer token)
- Version
- 0.5.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add --transport http clearfills https://clearfills-api.fly.dev/mcpAdd --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": {
"clearfills": {
"type": "http",
"url": "https://clearfills-api.fly.dev/mcp"
}
}
}In Customize → Connectors → Add → Add custom connector
https://clearfills-api.fly.dev/mcpPaste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"clearfills": {
"url": "https://clearfills-api.fly.dev/mcp"
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
In chatgpt.com → Plugins → + → Add custom MCP server
https://clearfills-api.fly.dev/mcpPaste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.
Add with the CLI
Run in a terminal
codex mcp add clearfills --url https://clearfills-api.fly.dev/mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.clearfills]
url = "https://clearfills-api.fly.dev/mcp"Add to Grok Bot desktop app → Connect apps → Add a custom connector
https://clearfills-api.fly.dev/mcpEnter 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>.
Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"clearfills": {
"type": "http",
"url": "https://clearfills-api.fly.dev/mcp"
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "clearfills": { "serverUrl": "https://clearfills-api.fly.dev/mcp" } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "clearfills": { "type": "streamableHttp", "url": "https://clearfills-api.fly.dev/mcp" } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "clearfills": { "url": "https://clearfills-api.fly.dev/mcp" } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "clearfills": { "url": "https://clearfills-api.fly.dev/mcp" } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "clearfills": { "url": "https://clearfills-api.fly.dev/mcp" } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About ClearFills
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.
What it does
- 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
Pricing
Freemium, from $49 a month
Open core free under Apache-2.0; Builder $49/mo; HoldCo & Team $149/mo; Enterprise custom.
Prices change. Check clearfills.com before you buy.
ClearFills 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.