Skip to main content
Glama
InsiderTrack MCP

InsiderTrack MCP

InsiderTrack MCP

An MCP server for InsiderTrack: let an AI assistant — Claude Desktop, claude.ai, Claude Code, or any MCP client — ask who in Congress is buying what, which corporate insiders are clustering, what a ticker scores and why, and whether those signals actually worked.

By M.G. Network and Technology Solutions.

v0.3.0 — running in production alongside InsiderTrack: twelve read tools, two resources, two prompts, token-gated over the public URL. Connected to claude.ai as a custom connector. Design notes in DESIGN.md.

What it looks like

A question the site cannot answer on any one page — "Where are several insiders buying their own stock this month, and did anyone in Congress buy the same names? How good is that member's record?" — becomes three tool calls. Recorded against the live instance on 2026-09-20:

cluster_buys(days=30)
  BABA  2 insiders  $25.7M      PMTS  5 insiders  $12.0M
  GME   4 insiders  $21.7M      SBLK  8 insiders  $6.9M
  UBER  2 insiders  $15.3M      NGL   2 insiders  $5.8M   …

congress_trades(ticker="UBER", direction="buy", since="2026-06-01")
  Dan Newhouse (R-WA, House)  $1,001 – $15,000  traded 2026-07-10

member_track_record(politician_id=…)
  89 measured buys · 90-day win rate 43.8% · beat SPY 40.4% of the time
  avg excess vs SPY −2.3 pts · weight in the composite score: 0.9

So: one overlap, and the member behind it has a below-market record — the score already discounts his trades. Claude writes that paragraph; the server only hands it the facts, each stamped as_of and with the disclaimer.

Related MCP server: Congressional Trade Signals

How it works

InsiderTrack already computes everything — scores, member track records, cluster buys, 30/60/90-day outcomes — behind an HTTP API. This server is a small, separately deployed process that exposes a curated set of tools over that API, each described well enough that a model picks the right one, with guardrails so a chat cannot hurt the app:

  • read-only by construction (one optional write, off by default),

  • bearer-token auth and a per-client rate limit over HTTP,

  • capped result sizes, errors returned as data the model can recover from,

  • one audit line per call,

  • no database credentials, no volumes — the container can only reach the app.

Run it

Locally, as a subprocess for Claude Code (no network, no tokens):

python -m venv .venv && .venv/bin/pip install -e ".[dev]"
claude mcp add insidertrack -e INSIDERTRACK_URL=http://localhost:8013 -- .venv/bin/insidertrack-mcp

Over HTTP, inside the InsiderTrack Compose stack: add the service from deploy/compose.snippet.yml to its deploy/compose.yml, put an MCP_TOKENS=name:token line in its deploy/.env, and add a /mcp handler to the Tailscale serve config (Tailscale strips the prefix, so the server itself listens at /).

A ready-built image is on GHCR — ghcr.io/mrgutierrezmario/insidertrack-mcp (:main follows the branch, :0.2.0-style tags are releases, amd64 and arm64). A staging copy ran on Kubernetes from homelab-gitops; it is paused (since 2026-09-23) until it moves to its own machine.

Then connect a client:

Client

How

claude.ai / Claude Desktop

Settings → Connectors → Add custom connector → URL https://<host>/mcp, transport Streamable HTTP, Authentication No sign-in, request header X-API-Key = the token. (claude.ai keeps the Authorization header for its own OAuth, so use X-API-Key.) The nine tools appear under Read-only tools; set them to Always allow.

Claude Code

claude mcp add --transport http insidertrack https://<host>/mcp --header "Authorization: Bearer <token>"

Local, no network

claude mcp add insidertrack -e INSIDERTRACK_URL=http://localhost:8013 -- .venv/bin/insidertrack-mcp

python -c "import secrets; print(secrets.token_urlsafe(32))"   # make a token

Tools

Tool

Question it answers

search

"Who is Pelosi in this system? What's the exact ticker? Which fund is Berkshire?" — ids and symbols for the other tools

congress_trades

"What did members of Congress do in NVDA since June?" — filter by ticker, member, buy/sell, owner, asset type, dates

ticker_signal

"What does KMX score, and why?" — the 0–100 composite, sub-scores and written reasons

top_signals

"What scores highest right now?" — the strongest tickers, no reasons

cluster_buys

"Where are several insiders buying their own stock?" — market-wide Form 4 clusters

member_track_record

"How have Pelosi's buys actually done?" — 30/60/90-day returns vs SPY, buys and sales, the weight it earns

leaderboard

"Which members beat the market most often?" — ranked by 90-day beat-SPY rate

late_filers

"Who reports their trades late?" — members ranked by trades disclosed past the STOCK Act's 45-day limit, with the worst filing linked

