Government
Data source: Congress.gov API (api.congress.gov)
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/congress/
5 endpoints available:
GET /rest/congress/search_billsGET /rest/congress/get_billGET /rest/congress/get_recent_billsGET /rest/congress/search_membersGET /rest/congress/report_feedback
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())
Command Line
Command
gc congress
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
search_billsSearch US congressional bills by keyword.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | |
congress | any | optional | |
bill_type | any | optional | |
limit | integer | optional | (default: 20) |
get_billGet detailed information about a specific US congressional bill.
| Parameter | Type | Required | Description |
|---|---|---|---|
congress | integer | required | |
bill_type | string | required | |
bill_number | string | required |
get_recent_billsGet recently updated bills from a specific congress.
| Parameter | Type | Required | Description |
|---|---|---|---|
congress | integer | optional | (default: 118) |
limit | integer | optional | (default: 20) |
search_membersSearch members of Congress with optional filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
state | any | optional | |
party | any | optional | |
chamber | any | optional | |
limit | integer | optional | (default: 20) |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |