MCP.so
登录

Congress.gov API MCP Server

@bsmi021

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

bsmi021

关于 Congress.gov API MCP Server

This is a Model Context Protocol (MCP) server designed to provide access to the official Congress.gov API (v3) using a hybrid approach.

#ai#mcp#congress#us-congress#congressional#claude#congress-legislators#mcp-servers#mcp-server#modelcontextprotocol

Congress.gov API MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Congress.gov API MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Congress.gov API MCP Server?

Congress.gov API MCP Server is a Model Context Protocol (MCP) server that provides access to the official Congress.gov API (v3). It uses MCP Resources for direct lookups of core legislative entities (Bills, Members, Congresses, Committees, general Info) via standardized URIs, and MCP Tools for complex searches and retrieving related data lists. It is designed for MCP clients like AI assistants or development tools needing U.S. legislative data.

How to use Congress.gov API MCP Server?

Install dependencies with npm install, add your Congress.gov API key to a .env file as CONGRESS_GOV_API_KEY, build with npm run build, and run with npm start. Connect an MCP client via stdio to the running server. Access resources using access_mcp_resource with URIs like congress-gov://bill/117/hr/3076. Use tools congress_search and congress_getSubResource in a required two-step process: first find an entity ID via search, then fetch related data using that ID.

Key features of Congress.gov API MCP Server

  • Direct lookups of bills, members, congresses, committees via MCP Resources
  • Full-text search across legislative collections (bills, members, etc.)
  • Retrieval of related data (actions, sponsors, text) using entity IDs
  • Uses standard MCP protocol, compatible with any MCP client
  • Built with TypeScript for type safety and reliability
  • Implements rate limiting and error handling for the Congress.gov API

Use cases of Congress.gov API MCP Server

  • AI assistants answering questions about current or past legislation
  • Research tools pulling detailed bill actions or member sponsorship lists
  • Automated monitoring of new bills or committee updates
  • Integration with knowledge bases to enrich legislative content
  • Educational applications teaching the U.S. legislative process

常见问题

1

What do I need to run this server?

You need a Congress.gov API key (obtained from https://api.data.gov/signup/), Node.js, and npm. The key is stored in a `.env` file.

2

How does the two-step search workflow work?

First, use `congress_search` to find an entity (e.g., a member) and get its ID. Second, use `congress_getSubResource` with that ID to retrieve related data like sponsored legislation. This is mandatory because related data requires a valid parent URI.

3

Can I filter search results by congress?

No. The Congress.gov API does not support filtering general searches (e.g., for bills or members) by congress using the `filters` parameter. Congress-specific filtering requires API paths that `congress_search` does not construct.

4

What happens if I use an invalid subResource?

The server will return an error. You must use a `subResource` string that is strictly valid for the `parentUri` type (e.g., `'sponsored-legislation'` for members, `'actions'` for bills).

5

Are there any limits on API calls?

The server includes a rate limit service (likely respecting the Congress.gov API’s own limits). The README does not specify a hard limit, but the server is designed to handle rate limiting gracefully.

评论

开发工具 分类下的更多 MCP 服务器