mcp-congress_gov_server
The Congress.gov API MCP Server enables seamless access to U.S. legislative data through a standardized interface. It bridges the gap for AI assistants and development tools by providing structured access to querying legislative entities and performing complex operations with the Congress.gov API.
Congress.gov API MCP Server
This project is a Model Context Protocol (MCP) server designed to provide access to the official Congress.gov API (v3). It uses MCP Resources for direct lookups and MCP Tools for complex operations, enabling users to search collections and retrieve related data. The server allows MCP clients to query U.S. legislative data easily and acts as a bridge for AI assistants or development tools.
Project Structure
/src
: Source code, including configuration, services, tools, and utility functions./dist
: Compiled JavaScript output./docs
: Project documentation.package.json
: Metadata and dependencies.
Getting Started
- Install Dependencies.
- Set API Key in
.env
. - Build and Run the Server.
Usage with MCP Client
Connect to the running server to access resources and use tools.
Accessing Resources
Use commands to perform operations such as fetching bills, members, or info about Congress.
Using Tools
Follow a two-step workflow to find entities and get related data, ensuring valid combinations to avoid errors.
Linting and Formatting
- Lint:
npm run lint
- Format:
npm run format