KSC.JUSNREM · Research platformLegislation as Code
Explore Legis-Intel
LEGIS-INTEL PAKISTAN · MCP CONNECTOR

Request pilot access or ask about setup →

Legis-Intel MCP.
Your evidence, connected.

Bring Pakistan’s source-linked legislation, reviewed case relationships and evidence records into the tools you already use.

One research service, multiple clients. Connect through Claude Code, Claude’s API, Grok’s API, VS Code, or another compatible MCP client. Each connection uses its own access key.

Hosted access is an operator-issued pilot. Paid subscriptions and self-service sign-in are not open. The public website remains available for reading and research. View planned membership.

WHY USE THE CONNECTOR?

Bring the evidence into the conversation.

MCP—the Model Context Protocol—is a standard way for an AI application to call an external service’s tools. The Legis-Intel Pakistan connector lets a compatible client retrieve our held legal records and mapped evidence during your research conversation. You can follow the returned links back to the reader.

Less manual copying

Ask your client to find a held instrument and retrieve a specific passage. Source and version references travel with the result.

Inspect the reasoning

Retrieve the passages behind a reviewed mapping, then ask your AI to explain the connection while retaining the source editions and qualifications.

See what is missing

Request coverage gaps or organise supplied evidence against a research checklist before deciding what further legal research is needed.

  1. You askA research question in a compatible AI client.
  2. The client calls Legis-Intel PakistanAn authorised, read-only tool retrieves held records.
  3. Evidence returnsPassages, source references and review limits accompany the result.
  4. You reviewOpen the sources and assess the AI’s explanation.

Three questions to try

  • “Find Health Care Commission legislation in the held collection. Show the source links and what is known about current force.”
  • “Find the Rules of Business and its reviewed judgment relationships. Retrieve the evidence for the Mustafa Impex Rule 16 mapping and explain the source-edition difference.”
  • “Show the gaps in the held rule collection. Which records have no reviewed judgment passage?”

These examples describe supported research workflows, not saved AI answers. The client must call the relevant tools and preserve their limitations.

Available in the pilot

Nine read-only tools for held-title search, draft-heading search, exact passage retrieval, reviewed relationships, research checklists and coverage gaps. Access uses an operator-issued key.

Still being developed

Self-service ChatGPT browser connection, account-linked sign-in, paid entitlements, comprehensive version comparison and executable legal outcomes. A second historical version is not currently held for comparison.

Planned membership

US$5 monthly or US$50 annually. Institutional licensing by quotation. Payments and paid activation remain coming soon; an AI provider’s own charges are separate.

Membership and institutional plans →

The connector gives the AI access to specific research evidence; it does not guarantee the AI’s interpretation or establish that a law is current. Check the returned sources before relying on an answer. Read the official MCP overview.

View pilot connection options → · Explore the Law as Code programme →

HOSTED MCP ENDPOINThttps://www.jusnrem.legal/mcp

Streamable HTTP · Bearer access key · Nine read-only research tools

This is a client connection address. Opening it in a browser without credentials returns an access error.

  1. Obtain an access key from the Legis-Intel Pakistan operator for your chosen client.
  2. Choose the setup below. Keep the key in a private environment variable, client secret prompt or protected token file.
  3. Connect and ask: “Find Health Care Commission legislation and show the original sources.”
  4. Check the cited text and its limitations before relying on a result.
Direct HTTP setup

Claude Code

Merge this server entry into your project’s .mcp.json. Set QANUN_ACCESS_TOKEN privately in the environment used to start Claude Code, then use /mcp to check the connection.

Download Claude Code configuration

View configuration
{
  "mcpServers": {
    "qanun-maps": {
      "type": "http",
      "url": "https://www.jusnrem.legal/mcp",
      "headers": {
        "Authorization": "Bearer ${QANUN_ACCESS_TOKEN}"
      }
    }
  }
}

Claude Code documentation

Direct HTTP setup

VS Code

Merge this into .vscode/mcp.json. VS Code will prompt for your Legis-Intel Pakistan key. Start the server from the MCP configuration and inspect its tools.

Download VS Code configuration

View configuration
{
  "inputs": [
    {
      "type": "promptString",
      "id": "qanun-token",
      "description": "Legis-Intel Pakistan access key",
      "password": true
    }
  ],
  "servers": {
    "qanun-maps": {
      "type": "http",
      "url": "https://www.jusnrem.legal/mcp",
      "headers": {
        "Authorization": "Bearer ${input:qanun-token}"
      }
    }
  }
}

VS Code documentation

API sample

Claude API

