Skip to main content
Glama

Congress[.]gov MCP Server

by AshwinSundar
MIT License
16
  • Apple

get_bills

Retrieve US congressional bills by congress, type, number, or date range to access legislative information directly from Congress.gov.

Instructions

Retrieve a list of bills. Full documentation for this endpoint -> https://github.com/LibraryOfCongress/api.congress.gov/blob/main/Documentation/BillEndpoint.md

Args: congress: Congress number (e.g., 118 for 118th Congress) bill_type: Type of bill - hr: House of Representatives Bill - s: Senate Bill - hjres: House Joint Resolution - sjres: Senate Joint Resolution - hconres: House Concurrent Resolution - sconres: Senate Concurrent Resolution - hres: House Simple Resolution - sres: Senate Simple Resolution bill_number: Specific bill number (requires congress and bill_type) offset: Starting record (default 0) limit: Maximum records to return (max 250, default 20) from_datetime: Start timestamp (YYYY-MM-DDTHH:MM:SSZ format) to_datetime: End timestamp (YYYY-MM-DDTHH:MM:SSZ format) sort: Sort order ('updateDate+asc' or 'updateDate+desc')

Returns: dict: Bill data from Congress.gov API

Input Schema

NameRequiredDescriptionDefault
bill_numberNo
bill_typeNo
congressNo
from_datetimeNo
limitNo
offsetNo
sortNoupdateDate+desc
to_datetimeNo

Input Schema (JSON Schema)

{ "properties": { "bill_number": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Bill Number" }, "bill_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Bill Type" }, "congress": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Congress" }, "from_datetime": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "From Datetime" }, "limit": { "default": 20, "title": "Limit", "type": "integer" }, "offset": { "default": 0, "title": "Offset", "type": "integer" }, "sort": { "default": "updateDate+desc", "title": "Sort", "type": "string" }, "to_datetime": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "To Datetime" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AshwinSundar/congress_gov_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server