# Trading Harness

> Trading Harness is a free MCP server for finance and payments. Values stocks from SEC filings and checks your own trades, stops and rebalances in Claude. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, Web
- **Website:** https://trading-harness-mcp.vercel.app
- **Repository:** https://github.com/2016judea/trading-harness
- **MCP Registry name:** io.github.2016judea/trading-harness
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-23

## About

Trading Harness is a remote MCP server that runs inside Claude as a custom connector. It pulls ten years of a company's 10-K figures straight from the SEC's free XBRL data, then works out owner earnings, return on tangible capital and the growth a share price implies through a reverse DCF. It can also rank up to eight companies against each other on that gap.

The second half is for reviewing your own book. You paste an E*TRADE transactions export or a set of positions and open orders, and it reports realized profit and loss on a first-in, first-out basis with fees included, flags oversized positions that have no stop, and produces a rebalance list with the tax side of each exit. The server does not hold a brokerage login and cannot place or preview orders.

It suits individual investors who already trade and want a second, numbers-first read on a company or a portfolio. The valuation output refuses to give a number when a business lacks several positive owner-earnings years, which is worth knowing before relying on any result.

## Features

- **As-reported financial lines:** Returns up to ten years of 10-K line items as filed, each linked to the filing it came from.
- **Owner earnings and reverse DCF:** Estimates owner earnings and the growth a current share price requires, refusing when there is nothing durable to value.
- **Multi-company valuation ranking:** Ranks up to eight companies by the gap between growth priced in and growth delivered.
- **FIFO realized P&L:** Matches a pasted transactions export first-in, first-out, with fees, win rate and payoff.
- **Stop coverage check:** Flags positions larger than their stop protection and open orders that expire overnight.
- **Rebalance order list:** Shows the dollar and share change per holding against target weights, with tax notes on exits.

## Good for

- Estimating what growth a share price assumes before buying
- Comparing several companies on valuation in one pass
- Reviewing realized gains and losses from a brokerage export
- Checking whether open positions have protective stops resting
- Planning a rebalance with the tax impact of each sale

## Install

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

```sh
claude mcp add --transport http trading-harness https://trading-harness-mcp.vercel.app/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": {
    "trading-harness": {
      "type": "http",
      "url": "https://trading-harness-mcp.vercel.app/mcp"
    }
  }
}
```

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

```text
https://trading-harness-mcp.vercel.app/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": {
    "trading-harness": {
      "url": "https://trading-harness-mcp.vercel.app/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "trading-harness": {
      "type": "http",
      "url": "https://trading-harness-mcp.vercel.app/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://trading-harness-mcp.vercel.app/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 trading-harness --url https://trading-harness-mcp.vercel.app/mcp
```

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

```toml
[mcp_servers.trading-harness]
url = "https://trading-harness-mcp.vercel.app/mcp"
```

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

```json
{
  "mcpServers": {
    "trading-harness": {
      "httpUrl": "https://trading-harness-mcp.vercel.app/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http trading-harness https://trading-harness-mcp.vercel.app/mcp

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

```json
{
  "mcpServers": {
    "trading-harness": {
      "serverUrl": "https://trading-harness-mcp.vercel.app/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "trading-harness": {
      "url": "https://trading-harness-mcp.vercel.app/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": {
    "trading-harness": {
      "type": "streamableHttp",
      "url": "https://trading-harness-mcp.vercel.app/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "trading-harness": {
      "url": "https://trading-harness-mcp.vercel.app/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": {
    "trading-harness": {
      "url": "https://trading-harness-mcp.vercel.app/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "trading-harness": {
      "url": "https://trading-harness-mcp.vercel.app/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "trading-harness": {
      "url": "https://trading-harness-mcp.vercel.app/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://trading-harness-mcp.vercel.app/mcp
```

Enter a Name (for example "Trading Harness"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

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

```json
{
  "mcpServers": {
    "trading-harness": {
      "type": "http",
      "url": "https://trading-harness-mcp.vercel.app/mcp"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 6 tools changes data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `as_reported_financials`: A company's 10-K lines as filed, with the XBRL tag and filing behind each.
- `owner_earnings_valuation`: Owner earnings, return on tangible capital, value anchors and reverse DCF, or a refusal with its reason.
- `compare_valuations`: Two to eight companies ranked on growth the price requires minus growth delivered.
- `realized_pnl`: FIFO realized P&L from a pasted transactions export.
- `stop_coverage_check` (name suggests: changes): Pasted positions and open orders checked for missing stops and orders that die overnight.
- `rebalance_order_list` (name suggests: reads): Pasted positions and target weights turned into dollar and share changes, with tax side of each exit.

## FAQ

### Does Trading Harness place trades?

No. It calculates and lists changes only, and it cannot place or preview orders.

### Do I need to sign in?

No sign-in is required. You add the server address as a custom connector in Claude settings.

### Which company data does Trading Harness use?

It uses the SEC's free XBRL filings data for as-reported figures.

### Is Trading Harness free?

The connector is free to use in Claude.

### How do I add Trading Harness to Claude Code?

Run this command in your terminal: claude mcp add --transport http trading-harness https://trading-harness-mcp.vercel.app/mcp

### What are the best alternatives to Trading Harness?

The closest alternatives to Trading Harness are Trovest Financial Data, Intrinsic Alpha, WeightedShares — SEC EDGAR Buybacks vs. SBC & Dilution MCP, TGMCharts and Stock Scanner MCP.

## Where this comes from

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

## Alternatives

- [Trovest Financial Data](https://ai-powered.com/mcp/trovest-financial-data): Trovest Financial Data is a paid MCP server for finance and payments.
- [Intrinsic Alpha](https://ai-powered.com/mcp/intrinsic-alpha): Intrinsic Alpha is a freemium MCP server for finance and payments.
- [WeightedShares — SEC EDGAR Buybacks vs. SBC & Dilution MCP](https://ai-powered.com/mcp/weightedshares-sec-edgar-buybacks-vs-sbc-and-dilution-mcp): WeightedShares — SEC EDGAR Buybacks vs. SBC & Dilution MCP is a free MCP server for legal and government.
- [TGMCharts](https://ai-powered.com/mcp/tgmcharts): TGMCharts is a freemium MCP server for finance and payments.
- [Stock Scanner MCP](https://ai-powered.com/mcp/stock-scanner-mcp): Stock Scanner MCP is an open-source MCP server for finance and payments.
- [Slacking.biz — SEC Financial Data + US Economics + Demographics + FX](https://ai-powered.com/mcp/slacking-biz-sec-financial-data-us-economics-demographics-fx): Slacking.biz — SEC Financial Data + US Economics + Demographics + FX is a freemium MCP server for finance and payments.
- [MatterOfStocks](https://ai-powered.com/mcp/matterofstocks): MatterOfStocks is a freemium MCP server for finance and payments.
- [FinanceQuery](https://ai-powered.com/mcp/financequery): FinanceQuery is an open-source MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/trading-harness
