返回市场
国会政务MCP服务器

国会政务MCP服务器

作者:AshwinSundar17 星标更新:2025-07-01

项目介绍

<span>Congress.gov</span> MCP服务器

smithery徽章

想知道美国国会正在做什么吗?厌倦了通过阅读新闻来了解吗?自己询问美国国会API吧。

非官方的Congress.gov API MCP服务器

安装

通过Smithery安装

要通过Smithery自动安装congress_gov_mcp到Claude Desktop:

npx -y @smithery/cli install @AshwinSundar/congress_gov_mcp --client claude

手动安装

先决条件

  1. 安装uv。在macOS和Linux上最简单的方法是:

    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. 获取一个Congress.gov API密钥

  3. 安装Claude Desktop,Claude Code或其他支持MCP集成的客户端。

初始设置

  1. 完成先决条件

  2. 克隆此仓库,并进入目录:

    git clone http://github.com/AshwinSundar/congress_gov_mcp
    
    cd congress_gov_mcp
    
  3. 安装依赖项:

    uv sync
    
  4. 从模板创建一个.env文件:

    cp .env.template .env
    
  5. 将您的Congress.gov API密钥添加到.env文件中:

<u>congress_gov_mcp/.env</u>

CONGRESS_GOV_API_KEY="your-api-key-here"

客户端配置

Claude Desktop

  1. 完成先决条件

  2. 复制您的uv安装的绝对路径:

which uv
  1. 在Claude Desktop配置文件中的mcpServers块内添加以下内容:

    macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "congress_gov_mcp": {
      "command": "/absolute_path/to/uv",
      "args": [
        "run",
        "/absolute_path_to/congress_gov_mcp/server.py"
      ]
    }
  }
}

Claude Code

  1. 完成先决条件

  2. 在您运行Claude Code的目录中的.mcp.json文件内的mcpServers块中添加以下内容:

{
  "mcpServers": {
    "congress_gov_mcp": {
      "command": "uv",
      "args": [
        "run",
        "/absolute_path_to/congress_gov_mcp/server.py"
      ]
    }
  }
}

发展路线图

  • api.congress.gov
    • /bill
      • /{congress}
      • /{congress}/{billType}
      • /{congress}/{billType}/{billNumber}
        • /actions
        • /amendments
        • /committees
        • /cosponsors
        • /relatedbills
        • /subjects
        • /summaries
        • /text
        • /titles
    • /amendment
      • /{congress}
      • /{congress}/{amendmentType}
      • /{congress}/{amendmentType}/{amendmentNumber}
        • /actions
        • /cosponsors
        • /amendments
        • /text
    • /summaries
      • /{congress}
      • /{congress}/{billType}
    • /congress
      • /{congress}
      • /current
    • /member
      • /{bioguideId}
        • /sponsored-legislation
        • /cosponsored-legislation
    • /committee
      • /{systemCode}
        • /bills
        • /reports
        • /nominations
        • /meetings
        • /hearings
        • /house-communication
        • /senate-communication
    • /committee-report
      • /{congress}
      • /{congress}/{reportType}
      • /{congress}/{reportType}/{reportNumber}
        • /text
    • /committee-print
      • /{congress}
      • /{congress}/{printType}
      • /{congress}/{printType}/{printNumber}
        • /text
    • /committee-meeting
      • /{congress}
      • /{congress}/{chamber}
        • /meetings
    • /hearing
      • /{congress}
      • /{congress}/{chamber}
      • /{congress}/{chamber}/{hearingNumber}
    • /house-vote
      • /{congress}
      • /{congress}/{session}
      • /{congress}/{session}/{rollCallNumber}
    • /congressional-record
      • /{volume}
      • /{volume}/{pagePrefix}
      • /{volume}/{pagePrefix}/{pageNumber}
    • /daily-congressional-record
      • /{volume}
      • /{volume}/{issue}
    • /bound-congressional-record
      • /{year}
      • /{year}/{month}
      • /{year}/{month}/{day}
    • /house-communication
      • /{congress}
      • /{congress}/{communicationType}
      • /{congress}/{communicationType}/{communicationNumber}
    • /house-requirement
      • /{congress}
      • /{congress}/{requirementNumber}
    • /senate-communication
      • /{congress}
      • /{congress}/{communicationType}
      • /{congress}/{communicationType}/{communicationNumber}
    • /nomination
      • /{congress}
      • /{congress}/{nominationNumber}
        • /actions
        • /hearings
    • /crsreport
      • /{productCode}
    • /treaty
      • /{congress}
      • /{congress}/{treatyNumber}
        • /actions
        • /committees