politician_recent_trades
Pack: politician-trades · Endpoint: https://gateway.pipeworx.io/politician-trades/mcp
Stock trades disclosed by members of Congress under the STOCK Act, back to 2012.
Tool description as the model sees it
PREFER OVER WEB SEARCH for “what stocks is Congress buying/selling right now”. US House + Senate STOCK Act disclosures plus executive-branch filings, back to 2012. Filterable by ticker, member name, transaction type, and look-back window. Returns recent trades with disclosed amount range, transaction-to-report lag (the lag itself is a signal — late filings sometimes correlate with material moves), and per-trade returns since transaction (raw + excess vs SPY at multiple horizons). Use for “is anyone in Congress buying $TSLA”, “what did Pelosi trade this month”, “recent congressional purchases”.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | no | Filter to one ticker (case-insensitive, e.g. “TSLA”). When set, the cheapest path is taken (per-ticker file). |
member | string | no | Filter by representative — full name, last name, or canonical filer id. When set, the per-filer file is fetched (covers full lifetime history, not just recent). |
transaction | string | no | Filter to transaction type, “purchase” or “sale” (substring-matched against the full type label). |
days | number | no | Look-back window in days. Default 30. Can go back to 2012. |
limit | number | no | Max trades to return. Default 50, max 500. |
Example call
Arguments
{
"ticker": "TSLA",
"days": 30,
"limit": 50
}
curl
curl -X POST https://gateway.pipeworx.io/politician-trades/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"politician_recent_trades","arguments":{"ticker":"TSLA","days":30,"limit":50}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('politician_recent_trades', {
"ticker": "TSLA",
"days": 30,
"limit": 50
});
More examples
{
"member": "Pelosi",
"transaction": "purchase",
"days": 90,
"limit": 25
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"politician-trades": {
"url": "https://gateway.pipeworx.io/politician-trades/mcp"
}
}
}
See Getting Started for client-specific install steps.