GnistAI GnistAI
Log in

US Congress

US congressional bill search, bill details (sponsors, subjects, summaries), member lookup, and recent legislation from Congress.gov — covers all bill types (HR, S, joint/concurrent resolutions) across all congresses.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Government

Data source: Congress.gov API (api.congress.gov)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/congress/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-congress": {
      "url": "https://context.gnist.ai/mcp/congress/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/congress/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_bills", "arguments": {"query": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/congress/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/congress/search_bills?query=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/congress/search_bills",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "query": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc congress

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

search_bills
Search US congressional bills by keyword.
ParameterTypeRequiredDescription
querystringrequired
congressanyoptional
bill_typeanyoptional
limitintegeroptional (default: 20)
get_bill
Get detailed information about a specific US congressional bill.
ParameterTypeRequiredDescription
congressintegerrequired
bill_typestringrequired
bill_numberstringrequired
get_recent_bills
Get recently updated bills from a specific congress.
ParameterTypeRequiredDescription
congressintegeroptional (default: 118)
limitintegeroptional (default: 20)
search_members
Search members of Congress with optional filters.
ParameterTypeRequiredDescription
stateanyoptional
partyanyoptional
chamberanyoptional
limitintegeroptional (default: 20)
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related