AM

anguslin/mcp-capitol-trades

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6 stars 5 forks 质量 69 趋势 14MIT

A Model Context Protocol (MCP) server that extracts politician trades from www.capitoltrades.com. Get detailed trade information including politicians, dates, transaction types, sizes, and prices.

概览

A Model Context Protocol (MCP) server that extracts politician stock trades with prices from Capitol Trades. Get detailed trade information including politicians, dates, transaction types, sizes, and prices. No API Key required. - 🆓 - No API key required - 🚀 - Install and go - 📊 - Top stocks, buy momentum, party analysis - 🎯 - By stock, politician, party, transaction type - 💰 - Prices and transaction details Get politician stock trades with prices from Capitol Trades. Simply ask Cursor or VS Code AI to get trades for any stock! "Get politician trades for Microsoft in the last 90 days" Choose for a quick start from npm, or to build from source. That's it! The package is installed globally. All data is public Congressional financial disclosures. If you want to build from source or contribute:

README

以下为原文 README 节选,完整内容请查看原文。

MCP Capitol Trades Server

A Model Context Protocol (MCP) server that extracts politician stock trades with prices from Capitol Trades. Get detailed trade information including politicians, dates, transaction types, sizes, and prices. No API Key required.

✨ Why This MCP Server?

  • 🆓 100% Free - No API key required
  • 🚀 Easy Setup - Install and go
  • 📊 Analytics Tools - Top stocks, buy momentum, party analysis
  • 🎯 Advanced Filtering - By stock, politician, party, transaction type
  • 💰 Real-time Data - Prices and transaction details

Quick Start

Get politician stock trades with prices from Capitol Trades. Simply ask Cursor or VS Code AI to get trades for any stock!

Example: “Get politician trades for Microsoft in the last 90 days”

Installation

Choose Option 1 for a quick start from npm, or Option 2 to build from source.

npm install -g @anguslin/mcp-capitol-trades

That’s it! The package is installed globally.

🎉 No API key or authentication needed! All data is public Congressional financial disclosures.

Option 2: Install from Source

If you want to build from source or contribute:

git clone https://github.com/anguslin/mcp-capitol-trades
cd mcp-capitol-trades
npm install
npm run build

✅ Status: Build folder contains the compiled JavaScript at build/src/index.js

Configuration

Configure Cursor/VS Code to use the MCP server.

Step 1: Open MCP Settings

  1. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS)
  2. Type “MCP Settings” and select “MCP: Edit Settings” or “Preferences: Open User Settings (JSON)”

Step 2: Add Configuration

If you installed from npm (Option 1):

{
  "mcpServers": {
    "mcp-capitol-trades": {
      "command": "mcp-capitol-trades"
    }
  }
}

If you installed from source (Option 2):

{
  "mcpServers": {
    "mcp-capitol-trades": {
      "command": "node",
      "args": [
       "C:/Users/anguslin/Projects/mcp-capitol-trades/build/src/index.js"
      ]
    }
  }
}

Important: Update the path to your actual project location for source installs!

Step 3: Save and Restart

  1. Save the settings file (Ctrl+S / Cmd+S)
  2. Restart Cursor/VS Code completely to load the MCP server

Verify Installation

After restarting, you should see the MCP Capitol Trades server available in your AI chat interface.

Tools Provided

Tool Description
get_politician_trades Extract politician trades with advanced filtering options
get_top_traded_assets Get the most traded assets (stocks, ETFs, mutual funds, bonds) by politicians ranked by volume
get_politician_stats Get comprehensive statistics for a specific politician
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mcp-capitol-trades": { "command": "mcp-capitol-trades" } } }