MCP App Store
by KeenEthics
Trading Harness icon

Trading Harness MCP Server for Claude

By Brick and Mortar AI LLC

Overview

Trading Harness does the arithmetic of an owner's-earnings investor inside Claude. Give it a ticker and a price: it reads the company's 10-K figures exactly as filed with the SEC, computes owner earnings (net income plus depreciation and amortisation, minus capex), return on tangible capital, and a reverse DCF, the growth the price requires. It refuses, with the reason, when there is no durable earning power to value. Compare up to eight companies on growth required versus growth delivered. Or paste your own broker export: realized P&L first-in-first-out with fees, a check that every large position has a stop actually resting at the broker, and the dollar and share changes to reach target weights. Reads E*TRADE's download or plain CSV columns. No sign-in, no brokerage access, nothing you paste is stored, and it places no orders. Not investment advice.

How to connect

  1. Claude: Open the Trading Harness listing in the Claude connectors directory and choose Connect. Claude listing Trading Harness exposes 6 tools here.

Tools

as_reported_financials

Claude
A company's annual figures exactly as filed with the SEC (XBRL companyfacts, 10-K/20-F/40-F): revenue, gross profit, operating income, net income, cash from operations, capex, D&A, stock comp, dividends, buybacks, assets, liabilities, equity, cash, goodwill, intangibles, debt and diluted shares, by fiscal year, with the XBRL tag behind each line and the filing each year came from. Optionally a trailing-twelve-month column built from 10-Q year-to-date facts. Keyed on the period a fact covers, not the filing it appeared in. Examples: {"ticker": "KO"}; {"ticker": "CTVA", "years": 5, "ttm": true}.

compare_valuations

Claude
Ranks 2 to 8 companies on the expectations gap: the owner-earnings growth each price requires (reverse DCF) minus the growth the business actually delivered over its last five fiscal years. Negative means the price asks for less than the company has already done. Per company: owner-earnings yield, return on tangible capital, ROE, gross margin first and last year, revenue and owner-earnings CAGR, the base used (latest year for a steady riser, an average for a cyclical) and a reading; refusals and do-not-extrapolate cases are labelled instead of ranked. The gap does not move with the hurdle the way absolute values do. Example: {"companies": [{"ticker": "KO", "price": 70.1}, {"ticker": "PEP", "price": 150.2}, {"ticker": "KDP", "price": 33.4}]}.

owner_earnings_valuation

Claude
Owner earnings by year (net income + depreciation + amortisation - capex, Buffett 1986) beside free cash flow as a cross-check, return on equity and on tangible capital, and, given a share price, the owner-earnings yield against the long bond, three value anchors per share (bond-equivalent, two-stage DCF on normalised and on latest owner earnings), a margin-of-safety ladder, a reverse DCF (the owner-earnings growth the price requires at 8, 9, 10 and 12% required returns) and a growth x required-return sensitivity grid. Returns refused with a reason, and no value, when fewer than three of the last five years had positive owner earnings, the latest year was a loss, or owner earnings exceed 1.6x actual free cash flow. Inputs from SEC filings; price supplied by the caller. Examples: {"ticker": "KO", "price": 70.1}; {"ticker": "CTVA", "price": 62.5, "long_bond_pct": 5.2, "hurdle_pct": 9}; {"ticker": "DE"} (history only).

realized_pnl

Claude
Realized profit and loss from a pasted transactions export: sells matched first-in-first-out against earlier buys per symbol, fees on both sides taken out of the gain. Returns win rate, net, average win and loss, payoff ratio, average holding period in calendar days, totals by symbol, the worst and best closed lots, and sells with no buy in the data (reported apart, not counted as zero-cost wins). Reads E*TRADE's transaction download, the CSV this repo's fetcher writes, or any CSV with columns date, action (buy/sell), symbol, quantity, price and optionally fee. Options rows are set aside and counted. Nothing pasted is stored. Example: {"transactions_csv": "date,action,symbol,quantity,price,fee\n2025-01-06,buy,KO,100,61.20,0\n2025-09-02,sell,KO,100,69.85,0"}.

rebalance_order_list

Claude
The dollar and share change per name to move a pasted positions export to target weights, as a list. Weights are a share of investable capital (positions + cash on hand - cash reserve). Each row: current $ and %, target %, dollar change, shares at the last price, direction, and whether exiting it would realize a gain or harvest a loss (from unrealized P&L; holding periods are not in a positions export, so short- vs long-term is not known). A target with no holding and no price is sized in dollars only. Arithmetic only: no order is placed or previewed. Nothing pasted is stored. Example: {"positions_csv": "symbol,quantity,last_price,total_gain\nAAPL,120,229.80,5940\nKO,200,70.10,-210", "target_weights_pct": {"AAPL": 30, "KO": 30, "VTI": 40}, "cash_on_hand": 10000, "prices": {"VTI": 301.55}}.

stop_coverage_check

Claude
Compares positions with the orders actually resting at the broker. Flags: a position over the size cap with no resting stop, or a stop covering only part of it; any good-for-day order (gone at the close); resting sells exceeding shares held with no link between the legs; resting orders in names not held. With journal text in this repo's JOURNAL.template.md format, it also checks each written price gate (stops, sell limits, dated exits) against the resting orders and lists any gate it could not read as UNCHECKED rather than passing. Positions: symbol, quantity, and market value or last price. Orders: symbol, side, quantity, order type, limit price, stop price, term (GTC/day), status; the text "none" means no open orders. Nothing pasted is stored. Example: {"positions_csv": "symbol,quantity,last_price\nKO,200,70.10\nAAPL,120,229.80", "orders_csv": "symbol,side,quantity,order_type,stop_price,term\nKO,sell,200,stop,62,GTC", "cap_pct": 25}.

Similar Apps

Listed on MCP App Store

Listed on MCP App Store

Add this badge to your site or README. It links to this page.

HTML

<a href="https://mcp-app-store.keenethics-labs.com/app/trading-harness"><img src="https://mcp-app-store.keenethics-labs.com/badges/listed-on-mcp-app-store.svg" alt="Listed on MCP App Store" width="220" height="44"></a>

Markdown

[![Listed on MCP App Store](https://mcp-app-store.keenethics-labs.com/badges/listed-on-mcp-app-store.svg)](https://mcp-app-store.keenethics-labs.com/app/trading-harness)