Government
Data source: Congress.gov, EUR-Lex, Finlex, Stortinget, Riksdagen
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/legislation/
claude_desktop_config.json
{
"mcpServers": {
"gnist-legislation": {
"url": "https://context.gnist.ai/mcp/legislation/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/legislation/" \
-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_legislation", "arguments": {"query": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/legislation/
4 endpoints available:
GET /rest/legislation/search_legislationGET /rest/legislation/get_recent_legislationGET /rest/legislation/list_legislation_sourcesGET /rest/legislation/report_feedback
Shell
curl "https://context.gnist.ai/rest/legislation/search_legislation?query=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/legislation/search_legislation",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"query": "example"
},
)
print(resp.json())
Command Line
Command
gc legislation
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (4)
search_legislationSearch legislation across US Congress, EU EUR-Lex, Finnish Finlex, Norwegian Stortinget, and Swedish Riksdagen.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search query — keywords, bill name, or topic. |
max_results | integer | optional | Maximum number of results per source. (default: 10) |
year | any | optional | Filter by year. |
jurisdiction | any | optional | Filter by jurisdiction: US, EU, FI, NO, or SE. Omit to search all. |
get_recent_legislationGet recent legislative activity across all jurisdictions.
| Parameter | Type | Required | Description |
|---|---|---|---|
max_results | integer | optional | Maximum results per source. (default: 10) |
jurisdiction | any | optional | Filter by jurisdiction: US, EU, FI, NO, or SE. Omit for all. |
list_legislation_sourcesList all registered legislative data sources and their status.
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") |