signal_outcomes

"Does 'Strong Watch' actually go up — and beat SPY?" — hit-rates and excess vs SPY per label per scoring version

model_desk

"What did the site's model call this morning, and how have its calls scored?"

fund_leaderboard

"Which 13F funds' position changes actually beat the market?" — measured from the filing's public date, not quarter end

fund_track_record

"How did Renaissance's new and increased positions do?" — 30/60/90-day returns vs SPY, buys and sales

All read-only and idempotent (declared as such in the tool annotations), each capped to a sensible number of rows, dollars pre-formatted, no internal ids a model cannot use. One optional write, watchlist_add, exists only when the operator sets MCP_ALLOW_WRITES=1 and gives the server their own watchlist identity — it never holds an admin credential.

Resources and prompts

insidertrack://brief/today

The site's model's morning brief and today's calls, as text

insidertrack://sources/health

How fresh each data source is, and recent errors — so an answer can say "House data is two days old"

prompt morning_brief

What changed this week: cluster buys, Congress purchases, top scores, how the model's calls resolved

prompt due_diligence(ticker)

A one-page note on one ticker, in a fixed order, ending with what the data supports, what it doesn't, and what would change the picture

Every result carries as_of and a disclaimer: InsiderTrack scores public disclosures; it is a scorecard, not investment advice.

Development

.venv/bin/ruff check . && .venv/bin/ruff format --check .
.venv/bin/python -m pytest -q
docker build -f deploy/Dockerfile -t insidertrack-mcp .

Tests run against recorded API responses in tests/fixtures/ — no InsiderTrack instance needed. CI runs lint, tests and the Docker build on every push; Dependabot keeps the pins current (patch and minor bumps merge themselves once CI is green).

Operations

Nothing to back up — no database, no volumes; tokens live in InsiderTrack's .env, which its nightly backup covers. How it comes back after a reboot, how to update or rebuild it, rotate tokens, and what to check when it's down: deploy/OPERATIONS.md.

Versions

The version lives in VERSION and is reported by the server on initialise and at /health. See CHANGELOG.md.

License

PolyForm Noncommercial 1.0.0 — © 2026 M.G. Network and Technology Solutions.

Available Tools

12 tools
cluster_buysA
Read-onlyIdempotent

Companies where several corporate insiders bought their own stock on the open market.

"Cluster buys" — two or more distinct officers, directors or 10% owners filing open-market purchases (Form 4 code P) within the window — are one of the stronger public signals. Market-wide, not limited to what Congress trades. Sorted by total dollars.

Args: days: Look-back window, 1-365 (default 30). min_buyers: Minimum distinct insiders buying, 1-10 (default 2). limit: Rows to return, 1-100 (default 25).

Inputs: days, limit, min_buyers. Returns: object

congress_tradesA
Read-onlyIdempotent

Stock trades disclosed by members of Congress (House and Senate PTRs).

Filter by ticker and/or politician id (from search), direction, who in the household traded, asset type, and a date range on the trade date. Newest first. Amounts are the dollar brackets the law requires, not exact figures. direction already treats a put purchase as the bearish bet it is.

Args: ticker: Exact symbol, e.g. NVDA. politician_id: From search. direction: buy or sell. owner: self, spouse, child or joint. asset_type: stock, option or other. since: Earliest trade date, YYYY-MM-DD. until: Latest trade date, YYYY-MM-DD. limit: Rows to return, 1-100 (default 25).

Inputs: limit, owner, since, until, +4 more. Returns: object

fund_leaderboardA
Read-onlyIdempotent

Institutional investors (13F filers) ranked by how their position changes performed vs SPY.

Each fund's new and increased positions are measured from the day the 13F became public (up to 45 days after quarter end — the date that matters, not the quarter end) at 30/60/90 days against SPY. window is the longest horizon with data; a fund needs two loaded quarters to be measured at all, so early on only a few are ranked and the rest show measured: false. Use fund_track_record for the detail.

Inputs: no named parameters. Returns: object

fund_track_recordA
Read-onlyIdempotent

How one institutional investor's 13F position changes performed vs SPY.

"Buys" are new and increased positions, "sales" trims and exits (measured in the inverted sense: a good sale is one the stock then fell). Every change is measured from the 13F's public date — a quarter- end snapshot the fund filed up to 45 days later — so this is what a person copying the filing could have done, not what the fund did. Windows with n 0 simply have no resolved data yet.

Args: holder_id: From fund_leaderboard or search. recent_changes: Measured changes to list, 0-50 (default 10).

Inputs: holder_id (required), recent_changes. Returns: object

late_filersA
Read-onlyIdempotent

Members of Congress who disclose trades after the STOCK Act deadline.

