Skip to main content
Glama
AshwinSundar

Congress[.]gov MCP Server

by AshwinSundar

get_swagger

Retrieve the Swagger/OpenAPI specification for the Congress.gov MCP Server to understand available API endpoints and data structures.

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 from the Congress.gov API GitHub repository. The @mcp.tool() decorator registers it as an MCP tool.
    @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()

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