Pk MCP Server

MCP server for Pakistani law: search and cite federal statutes and Supreme Court judgments.

Local serverstdioPython

What is the Pk MCP server?

MCP server for Pakistani law: search and cite federal statutes and Supreme Court judgments. That is what the pk mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

MCP server for Pakistani law: 967 federal statutes and 1,414 Supreme Court of Pakistan judgments, full text, with a strict citation contract on every response.

The tools it exposes

The server publishes 5 tools. What each one is for:

  • pk_search_laws — Keyword search over the 967 federal statutes (title-weighted). First call downloads the 47 MB corpus once, then serves from cache
  • pk_get_law — Full statute text by law_id (truncated at ~300,000 characters)
  • pk_case_search — Server-side full-text search over the Supreme Court judgments
  • pk_get_decision — One judgment's full text, by row_idx or registry case_id
  • pk_verify_citations — Anti-hallucination check: extracts Pakistani legal citations from any text and verifies each against the corpus

Getting it running

pk-eli-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Pk's toolset — pk_search_laws, pk_get_law, pk_case_search and 2 more — is a fair guide to whether it matches your workflow. It is maintained by matematicsolutions; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
pk_search_lawsKeyword search over the 967 federal statutes (title-weighted). First call downloads the 47 MB corpus once, then serves from cache.
pk_get_lawFull statute text by law_id (truncated at ~300,000 characters).
pk_case_searchServer-side full-text search over the Supreme Court judgments.
pk_get_decisionOne judgment's full text, by row_idx or registry case_id.
pk_verify_citationsAnti-hallucination check: extracts Pakistani legal citations from any text and verifies each against the corpus.

How to install the Pk MCP server

{
  "mcpServers": {
    "pk-eli": {
      "command": "uvx",
      "args": ["pk-eli-mcp"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Pk to pk search laws.
  • Use Pk to pk get law.
  • Use Pk to pk case search.

Frequently asked questions

It connects Pk to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (pk_search_laws, pk_get_law, pk_case_search, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Pk directly.