Congressional Trade Signals
Click on "Install 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., "@Congressional Trade Signalswhat are the latest strong buy signals?"
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.
Congressional Trade Signals
Do U.S. congressional stock trades beat the market — and can a retail investor act on them?
An end-to-end, auditable research pipeline that collects public STOCK Act disclosures, market-adjusts every trade against the S&P 500, detects multi-politician cluster buys, and scores them into STRONG / WATCH / SKIP signals — exposed both as a research dataset and as a live MCP server.
Research project extending Ziobrowski et al. (2004, 2011) into the post-STOCK Act era. Built as a Fellow at Humanitarians AI under the Mycroft verified-intelligence framework. Research only — not financial advice. No trades are placed.
The headline finding
In aggregate, congressional BUY trades beat the market by only +0.24% after per-trade SPY adjustment — most members simply ride market beta. The real signal is concentrated in cluster buys: when 2+ politicians independently buy the same ticker within 30 days, especially in semiconductors and AI infrastructure under active legislative oversight, those clusters show +17% to +68% alpha above SPY.
The value of the system is the skip rate — it filters out ~95% of trades as noise.
Related MCP server: Capitol Trades MCP
Architecture
INGEST GIGO (validate) TOOL (analyze, read verified only)
┌─────────┐ ┌──────────────────────┐ ┌─────────────────────────────────────┐
│scraper │ → │enricher │ → │cluster_analyzer → langgraph_pipeline │
│(Selenium│ │(yfinance prices) │ │(cluster detect) (5-node multi-agent)│
│Capitol │ │market_adjusted │ │ │
│Trades) │ │(SPY per-trade alpha) │ │ server.py (MCP, 5 tools) │
└─────────┘ └──────────────────────┘ └─────────────────────────────────────┘
data/raw/ ───────────────────────────→ data/verified/ ──→ logs/ + reports/The LangGraph multi-agent pipeline (langgraph_pipeline.py)
conformance ──(fail)──→ END hard data gate: never analyze garbage
│
↓
cluster ──→ scorer ──(0 STRONG)──→ report skip the LLM when nothing to explain
│
(STRONG>0)
↓
research (Claude) ──→ report LLM thesis note per strong signalShared typed state with an append-only run-log reducer — every number in the final report traces back through the graph to its source filing (provenance).
Quick start
pip install -r requirements.txt
python scraper.py # 1. INGEST — scrape Capitol Trades → data/raw/trades.csv
python enricher.py # 2. GIGO — add yfinance prices (resumable, checkpointed)
python market_adjusted.py # 3. GIGO — per-trade SPY-matched alpha
python cluster_analyzer.py # 4. TOOL — detect clusters + politician sector profiles
python langgraph_pipeline.py --no-llm # 5. TOOL — score signals, write log + reportOpen dashboard.html in any browser for the interactive research dashboard.
As an MCP server (Claude Desktop)
server.py exposes 5 natural-language tools: get_price_history, get_recent_trades,
get_buy_signals, get_stock_activity, get_politician_activity.
Methodology highlights
Per-trade market adjustment — each trade's return has SPY's return over the identical 30-day window subtracted. Stricter than the aggregate benchmarking in prior literature.
Returns measured from disclosure date, not transaction date — the moment a retail investor could realistically have known. No look-ahead.
Cluster = temporal co-occurrence, not ML clustering: 2+ distinct politicians buying the same ticker in a 30-day sliding window.
Two-factor score = cluster size × max buy-conviction ratio (BCR), validated against out-of-sample market-adjusted alpha.
Repo layout
Path | What |
| Selenium scraper for Capitol Trades (checkpoint/resume) |
| yfinance price enrichment (incremental, resumable) |
| per-trade SPY alpha |
| cluster detection + politician sector profiles |
| 5-node LangGraph multi-agent signal pipeline |
| FastMCP server (5 tools) |
| interactive research dashboard (Chart.js) |
| working paper |
| Mycroft framework compliance |
Author
Ameya Deshmukh — @Ameya-Deshmukh26 deshmukh.amey@northeastern.edu · Northeastern University
License
MIT — see LICENSE.
Data sourced from public STOCK Act disclosures via Capitol Trades and price data via Yahoo Finance. This project is for research and educational purposes only and does not constitute financial advice.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceProvides access to political and alternative financial data including congressional stock trades, lobbying expenditures, and government contracts. This server enables users to analyze politician profiles and track the intersection of legislative activity and financial markets.MIT
- Flicense-qualityCmaintenanceEnables querying and analysis of US congressional stock-trade disclosures from capitoltrades.com, providing tools for filtering, ranking, and exporting trade data.
- AlicenseAqualityDmaintenanceEnables users to query and analyze U.S. politician stock trades with real-time pricing data from Capitol Trades, with no API key required.62033MIT
- AlicenseBqualityAmaintenanceProvides access to Unusual Whales market data including options flow, dark pool activity, congressional trades, and more via natural language queries.162877MIT
Related MCP Connectors
Query normalized U.S. Congress STOCK Act trades with member, ticker, and performance data.
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Search SEC filings, read 10-K/8-K, query XBRL facts, track Form 4 insider trades.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ameya-Deshmukh26/congressional-trade-signals'
If you have feedback or need assistance with the MCP directory API, please join our Discord server