InsiderTrack MCP
An MCP server that exposes InsiderTrack's read-only public-disclosure analytics — Congress trades, insider cluster buys, ticker scores, and how those signals actually performed — to any MCP client (Claude Desktop, claude.ai, Claude Code).
Look things up —
searchresolves names/fragments to politician ids, fund ids and exact tickers.Track Congress —
congress_tradesfilters disclosed House/Senate PTR trades by ticker, member, buy/sell, owner, asset type and date range.Score tickers —
ticker_signalreturns the 0–100 composite, sub-scores, reasons, label and BULLISH/NEUTRAL/BEARISH signal;top_signalslists the strongest without reasons.Find insider clusters —
cluster_buysshows companies where 2+ insiders bought on the open market, market-wide, sorted by dollars.Grade the signal-sources —
member_track_recordandleaderboardmeasure members' 30/60/90-day returns vs SPY and the score weight they earn;fund_leaderboardandfund_track_recorddo the same for 13F filers, measured from the filing's public date.Check whether it works —
signal_outcomesgives per-label 30/60/90-day hit rates by scoring version;model_deskreturns the site model's morning brief, calls and how they scored.Resources & prompts —
insidertrack://brief/today,insidertrack://sources/health(data freshness/errors), plus promptsmorning_briefanddue_diligence(ticker).Deployment modes — local subprocess with no network/tokens, or HTTP with bearer-token auth and rate limiting; read-only and idempotent by default, one optional
watchlist_addwrite only whenMCP_ALLOW_WRITES=1.Guardrails — capped result sizes, errors returned as recoverable data, one audit line per call, no database credentials, every result stamped
as_ofwith a disclaimer.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@InsiderTrack MCP Show me cluster buys in the last 30 days and how those signals performed."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.9So: 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: SEC EDGAR MCP
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-mcpOver 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 |
Claude Code |
|
Local, no network |
|
python -c "import secrets; print(secrets.token_urlsafe(32))" # make a tokenTools
Tool | Question it answers |
| "Who is Pelosi in this system? What's the exact ticker? Which fund is Berkshire?" — ids and symbols for the other tools |
| "What did members of Congress do in NVDA since June?" — filter by ticker, member, buy/sell, owner, asset type, dates |
| "What does KMX score, and why?" — the 0–100 composite, sub-scores and written reasons |
| "What scores highest right now?" — the strongest tickers, no reasons |
| "Where are several insiders buying their own stock?" — market-wide Form 4 clusters |
| "How have Pelosi's buys actually done?" — 30/60/90-day returns vs SPY, buys and sales, the weight it earns |
| "Which members beat the market most often?" — ranked by 90-day beat-SPY rate |
| "Who reports their trades late?" — members ranked by trades disclosed past the STOCK Act's 45-day limit, with the worst filing linked |
| "Does 'Strong Watch' actually go up — and beat SPY?" — hit-rates and excess vs SPY per label per scoring version |
| "What did the site's model call this morning, and how have its calls scored?" |
| "Which 13F funds' position changes actually beat the market?" — measured from the filing's public date, not quarter end |
| "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
| The site's model's morning brief and today's calls, as text |
| How fresh each data source is, and recent errors — so an answer can say "House data is two days old" |
prompt | What changed this week: cluster buys, Congress purchases, top scores, how the model's calls resolved |
prompt | 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 toolscluster_buysARead-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_tradesARead-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_leaderboardARead-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_recordARead-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_filersARead-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
leaderboardARead-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_recordARead-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_deskARead-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
searchARead-onlyIdempotent
Find members of Congress, tickers, 13F funds and Fed officials by name or symbol.
Use this first when you have a name or part of a ticker and need the politician id, fund id or exact symbol that the other tools take. Matching is case-insensitive and partial ("pelosi", "NVD", "berkshire").
Args: query: A name or ticker fragment, 1-80 characters.
Inputs: query (required). Returns: object
signal_outcomesARead-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_signalARead-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_signalsARead-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
Scored across 12 tools
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.
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.
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.
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
Related MCP Connectors
Stock research for AI assistants: scan and chart US stocks; SEC filings, insider trades and news.
Plain-English stock search joining congress and insider purchases with SEC fundamentals. Not advice.
Ask your AI about the markets: filings, insider & congress trades, fund flows, options, macro
US public financial disclosures for AI agents: Congress trades, SEC filings, FEC, lobbying, more
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables querying of U.S. congressional stock trade data, including price history, recent trades, buy signals, stock activity, and politician activity, through natural language tools.1MIT
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to SEC EDGAR filings for retrieving company data, financial statements, and insider transactions with exact precision.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying US congressional and executive stock trading disclosures, including recent trades, top movers, and individual member activity, with filters and performance analytics.76 npmMIT
- AlicenseAqualityBmaintenanceVerify insider-purchase, 13D, 8-K and 13F claims against the SEC filing itself (confirmed, partial, not found, out of coverage), plus Form 4, 13D, 13F and federal-award lookups. Every record links to sec.gov. Read-only, no key.92MIT