Skip to content
MCP server
Registry

Sri Lanka Tax (lk-tax) MCP Server

Exact, sourced Sri Lankan tax calculations: APIT, income tax, withholding tax, VAT and SSCL.

Sri Lanka Tax (lk-tax) scores 61 (Good), licensed MIT and written in Python. It installs as a local process. It declares 9 tools. Filed under AI and memory. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by shalomhunukumburaMITPython0 stars
Trust score
61Good
Trust score 61 of 100, Good

Good trust

61 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 61 comes from

22 + 15 + 0 + 10 + 4 + 10 = 61. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance15 / 20

How recently the repository saw a commit or release.

Maintenance: 15 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "shalomhunukumbura-lk-tax-mcp": {      "command": "uvx",      "args": [        "lk-tax-mcp"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools9Tool docs quality grade D

All capabilities

About

lk-tax-mcp

M8ven Score

Exact, sourced Sri Lankan tax calculations for AI assistants. An MCP server that lets Claude (or any MCP client) calculate APIT, income tax, withholding tax, VAT and SSCL from the official Inland Revenue Department rules for any date since 1 January 2023, instead of recalling rates from memory.

What it looks like

A real Claude Code session with only this server connected:

You: I'm paid Rs. 350,000 a month in Sri Lanka. How much APIT will my employer deduct this month, and how much was it before the April 2025 change?

Claude calls calculate_salary_tax twice, once for today and once for 31 March 2025, and answers (abridged):

This month: Rs. 32,500 APIT. The first Rs. 150,000/month is tax-free, then 6% / 18% / 24% / 30%. Source: IRD Notice PN/IT/2025-01 and APIT Tax Table No. 01 (2025/26). In force since 1 April 2025.

Before the change (to 31 March 2025): Rs. 52,500. Rs. 100,000/month tax-free, then 6% / 12% / 18% / 24% / 30% / 36%. Source: APIT Tax Table No. 01 (2023/24 & 2024/25).

So you now pay Rs. 20,000 less per month. This assumes it's your regular pay from your main job and you're a Sri Lankan tax resident; one-off bonuses or a second job use different tables.

The numbers come from the tool, the caveats come from the server's instructions, and every figure is traceable to an IRD document.

Why

Language models are confident about tax rates, and Sri Lanka's change often: in 2025 the salary tax bands were rebuilt, and in 2026 alone the SSCL threshold dropped, VAT on financial services rose to 20.5% and withholding tax was extended to more professions, all mid-year. A model recalling "the rate" is wrong for some dates and has no source to show. This server gives the model exact arithmetic over dated, sourced rules, built on lk-tax, which is tested against every row of the IRD's official APIT tables.

Install

Requires uv (uvx runs the server without a manual install).

Claude Code

claude mcp add lk-tax -- uvx lk-tax-mcp

Claude Desktop: add to claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "lk-tax": { "command": "uvx", "args": ["lk-tax-mcp"] }
  }
}

Any other MCP client: run uvx lk-tax-mcp as a stdio server, or pip install lk-tax-mcp and run lk-tax-mcp.

Tools

ToolAnswers
calculate_salary_taxAPIT to deduct from a month's salary (official Tax Table No. 01 amount)
calculate_annual_income_taxIncome tax for a year of assessment, with band breakdown
calculate_withholding_taxWHT on 11 payment types: thresholds, exemptions, grossing up
calculate_vatAdd VAT to a price or extract it from a VAT-inclusive price
check_vat_registrationDoes a business need to register for VAT?
calculate_ssclSSCL on turnover by activity (liable share × 2.5%)
check_sscl_registrationDoes a business need to register for SSCL?
get_tax_rulesRates, bands and thresholds in force on a date
get_rule_historyEvery change to a tax since 2023, with dates and sources

Every result includes a one-line summary, exact amounts as decimal strings, and the rule version used (effective_from, effective_to, IRD sources).

Design notes

  • Read-only and offline. Every tool is a pure calculation, annotated readOnlyHint and idempotentHint. No network access, no files, no credentials.
  • Dates are explicit. Each calculation takes the date it applies to (pay date, invoice date), so "what was it last year?" gets last year's rules.
  • Errors the model can act on. Bad input comes back as a tool error explaining what to fix (monthly_income must be a number, lk-tax covers 2023-01-01 onwards), not a generic failure.
  • Choices are enumerated. Payment types and SSCL activities are enums in the schema, each described, so the model picks a valid one.
  • Honest about gaps. The server instructions tell the model what isn't covered (lump sums, non-resident employees, VAT exemption classification, dates before 2023) and to say so rather than estimate.

Development

uv sync
uv run pytest                    # includes a test that launches the real command over stdio
uv run mcp dev src/lk_tax_mcp/server.py   # explore the tools in the MCP Inspector

Built with the MCP Python SDK v2.

Disclaimer

Not tax advice. Results link to the IRD sources they come from, so you can check them.

License

MIT

Frequently asked questions

What is Sri Lanka Tax (lk-tax) MCP Server?

Exact, sourced Sri Lankan tax calculations: APIT, income tax, withholding tax, VAT and SSCL.

How do I install Sri Lanka Tax (lk-tax) MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Sri Lanka Tax (lk-tax) MCP Server runs locally from the PyPI package lk-tax-mcp with the command uvx lk-tax-mcp.

Is Sri Lanka Tax (lk-tax) MCP Server free and open source?

Yes. Sri Lanka Tax (lk-tax) MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Sri Lanka Tax (lk-tax) MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Sri Lanka Tax (lk-tax) MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Sri Lanka Tax (lk-tax) MCP Server provide?

Sri Lanka Tax (lk-tax) MCP Server provides 9 tools, including calculate_annual_income_tax, calculate_salary_tax, calculate_sscl, and calculate_vat. See the full tool list for descriptions and parameters.

How is Sri Lanka Tax (lk-tax) MCP Server's trust score calculated?

Sri Lanka Tax (lk-tax) MCP Server scores 61 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server