GnistAI GnistAI
Log in

Legislation

Search legislation across the US, EU, Finland, Norway, and Sweden from a single endpoint. Bills, regulations, directives, and parliamentary cases — one query covers five jurisdictions.

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

Data source: Congress.gov, EUR-Lex, Finlex, Stortinget, Riksdagen

MCP 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"}}}'

API REST API

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

4 endpoints available:

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())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc legislation

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

Install
pip install gnistai

Available Tools (4)

search_legislation
Search legislation across US Congress, EU EUR-Lex, Finnish Finlex, Norwegian Stortinget, and Swedish Riksdagen.
ParameterTypeRequiredDescription
querystringrequiredSearch query — keywords, bill name, or topic.
max_resultsintegeroptionalMaximum number of results per source. (default: 10)
yearanyoptionalFilter by year.
jurisdictionanyoptionalFilter by jurisdiction: US, EU, FI, NO, or SE. Omit to search all.
get_recent_legislation
Get recent legislative activity across all jurisdictions.
ParameterTypeRequiredDescription
max_resultsintegeroptionalMaximum results per source. (default: 10)
jurisdictionanyoptionalFilter by jurisdiction: US, EU, FI, NO, or SE. Omit for all.
list_legislation_sources
List all registered legislative data sources and their status.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related