Skip to main content
Glama
AshwinSundar

Congress[.]gov MCP Server

by AshwinSundar

get_swagger

Access the OpenAPI specification to understand available endpoints and data structures for querying US Congressional information through the Congress.gov API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • server.py:22-25 (handler)
    The handler function for the 'get_swagger' tool. It fetches and returns the Swagger JSON specification from the Congress.gov API GitHub repository.
    @mcp.tool() async def get_swagger(): url = "https://raw.githubusercontent.com/LibraryOfCongress/api.congress.gov/refs/heads/main/Documentation/swagger.json" return requests.get(url).json()
  • server.py:22-22 (registration)
    The @mcp.tool() decorator registers the get_swagger function as an MCP tool.
    @mcp.tool()

Latest Blog Posts

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