Use the Messages API MCP connector. The sample reads your model name, provider API key and Legis-Intel Pakistan key from environment variables and enables only legislation search initially.

Download Claude API Python sample

View configuration
# Python 3. Set ANTHROPIC_API_KEY, ANTHROPIC_MODEL and QANUN_ACCESS_TOKEN privately.
import json, os, urllib.request
payload = {
    "model": os.environ["ANTHROPIC_MODEL"], "max_tokens": 1200,
    "messages": [{"role": "user", "content": "Find Health Care Commission legislation. Preserve source links and coverage limitations."}],
    "mcp_servers": [{"type": "url", "name": "qanun_maps",
                     "url": "https://www.jusnrem.legal/mcp",
                     "authorization_token": os.environ["QANUN_ACCESS_TOKEN"]}],
    "tools": [{"type": "mcp_toolset", "mcp_server_name": "qanun_maps",
               "default_config": {"enabled": False},
               "configs": {"find_legislation": {"enabled": True}}}]
}
request = urllib.request.Request("https://api.anthropic.com/v1/messages",
    data=json.dumps(payload).encode(), headers={"Content-Type": "application/json",
    "x-api-key": os.environ["ANTHROPIC_API_KEY"], "anthropic-version": "2023-06-01",
    "anthropic-beta": "mcp-client-2025-11-20"})
with urllib.request.urlopen(request, timeout=90) as response:
    print(response.read().decode())

Claude API documentation

API sample

Grok API

Use xAI’s Responses API remote MCP tool. Set XAI_MODEL, XAI_API_KEY and QANUN_ACCESS_TOKEN privately before running the sample.

Download Grok API Python sample

View configuration
# Python 3. Set XAI_API_KEY, XAI_MODEL and QANUN_ACCESS_TOKEN privately.
import json, os, urllib.request
payload = {
    "model": os.environ["XAI_MODEL"],
    "input": "Find Health Care Commission legislation. Preserve source links and coverage limitations.",
    "tools": [{"type": "mcp", "server_label": "qanun_maps",
               "server_url": "https://www.jusnrem.legal/mcp",
               "headers": {"Authorization": "Bearer " + os.environ["QANUN_ACCESS_TOKEN"]},
               "allowed_tools": ["find_legislation"]}]
}
request = urllib.request.Request("https://api.x.ai/v1/responses",
    data=json.dumps(payload).encode(), headers={"Content-Type": "application/json",
    "Authorization": "Bearer " + os.environ["XAI_API_KEY"]})
with urllib.request.urlopen(request, timeout=90) as response:
    print(response.read().decode())

xAI remote MCP documentation

Local bridge available

Other MCP clients

For a client that launches stdio MCP servers, use Node.js 22 or later and the Legis-Intel Pakistan bridge. Replace both paths in the example. The private token file contains only your issued key.

Download the stdio bridge

Download stdio configuration

View configuration
{
  "mcpServers": {
    "qanun-maps": {
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/bridge.mjs"
      ],
      "env": {
        "QANUN_TOKEN_FILE": "/ABSOLUTE/PRIVATE/PATH/client.token"
      }
    }
  }
}

Clients with native Streamable HTTP and custom authorization headers can use the endpoint directly.

Sign-in integration pending

Browser chat connectors

ChatGPT and Claude browser-chat setup are not enabled by these access-key examples. OAuth sign-in and account-linked access are a separate release step. The Grok example is for its API, not a claim of a connector installed in grok.com.

Provider accounts have not been connected or charged by publishing these samples. API calls you run may incur charges under your provider plan.

Evidence travels with the answer.

The service searches held records, returns source and version references, retrieves reviewed relationships, and identifies evidence gaps. It does not determine current legal force or issue legal conclusions. Rule assessments remain UNDETERMINED as legal outcomes.

  • find_legislation
  • find_provisions
  • get_provision
  • find_cases
  • get_rule
  • get_mapping_evidence
  • compare_versions
  • coverage_gaps
  • assess_rule

Private manuscript chapters and unpublished authority mappings are outside this hosted corpus.

Connection help

401: the access key is missing, invalid, revoked or expired. 403: the browser origin is not permitted. 405: use a compatible MCP client rather than a browser GET request. A tool error may mean that the requested source version or passage is not held.

Use a separate key for each client. The operator can remove its grant and redeploy to revoke access. Pilot access has no billing or subscription quota attached.

Download the complete setup notes · Explore the legislation library

Law, understood
in its full context.

Evolutionary

Examine institutional development, adaptation and correction.

Strategic

Examine authority, purpose and the choices before institutions.

Anticipatory

Explore emerging consequences and the safeguards they require.