
Sri Lanka Tax (lk-tax)
io.github.ShalomHunukumburav0.1.0更新於 Oct 5, 2026
Exact, sourced Sri Lankan tax calculations: APIT, income tax, withholding tax, VAT and SSCL.
概覽
讓助理依據帶日期的斯里蘭卡稅務局規則計算 APIT、所得稅、扣繳稅、營業稅與 SSCL,而不是憑記憶報稅率。
- 功能
- 提供唯讀的斯里蘭卡稅務計算工具:calculate_salary_tax 計算每月 APIT,calculate_annual_income_tax 給出年度所得稅與稅級明細,calculate_withholding_tax 涵蓋多種付款類型,calculate_vat 用於加計或拆出營業稅,另有 check_vat_registration、calculate_sscl、check_sscl_registration、get_tax_rules 與 get_rule_history。每次計算都要傳入適用日期,因此採用當時生效的規則;結果包含摘要、精確的十進位金額,以及所用的規則版本與 IRD 來源。
- 適用情境
- 適合需要以精確、帶日期與出處的方式回答斯里蘭卡薪資稅、所得稅、營業稅或 SSCL 問題的情境,例如比較 2025 年 4 月稅級調整前後的 APIT。不適用於一次性給付、非居民員工、營業稅免稅分類,以及 2023 年之前的日期。
- 執行需求
- 以本機 stdio 程序執行;README 說明需要 uv,用 uvx lk-tax-mcp 啟動,或以 pip 安裝。未宣告任何驗證、環境變數或標頭,README 稱其不需要網路存取、檔案或憑證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Sri Lanka Tax (lk-tax),將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
lk-tax-mcp
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 Desktop: add to claude_desktop_config.json (Settings → Developer → Edit Config):
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
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
readOnlyHintandidempotentHint. 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
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
來源:README.md,提交 7688c98
工具
0版本歷史
1- v0.1.0最新Oct 5, 2026

