mcpField
C
Congress.gov Mcp Server

Congress.gov Mcp Server

本地服务
github.com/AshwinSundar法律与政务1971 周前更新

关于 Congress.gov Mcp Server

Congress.gov MCP 服务是对 Congress.gov API(api.congress.gov)的非官方封装,让 AI 助手可以直接查询美国国会的数据。适合希望免于阅读新闻、直接查询国会动态的用户。

主要功能

  1. 01封装 Congress.gov API 的数据查询
  2. 02支持法案、修正案、委员会等接口
  3. 03提供国会记录与投票等查询
  4. 04通过 uv 运行,配置 API 密钥即可使用

适用场景

  1. 01查询某届国会的法案进展与动作
  2. 02查找议员信息及其相关法案
  3. 03检索众议院与参议院的投票记录

MCP 相关

该项目是一个 MCP 服务,向 MCP 客户端暴露 Congress.gov API 的查询能力。README 所列的接口覆盖情况为部分已实现、部分待实现。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

暂未收录安装方式

我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。

代码仓库

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

Congress.gov MCP 服务

smithery badge

想知道美国国会最近在做什么吗?不想再通过阅读新闻来了解?直接向美国国会 API 提问吧。

非官方的 Congress.gov API MCP 服务

安装

通过 Smithery 安装

通过 Smithery 自动为 Claude Desktop 安装 congress_gov_mcp:

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. 克隆此仓库,并使用 cd 进入目录:

    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 文件中:

congress_gov_mcp/.env

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"
      ]
    }
  }
}

Roadmap

  • 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

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。