A trade must be reported no later than 45 days after it happened. This ranks members by how many of their trades were disclosed later than that (trade date to filing date), with the share late, how many reports, the typical and longest delay, and a link to the worst filing. Late usually means one big catch-up report covering many trades; a multi-year "longest" can be a typo in the filing itself — the link lets a reader check. Late filing is a disclosure failure, not evidence of insider trading; say so if the user implies otherwise.

Args: days: Only trades disclosed in the last N days, 1-3650; omit for all history. limit: Members to return, 1-50 (default 15).

Inputs: days, limit. Returns: object

leaderboardA
Read-onlyIdempotent

Members of Congress ranked by how often their stock buys beat SPY at 90 days.

Only members with at least min_trades measured buys are ranked, so a lucky single trade does not top the list. weight_in_score is the multiplier that record earns their trades in the composite score.

Args: min_trades: Minimum measured buys to qualify, 1-200 (default 10). limit: Rows to return, 1-50 (default 20).

Inputs: limit, min_trades. Returns: object

member_track_recordA
Read-onlyIdempotent

How a member of Congress's disclosed stock buys (and sales) actually performed.

Every buy is measured from the first close after disclosure at 30/60/90 days, against SPY over the same days. weight_in_score is what that record earns the member's trades in the composite score (1.0 = neutral). Sales are measured the same way (a good sale is one the stock then fell).

Args: politician_id: From search. recent_trades: Measured buys to list, 0-50 (default 10).

Inputs: politician_id (required), recent_trades. Returns: object

model_deskA
Read-onlyIdempotent

The site's own AI model's morning brief and directional calls — and how they scored.

Each morning the model reads the day's disclosures and makes 3-5 calls (ticker, bullish/bearish, 30/60/90-day horizon, confidence, reasoning). Calls are scored at their horizon against SPY exactly like members' trades. Treat it as a scorecard of the model, not a forecast.

Args: history: Also return this many past calls, newest first, 0-100 (default 0).

Inputs: history. Returns: object

signal_outcomesA
Read-onlyIdempotent

Does a label actually go up — and beat the market? Every score bucket at 30/60/90 days.

InsiderTrack snapshots every ticker's score daily and fills in what the price did 30, 60 and 90 days later. This is the scorecard: per label, how many snapshots resolved, how many went up/down/flat, the win rate, and — against SPY over the same trading days — the average excess return in percentage points and how often the label beat SPY. A label that goes up in a rising market but trails SPY has no edge; lead with the SPY numbers. Scoring regimes change over time; results are per version (default: the current one). Small resolved counts mean the regime is young — say so.

Args: score_version: Restrict to one scoring regime; default is the current one.

Inputs: score_version. Returns: object

ticker_signalA
Read-onlyIdempotent

InsiderTrack's composite score for one ticker, with the reasons behind it.

Score is 0-100: smart money (13F holders) + Congress buying weighted by each member's track record + corporate insiders (Form 4) + momentum, minus a risk penalty. label is the human bucket (e.g. "Strong Watch", "High Risk"); signal is BULLISH / NEUTRAL / BEARISH. Only tickers traded by a tracked member of Congress in the window have a score.

Args: ticker: Exact symbol, e.g. NVDA.

Inputs: ticker (required). Returns: object

top_signalsA
Read-onlyIdempotent

The strongest composite scores right now, highest first (use ticker_signal for the reasons).

Args: limit: Rows to return, 1-25 (default 10). min_score: Only tickers scoring at least this (0-100).

Inputs: limit, min_score. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, but there are list/detail pairs (leaderboard vs member_track_record, fund_leaderboard vs fund_track_record, top_signals vs ticker_signal) that could be momentarily confused. Descriptions mostly resolve the boundaries, so the set is usable without much misselection risk.

    Naming Consistency4/5

    Tool names are consistently snake_case and largely follow an entity_or_feature + descriptor pattern. Minor deviations such as the verb-like `search` and the single-word `leaderboard` prevent a perfect score, but the convention is predictable.

    Tool Count5/5

    Twelve tools is well within the appropriate range for a multi-source market intelligence server. Each tool maps to a meaningful analytical surface, and the count does not feel bloated or thin.

    Completeness3/5

    The surface covers congressional trades, member performance, 13F fund performance, corporate insider clusters, ticker signals, signal outcomes, late filings, and model calls. However, `search` explicitly supports Fed officials but no other tool consumes a Fed official id, creating a dead end; raw corporate insider trades and some drill-down detail are also absent.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables querying of U.S. congressional stock trade data, including price history, recent trades, buy signals, stock activity, and politician activity, through natural language tools.
      1
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Connects Claude to live U.S. Congress stock trades and institutional 13F holdings from free public sources, enabling natural language queries about political insider trading and fund overlap.
      -