MCP server exposing 5 tools for pakistan-law.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/pakistan-law/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
pk_search_acts — Search Pakistan's federal statute register (The Pakistan Code, Ministry of Law and Justice) by words in the Act title, optionally filtered by year and subject category (Criminal, Civil, Family, Labour, Banking, Evidence, ...). Returns act_id, title, category, citation (e.g. "XLV of 1860") and promulgation date. Title words only, e.g. "penal", "contract", "evidence".pk_get_section — Fetch the text of one section of a Pakistani federal Act, e.g. section 302 of the Pakistan Penal Code 1860 (punishment of qatl-i-amd) or section 497 CrPC. Give act (title words like "Penal Code") or act_id from pk_search_acts, and the section number. Read live from the Ministry of Law and Justice's published copy.pk_get_act — Overview of one Pakistani federal Act: page count, opening text (title, preamble) and the list of section headings, so you can pick a section for pk_get_section. Give act (title words) or act_id.pk_search_judgments — Search judgments of Pakistan's High Courts: Islamabad High Court, High Court of Sindh, Peshawar High Court and High Court of Balochistan (Lahore High Court returns an explicit unavailable result). Give court plus words from the headnote or party names, optionally year of decision and reported_only. Returns case title, case number, law-report citation (PLD, SCMR, PCrLJ, YLR, MLD and others), decision date, bench and the judgment link to read with pk_get_judgment. Example: bail before arrest at the Islamabad High Court.pk_get_judgment — Read the text of one Pakistani High Court judgment from the judgment_url returned by pk_search_judgments (Islamabad, Sindh, Peshawar or Balochistan). Returns extracted text in pages of max_chars with next_offset; a scanned judgment with no text layer returns found:false rather than an empty string.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/pakistan-law/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io