congressMCP
by amurshak·★ 30·综合分 45
MCP 服务器提供91+工具,通过国会.gov API获取美国国会实时数据。
概述
CongressMCP是一个全面的模型上下文协议服务器,将完整的国会.gov API暴露给AI代理和MCP客户端。它提供6个工具集,包含91+个操作,涵盖法案、修正案、条约、议员、委员会、投票记录和国会听证会。该服务器支持stdio和HTTP传输,并可选择缓存以提高性能。对于需要通过自然语言界面查询立法数据的记者、研究人员和有公民意识的人来说尤其有价值。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要通过MCP接口访问美国当前立法数据时,特别是用于研究、新闻报道或需要国会信息的应用程序时,选择CongressMCP。
什么时候不要选它
如果您需要非美国立法数据,需要写入国会记录的权限,或需要1989年之前的数据(Congress.gov覆盖限制),则避免使用CongressMCP。
此 server 暴露的工具
从 README 抽取出 12 个工具search_billsSearch for congressional bills with various filters
get_bill_detailsGet detailed information about a specific bill
get_bill_textRetrieve the full text of a bill
get_bill_actionsRetrieve the action history of a bill
search_membersSearch for congressional members by name, state, or district
get_member_detailsGet detailed information about a specific member of Congress
get_committee_membersGet members of a specific congressional committee
get_vote_recordsRetrieve voting records for specific bills or roll calls
search_treatiesSearch for international treaties
get_congressional_recordRetrieve entries from the Congressional Record
get_hearingsRetrieve information about congressional hearings
get_bill_summariesRetrieve summaries of congressional bills
可对比工具
安装
- 从 [api.congress.gov/sign-up](https://api.congress.gov/sign-up/) 获取免费的Congress.gov API密钥
- 安装包:
pip install congressmcp- 配置您的MCP客户端(以Claude Desktop为例):
添加到 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"congressmcp": {
"command": "uvx",
"args": ["congressmcp"],
"env": {
"CONGRESS_API_KEY": "your-api-key-here"
}
}
}
}FAQ
- 这个服务器使用什么API?
- 它使用官方的Congress.gov API,提供对美国立法数据(包括法案、投票、议员、委员会等)的访问。
- 这个服务器提供多少个工具?
- CongressMCP提供6个工具集,包含91+个操作,涵盖所有主要的国会.gov API端点。
Hacker News 讨论
开发者社区最近的相关讨论。
- 帖子 by amurshak · 2025-06-11
congressMCP 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。