Skip to main content
Glama
pakistan-mcp

pakistan-mcp

by mubasher1111

πŸ‡΅πŸ‡° pakistan-mcp

Give Claude, Cursor and other AI assistants accurate Pakistan tools. An MCP server for FBR salary tax, CNIC/phone/IBAN/NTN checks, PKR lakh/crore formatting, Roman Urdu β†’ Urdu, and Urdu & Hijri dates.

AI models often get Pakistani tax slabs wrong, mix up lakh and million, and guess at Urdu numbers. With this server they call real, tested code instead of guessing.

Tests npm License MCP

πŸ“– Full guide Β· Built on pakistan-toolkit and urdu-toolkit


What you can ask

Once it's connected, just ask your AI assistant in plain words (English, Urdu or Roman Urdu):

  • "Meri tankhwah 2 lakh mahana hai, 2026-27 mein kitna tax katega?"

  • "How much less tax will I pay this year than last year on Rs 3 lakh a month?"

  • "Is this IBAN correct? PK36 SCBL 0000 0011 2345 6702"

  • "Write Rs 25,50,000 in Urdu words for a cheque."

  • "Convert this to Urdu script: aap ka order kal tak pohanch jayega"

  • "Aaj Hijri tareekh kya hai?"

  • "List the cities in Khyber Pakhtunkhwa with Urdu names."

Related MCP server: DI Doctor

Tools

Tool

What it does

calculate_salary_tax

FBR salaried income tax for FY2024-25, FY2025-26, FY2026-27: monthly/annual tax, take-home, rates, surcharge

compare_salary_tax

Same salary across two tax years: how much more or less you pay

validate_cnic

CNIC format, region, gender digit, masked form

validate_phone

Mobile number in any format β†’ E.164, local, WhatsApp link, original network

validate_iban

Full mod-97 IBAN check and bank name

validate_ntn

NTN format (classic or CNIC-based)

format_pkr

Rs 12,34,567 Β· "12.35 lakh" Β· amount in English and Urdu words

amount_in_words

Any number or amount in English or Urdu words

roman_to_urdu

Roman Urdu β†’ Urdu script

urdu_date

A date in Urdu and its Hijri date

list_cities

Provinces and major cities, with Urdu names

find_bank

Pakistani banks by IBAN code or name

All tools are read-only, run locally on your computer, and need no API key or internet. Nothing you ask is sent anywhere by this server.

Setup

You need Node.js 20 or newer.

Claude Desktop

  1. Open Claude Desktop β†’ Settings β†’ Developer β†’ Edit Config.

  2. Add this to claude_desktop_config.json:

{
  "mcpServers": {
    "pakistan": {
      "command": "npx",
      "args": ["-y", "pakistan-mcp"]
    }
  }
}
  1. Restart Claude Desktop. You'll see the Pakistan tools in the tools menu.

Claude Code

claude mcp add pakistan -- npx -y pakistan-mcp

Cursor

Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "pakistan": {
      "command": "npx",
      "args": ["-y", "pakistan-mcp"]
    }
  }
}

VS Code (GitHub Copilot)

Add to .vscode/mcp.json:

{
  "servers": {
    "pakistan": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "pakistan-mcp"]
    }
  }
}

Any other MCP client

Run npx -y pakistan-mcp as a stdio server. It supports MCP protocol versions from 2024-11-05 to the latest.

Use it in your own code

You can also create the server in your own Node.js app, for example to serve it over HTTP:

import { createServer } from 'pakistan-mcp';

const server = createServer(); // an McpServer with all 12 tools registered

If you only need the functions, not MCP, use pakistan-toolkit and urdu-toolkit directly.

Accuracy

  • Tax uses the official FBR salaried slabs, including the FY2026-27 slabs from the Finance Act 2026. It is an estimate for salaried income only and is not tax advice: exemptions, credits and other income are not included.

  • CNIC, NTN, phone and IBAN checks verify format and checksum only. They don't contact NADRA, FBR, PTA or any bank.

  • Hijri dates use the Umm al-Qura calendar. Pakistan follows local moon sighting, so the official date can differ by one day.

  • Roman Urdu conversion is reliable for common words. Rare words are converted phonetically and may need correction.

Development

git clone https://github.com/mubasher1111/pakistan-mcp.git
cd pakistan-mcp
npm install
npm test       # starts the server over stdio and calls every tool
npm start      # run the server

The tests talk to the real server over stdio, exactly as Claude Desktop does.

License

MIT. Made by ZexCart. More free tools: zexcart.site/dev-tools.

If this is useful, please ⭐ star the repo.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to work with Iran-specific data and Persian/RTL frontends fully offline, covering Jalali date conversion, national ID, card, Sheba and mobile validation, Persian text and number formatting, bank and operator lookup, VAT and price handling, plus RTL auditing and CSS/Tailwind conversion. All tools run locally with no API keys.
      56
      53 npm
      5
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to validate Pakistan FBR Digital Invoicing invoice payloads offline, safely interpret FBR responses, explain error codes in plain English, list sandbox scenarios, and produce simulated sandbox responses. It is read-only and makes no network calls, so integration checks stay on the local machine.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables Claude to deterministically normalize Pakistani phone numbers, convert between Latin and Urdu digit scripts, compute Hijri dates, and format rupee amounts in lakh/crore notation with Urdu word forms. All helpers run locally with no network access or stored data.
      5
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to run accurate, offline Bangladesh calculations in English or Bangla β€” income tax with rebates and minimum tax, taka amounts in words for cheques and invoices, mobile number validation and operator detection, loan EMI, DPS/FDR savings growth, safe maths expressions, and digit conversion. Every tool is a local read-only computation, requiring no network access or API keys.
      7
      MIT