Skip to content
Projects

UpstageAI/korean-tax-calc-mcp

View on GitHub

About

Korean tax calculator MCP server: corporate, income and VAT tax, non-resident withholding, foreign worker flat tax, expat cost recharge, foreign subsidiary dividends, branch and exit tax, transfer pricing. 139 tools with statute citations. | 한국 세금 계산·세무조정 MCP

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+1
in 15 days
+3
in 1 month
+6

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README-EN.md

Original

korean-tax-calc-mcp — Korea Tax Calculator MCP

Demo: a folder of closing files (ledgers, registers, contracts) → corporate tax adjustments with cross-border review → VAT return → withholding tax return, a review workbook with one statutory form per sheet

Video: the Claude app with this server and its companion korean-tax-mcp. Three one-line requests on a folder of closing files produce corporate tax adjustments, a VAT return and a withholding tax return as statutory-form workbooks (2026-11-13; the company, people and amounts are fictional).

PyPI MCP Registry License: MIT Built with Upstage Solar Pro 4 · 한국어

Korean tax calculations for AI agents — code, not guesses.

AI models often get tax arithmetic wrong. This server computes Korean corporate, income, VAT, withholding, international, inheritance and gift tax — and the tax adjustments behind them — in code, and attaches the statutory basis to every result. It uses rate and limit tables for 2016–2026 and stops if no table is available for the requested year. It covers foreign companies, expats and Korean subsidiaries (foreign worker flat tax, non-resident withholding, branch profits tax, exit tax and more). Ask in English: every tool description starts with an English line, and find_tool takes English queries. Results can be exported to a review workbook laid out as the statutory forms.

Not tax advice. Results show sources and computations for review; confirm filings and appeals with a tax professional. Only the 3 PDF tools and the optional revenue-row classification in the Korean comparable candidates tool use generative AI, and their results say so — full notices

Install

claude mcp add korean-tax-calc -- uvx korean-tax-calc-mcp
{
  "mcpServers": {
    "korean-tax-calc": { "command": "uvx", "args": ["korean-tax-calc-mcp"] },
    "korean-tax":      { "command": "uvx", "args": ["korean-tax-mcp"], "env": { "LAW_OC": "law.go.kr OC (free, optional)" } }
  }
}

No key needed. The second entry is the companion server korean-tax-mcp for statutes and rulings; the first line alone is enough if you only need calculations.

How it works

flowchart LR
  Q["Question in English or Korean"] --> F["find_tool<br/>plain-language or English search"]
  D["Closing files<br/>ledgers, registers, contracts"] --> M
  F --> M["AI<br/>maps the facts to tool inputs"]
  M --> V["Check input<br/>reject unknown or missing fields"]
  V --> T["Values for that year<br/>rates, limits, credit rates 2016-2026"]
  T --> E["Calculation and adjustment tools<br/>corporate, income, VAT, withholding<br/>cross-border, inheritance and gift"]
  T --> P["Foreign workers and foreign companies<br/>flat tax, foreign expert reduction<br/>non-resident withholding, inheritance and gift<br/>branch profits tax, exit tax"]
  E --> R["Result<br/>amounts, steps<br/>statute citations, limits"]
  P --> R
  R --> X["Aggregation and review workbook<br/>statutory forms, basis"]
  T -.->|no table for the year| N["Stop<br/>no guessed calculation"]
  M -.->|requirements, treaty rates| K["korean-tax-mcp<br/>statutes, rulings, requirement guides, PE test"]
  R -.->|statute check| K
  F -.->|no calculator for the question| K

Rounding — tax bases drop fractions of a won; computed tax figures (calculated tax, credits, reductions, penalties) are kept in whole won, truncated only at the final amount where no rule says otherwise. Amounts actually paid to or refunded by the Treasury or a local government drop anything under 10 won and are shown separately as 납부할 금액(10원 미만 버림) (or 환급받을 금액(10원 미만 버림) for refund-only results) — Management of the National Funds Act (국고금 관리법) Article 47; local taxes follow it through 지방세기본법 Article 59. Withholding tax is truncated on the total for one payee and one payment (withholding_tax and nonresident_withholding return that 10-won figure directly).

Try asking

Question Tools
"Corporate tax on a 500M KRW tax base for fiscal year 2025?" corporate_tax
"Shareholder loan of 200M on Mar 1, 100M repaid Sep 30 — deemed interest?" deemed_interest
"Under-reported 10M KRW of tax, paying on Oct 7 — what are the penalties?" underreporting_penalty · late_payment_penalty
"Here is our closing folder — do the FY2025 corporate tax adjustments as statutory-form Excel, including transactions with our overseas subsidiary" adjustment tools → income_adjustment_total → export_workbook
"Our Korean subsidiary pays a USD 100,000 royalty to its US parent. How much Korean withholding tax applies, and what does the treaty change?" nonresident_withholding (treaty cap: korean-tax-mcp treaty_withholding_rates)
"We seconded an engineer to our Vietnam subsidiary for 2026. How much should we recharge with a 5% markup, and how much of the salary is deductible in Korea?" expat_cost_recharge
"Our Korean subsidiary received a dividend from its 30%-owned Singapore company in 2026. Exclusion or foreign tax credit?" foreign_subsidiary_dividend
"I'm a foreign employee with KRW 80 million salary in 2025. Is the 19% flat tax option cheaper than the regular rates?" foreign_worker_flat_tax

If you do not know which tool to use, ask find_tool in plain words.

Links: Korean README · Use cases · Site · Korean–English glossary · llms.txt · Changelog · companions korean-tax-mcp (legal basis) · korean-report-hwpx (government documents as HWPX)


Install in detail — companion server, new releases, optional keys

korean-tax-mcp is the companion server for statutes, addenda, rulings and cases. With both installed, "find the basis → compute → fill the form" runs in one conversation, and this server's find_tool returns ready-to-call statute lookups for questions it has no calculator for (rent tax credit, pension-account credit, stock gains …).

To pick up a new release right away: uvx --refresh korean-tax-calc-mcp (uvx caches the downloaded version). Pin with uvx [email protected].

Optional keys: LAW_OC (law.go.kr lookups in two audit tools), UPSTAGE_API_KEY (PDF table extraction, filing revenue-row classification), VWORLD_KEY (official property price lookup), DART_API_KEY (Korean comparable candidates — your own free key from OpenDART; the terms allow only the key holder to use it; without it only that tool is off).

More example questions
  • "Retirement income tax on 100M KRW after 15 years of service"
  • "Here are five entertainment-expense ledger lines — give me the FY2025 adjustments"
  • "Review our second-half VAT return and give it to me in the statutory return form"
  • "Make this month's withholding tax return from these payroll and payment records"
  • "Our US sales subsidiary has a 7.5% operating margin; here are the margins of 8 comparables — is it within the arm's length range?"
How it works in detail — 5 steps
  1. Check input — if a field is unknown or missing, it does not calculate and says what is needed.
  2. Values for that year — rates and limits come from year tables in code (corporate and income tax 2016–2026, VAT 2016 H1–2026 H2); item-level criteria come from facts_vocab.json (111 items with periods and statutory basis). The tables were checked against each year's statute and addenda.
  3. Calculate — in the order of the statute, e.g. tax base → that year's brackets → tax.
  4. Adjustment items — adjustment tools return the adjustment type and amount, the income disposition (reserve, bonus, other outflow; provisional reserve for cross-border adjustments) and the statutory basis. These items go straight into the aggregation tools.
  5. Aggregation and forms — income_adjustment_total for corporate tax, vat_return_general for VAT and withholding_return for withholding tax collect the figures in form order, and export_workbook re-runs the same calls to build a review workbook.

Requirements and year-specific judgments (credit eligibility, arm's-length methods, permanent establishment) belong to the companion server korean-tax-mcp. This server computes from amounts that meet the requirements and points to the statute check in its output.

Tools other than the 3 PDF tools and the Korean comparable candidates tool run in code without generative AI; two of them (price lookups) only fetch public data from KRX and VWORLD. The 3 PDF tools and the candidates tool use Upstage only when UPSTAGE_API_KEY is set (the candidates tool fetches OpenDART filings and, without the key, classifies revenue rows by name rules).

How the tools chain by tax type

Tools work on their own, but each one's output is shaped to be the next one's input.

flowchart TD
  L["Ledger and facts<br/>item, amount, evidence"] --> A["Item adjustments<br/>entertainment, depreciation, bad debts<br/>deemed interest, interest, cars"]
  L --> I["Cross-border<br/>arm's-length range, loan interest, secondees<br/>foreign dividends, CFC"]
  A -->|adjustment items| T["Adjusted income<br/>income_adjustment_total"]
  I -->|adjustment items| T
  T -->|base income| D["Donation limit<br/>donation_limit"]
  D -->|excess| T
  T --> B["Tax base<br/>loss carryforward limit"]
  B --> C["Tax<br/>corporate_tax"]
  C --> G["Credits, reductions, minimum tax<br/>employment, investment, R and D, startup"]
  G --> X["Statutory-form workbook<br/>export_workbook"]
  V1["VAT parts<br/>tax base, deemed supply, input tax, FX, reverse charge"] --> V2["VAT return<br/>vat_return_general"] --> X
  W1["Withholding<br/>residents, non-residents, wages, daily workers"] --> W2["Withholding return<br/>withholding_return"] --> X
  P["Foreign workers and foreign companies<br/>flat tax, foreign expert reduction<br/>non-resident gains withholding, inheritance and gift<br/>branch profits tax, exit tax"] -->|calculation sheet| X
Using the three servers together
flowchart LR
  U["Tax question<br/>English or Korean"] --> L["korean-tax-mcp<br/>basis: statutes, rulings, treaties, requirements, PE"]
  U --> F["find_tool<br/>korean-tax-calc-mcp"]
  F -->|matching calculator| C
  F -.->|no calculator: ready statute lookup| L
  L -->|"qualifying amounts, treaty caps"| C["korean-tax-calc-mcp<br/>calculation, adjustments, statutory forms"]
  C -.->|"statute check pointers"| L
  C --> X["Review workbook"]
  L --> H["korean-report-hwpx<br/>review memo as HWPX"]
  C --> H

korean-tax-mcp finds the legal basis, this server computes the amounts, adjustments and statutory-form workbook, and korean-report-hwpx turns the review into a Korean government-format (HWPX) report.

For foreign companies, expats and Korean subsidiaries

Ask in English, get Korean statute-backed answers. Every tool description starts with an English line followed by the Korean term (for example Entertainment expense limit and non-deductible excess for corporate tax (기업업무추진비 한도).), and find_tool accepts English queries such as "late payment penalty" or "transfer pricing arm's length range". The English terms follow the official English translations of Korean tax laws where they exist (glossary); results cite the Korean statute articles. Worked examples with the companion server: use cases.

Question Tool
Is this person a Korean tax resident? residency_check · residency_report in the companion korean-tax-mcp
Treaty withholding rate for a country treaty_withholding_rates · tax_treaty in korean-tax-mcp
Withholding on interest, dividends, royalties or services paid to a nonresident or foreign company nonresident_withholding
Reverse-charge VAT on services bought from a foreign business vat_reverse_charge
Interest on loans from a foreign parent beyond the debt-equity limit thin_capitalization
Arm's length range, comparable screening, Korean comparable candidates and profile comparison, international transaction statement arm_length_range · tp_comparable_screen · kr_comparable_candidates · kr_comparable_profile_compare · ksic_lookup · international_transaction_statement
Foreign tax credit (company / individual) foreign_tax_credit · individual_foreign_tax_credit
Dividends from a foreign subsidiary — exclusion vs. credit, including the 100% exclusion for dividends received in 2026 (RSTA Art. 23-2) foreign_subsidiary_dividend
Seconded employees — recharge with arm's length markup, deduction, overseas work exemption expat_cost_recharge
CFC rules for low-tax subsidiaries cfc_deemed_dividend · cfc_actual_dividend · cfc_share_disposal
Overseas subsidiary reporting, outbound investment FX reporting, overseas financial accounts overseas_subsidiary_statement · foreign_exchange_reporting · overseas_account_reporting
Foreign worker: 19% flat tax option vs regular progressive tax; foreign engineer/researcher reduction foreign_worker_flat_tax · foreign_expert_income_reduction
Nonresident selling Korean real estate or shares — withholding; inheritance/gift tax for nonresidents nonresident_capital_gains_withholding · nonresident_inheritance_gift
Foreign company with a Korean branch — branch profits tax; Korean PE test branch_profits_tax · permanent_establishment_guide (korean-tax-mcp)
Resident major shareholder emigrating — departure (exit) tax emigration_exit_tax
Statutory-form workbook or check sheet in English for a head-office tax team or a foreign accountant — labels as "English (Korean)" export_workbook / verify_workbook with lang="en"
Check the amount cells of a workings or report workbook you built yourself against the calculation tools, and list the amounts not checked verify_workbook

The example questions in "Try asking" above (royalty to a US parent, secondee recharge, Singapore dividend, flat tax) all use these tools.

Excel — checking a workbook you built, and the statutory-form workbook (sheets and forms)

Formula cells also carry their calculated values, so the numbers show in phone viewers and chat or mail previews that do not recalculate formulas (Excel recalculates from the formulas on open). Re-saving the file with openpyxl or similar drops those values, so to change wording change the inputs (labels, scenarios, sources, issues, review_notes) and call the tool again; if the file was re-saved, running verify_workbook on it fills the values back in. labels is a table {original label: text to show}; with lang="en" it prints "text (Korean original)" and is the way to give English to labels the glossary does not cover (listed in the result under 번역_없음).

Workings and report workbooks are built by the AI itself — layout, sheets and names are free, organised around the reader's questions with only the lines that matter. Every amount comes from a calculation tool call, and after saving, verify_workbook checks the amount cells. Amounts that were not checked are disclosed to the user.

  • verify_workbook(path, checks, auto) — every calculation result carries a short 호출_id (call id, e.g. c7). A check of {cell: "Sheet!B9", call: "c7"} compares the cell with that call's result (without key it finds the result key holding the same value; if none, it reports the nearest key and the difference). A check with only cell, or auto=true, looks for the same value across all recorded calls — shown and counted separately as "auto (same value)" because equal numbers can coincide. Call ids live only while the server process runs (the latest 300 calls); without a record, check with {cell, tool, args}.
  • It returns match / mismatch (both values and the difference), the amounts no check covers and a few side checks. The copy gets one 'Tool check' sheet: a one-line summary, the check table (basis shown as a number, each basis text once below the table) and the unchecked amounts as one line per sheet. The original is untouched; formula cells in the copy carry values.
  • export_workbook builds Korean statutory return forms (별지 서식) in Excel — filing forms with fixed box numbers and wording. It is not needed for a general workings workbook. Its optional inputs (scenarios, sources, issues, actions, key_figures, extra_sheets, labels, detail) remain for when a standard-layout workings file is wanted.

With the optional inputs (any of scenarios, sources, issues, actions, key_figures) the Summary sheet fits one screen: a key-figure table (item / amount / link to where it is worked out / note, totals in bold on yellow), the actions and deadlines table, one line counting the issues and the colour key. Notes about the supporting tabs and detail are not printed on the sheet; they come back in the result (시트_안내, 서식_안내). The table below lists the sheets made without those optional inputs.

Sheet Content
Summary tax summary; each adjustment with type, amount, disposition, statutory basis and source sheet; key values per call; review notes passed in review_notes (data mismatches, assumptions, open issues)
List source of each form, tools without a form template, sheet map per call
Statutory forms the forms below. Amount cells are formulas pointing to named inputs or earlier cells, with a match / check column against the tool value on each line
Calculation N one sheet per tool call — result, steps, judgments, basis
Inputs the named input values the form formulas use
Judgments conclusion, amount, statutory basis and reason per item

Pass any of scenarios, sources, issues, actions or key_figures to get a combined workings set (without them the layout above is unchanged). By default it is the front sheets below plus one 'Calc detail' sheet; choose the back sheets with detail.

Sheet Contents
Summary one screen — key-figure table (item / amount as a formula on the scenario sheet / link to where it is worked out / note, totals highlighted), actions and deadlines (actions), issue count, colour key. Choose the rows with key_figures; by default the result rows of each block's recommended column
Inputs input values and statutory rates in one place, each with a source column (document or article)
Scenario sheets calculations side by side (for example A as contracted / B alternative) with a basis / note column; formulas on the input cells, checked against the tool values at the end of each block
Free-form sheets (extra_sheets) tables that are not tool calculations, as given — header on row 4, first row 5. Only same-sheet formulas and links to tool results ({from_call, from_row}) are accepted; each sheet is marked "not verified by the calculation tools"
Issues Log number, issue, finding, risk, action — shown exactly as you wrote them (the tool does not assess issues)
Calc detail tool results and basis for every calculation, stacked on one sheet
detail Back sheets
compact (default) one 'Calc detail' sheet; if statutory forms exist, the Summary ends with a one-line pointer
forms 'Calc detail' plus the statutory form sheets
full statutory forms, a 'Calc N' sheet per calculation, call inputs, judgments and the sheet list

Colour key: blue = input, green = link to another sheet, black = formula, yellow = key result or assumption.

Tax Forms
Corporate tax Forms 3, 4, 8(a), 15 (with disposition codes), 16-2, 20(1)(2), 21, 23(a)(b), 26(a)(b), 29, 32, 33, 34, 50(b) of the Corporate Tax Act Enforcement Rule
VAT Form 21 return page 1 lines 1–30 (the form edition of that year for 2016–2024 periods and the 2025 first-period preliminary return) and page 4 penalty schedule, Form 22, Form 15, Form 19(1), Form 25, and calculation sheets for common input tax and bundled supply (no statutory form)
Withholding withholding tax return (Income Tax Act Enforcement Rule Form 21) page 1, Form 23(1) interest and dividend statement, Form 23(5) non-resident statement
International tax Adjustment of International Taxes Act Enforcement Rule Forms 16(a) (international transactions), 20 (transfer-pricing method report), 30(a) (CFC retained earnings), 31(a)(b)(c) (CFC inclusion test), 32(a)(b) (scope test), 47 (overseas subsidiary statement), 48 (financial status) — fiscal years from 2021. Fiscal years 2016–2020 use the form edition of that year: international transaction statement (former Form 8(a), 2016/2017/2018 editions, and Form 16(a) 2021 edition — one sheet per foreign related party), transfer-pricing method report (former Form 1-3, 2015/2020 editions, and Form 20 2021 edition), overseas subsidiary statement and financial status (former Corporate Tax Act Enforcement Rule Forms 81 and 82, and Forms 47 and 48 2021 edition)
Income, capital gains, gift Form 40(1) schedules for interest, dividend, wage, pension and other income; Form 84 capital gains tax calculation and Schedule 1; gift tax Form 10

With lang="en" the sheet names, summary labels, table headers and result keys are written as "English (Korean)" — for example "Tax base (과세표준)" — using the glossary. A Korean label with no glossary entry is left as it is and listed under "Untranslated labels (번역 없음)" on the Summary sheet and in the result's warnings; statutory form sheets stay in Korean with a one-line English description each; tool notes (conclusions, reasons, cautions, limitations) are not machine-translated and stay in Korean under "Notes (Korean original)". The statutory basis returned by the tools is shown as an English citation by rule: the official English title of the statute (Korea Ministry of Government Legislation) with the Korean name on first mention, and article numbers as "Art. 98(1)6" — for example "Corporate Tax Act (법인세법) Art. 98(1)6". Basis phrases are put in English only when the glossary has the whole phrase; statutes with no official English title and phrases with no glossary entry stay in Korean and are returned in 번역_없음 (pass them in labels and call again). The "Tool check" sheet of verify_workbook(lang="en") writes result keys and the basis the same way and takes labels too. Numbers and formulas are the same as in the Korean workbook.

Form templates were built by checking cell layout against the official form PDFs on law.go.kr. Some pages and cells are not carried over (personal details, sub-schedules); the List sheet says which. The workbook is a reference for review, not a filed return.

All tools

Click a group to expand its tools.

Corporate tax (21)
Tool What it does
corporate_tax tax
entertainment_limit entertainment limit
deemed_interest deemed interest
unfair_transaction unfair transaction test
loss_carryforward_limit loss carryforward limit
nonbusiness_interest_disallowance non-business interest (advance exclusions, day-balances, ordering)
business_car_expense company cars
donation_limit donation limit
nonprofit_reserve_limit nonprofit reserve limit for inherent purpose business (Article 29)
bad_debt_allowance bad debt allowance
missing_receipt_disallowance missing receipts
dividend_received_deduction dividends received deduction
tax_adjustment_schedule Multi-year tax adjustment schedule — book income and adjustments by year → taxable income, loss carryforward, tax base, tax, reserve balances by item
loss_carryback_refund Loss carryback refund for SMEs — refund of prior-year corporate tax and remaining loss to carry forward (CITA art.72)
qualified_merger_asset_adjustment Qualified merger asset adjustment account — per acquired asset, the adjustment account (fair value less the merged company's tax basis) and the adjustment for amounts booked away from fair value, with dispositions (CITA art.44-3(1), Decree art.80-4(1))
loss_carryforward_ledger Multi-year loss carryforward ledger — balance by year of origin, annual deduction and tax base, expiry (CITA art.13(1), Decree art.10(2))
provision_reserve_ledger Multi-year tax adjustments for provisions (loyalty points, warranties) — add-back on accrual, deduction on use, reversal on expiry, reserve balance (CITA art.40)
asset_grant_reserve asset grant reserve
corporate_deemed_rent_income deemed rent income on deposits
liquidation_income liquidation income
disaster_loss_credit disaster loss credit
International tax and cross-border (21)
Tool What it does
foreign_tax_credit foreign tax credit
branch_profits_tax branch profits tax on a foreign corporation's Korean PE (CITA Art. 96)
emigration_exit_tax departure tax on a resident major shareholder's Korean shares (ITA Arts. 118-9 to 118-18)
thin_capitalization thin capitalization
arm_length_range Arm's length range and adjustment — interquartile/full range, median, whether the tested value is inside, adjustment amount and direction (ITA Decree art.15(5)(6)). Whether the tested party is domestic or foreign is required. Quartile method: Korean NTS basic ruling 8-15…1 by default (positions (n+2)/4 and (3n+2)/4), with Excel QUARTILE.INC, EXC or the US definition (26 CFR §1.482-1(e)(2)(iii)(C)) as options and a three-method sensitivity in the output
tp_comparable_screen Comparable company screening — applies independence, data, industry, size, loss, R&D, advertising, related-party revenue, segment and special-situation screens plus human decisions (reason required) to a candidate list exported from a paid database (CSV/Excel); returns a per-company rejection matrix, final set, multi-year weighted PLI, interquartile range, sensitivity to screen choices and report annex tables. Statutory (50% related-party) vs. practice thresholds are labelled. Persistent losses go to human review by default (auto-exclusion optional), comparables may differ by year (all-years requirement optional), year-by-year quartile ranges alongside the multi-year range, and before/after ranges when the optional working-capital adjustment is on. Practice screens (independence %, R&D/advertising caps, loss years, outlier multiple) apply only when passed in screens; otherwise only the statutory 50% and two-or-more tests
ksic_lookup Korean Standard Industrial Classification (KSIC, 11th revision) lookup — industry name ↔ code, parent levels and sub-classes, 10th-revision codes mapped to the 11th. Use it to pick industry codes for the Korean comparable candidates tool. Extracted from the Statistics Korea notice's explanatory book, with item counts per level checked against the notice
kr_comparable_candidates Korean comparable candidates — collects candidates by industry code from OpenDART filings (financial API for listed companies, audit report originals for unlisted ones) and returns yearly financials plus a candidate profile (6-way revenue mix, inventory, raw material inventory, tangible/intangible assets, R&D, advertising, working capital, related-party revenue, largest shareholder) with evidence (filing number, account) and a status for every value (found / absent / not found). Candidate rows use the tp_comparable_screen input columns. Needs your own DART_API_KEY
kr_comparable_profile_compare Korean comparable profile comparison — compares the tested party's ratio profile with each candidate profile item by item (revenue mix, inventory, tangible assets, R&D, advertising) as close / different / unknown, splits candidates into include / human review / exclude, and returns the review list (reasons, evidence) and draft tp_comparable_screen manual_decisions for a person to confirm. Thresholds are adjustable defaults. Revenue mix is the core item; one of inventory or tangible assets differing goes to human review, both (or raw-material inventory as well) to exclusion candidates; advertising, SG&A ratio and product-keyword mismatches, related-party sales or purchases of 20%+, de facto control sentences (not a statutory related-party finding) and persistent losses go to human review; reason codes and a statutory / practice / own-rule label on every threshold. No practice thresholds are built in — they come in as rules (values and sources from the companion korean-tax-mcp transfer_pricing_guide); without them only statutory tests apply
international_transaction_statement International transaction statement (Enforcement Rule Form 16(A)) — per-related-party sales/purchase totals, loan balance × days and average, filing obligation and deadline (Act art. 16(2), Decree art. 36), accompanying forms
foreign_subsidiary_dividend foreign subsidiary dividend — exclusion vs foreign tax credit
foreign_subsidiary_liquidation Liquidation of a foreign subsidiary — deemed dividend or liquidation loss and the fiscal year of deduction (CITA art.16(1)4)
cfc_deemed_dividend CFC deemed dividend on retained earnings — low-tax test, 10% ownership, exclusions, distributable retained earnings, full/passive inclusion (Int'l Tax Adjustment Act arts. 27–31)
cfc_actual_dividend CFC actual dividend exclusion — when previously deemed-dividend income is actually distributed, exclude it in order of accrual (incl. intermediate-company cap); returns the exclusion adjustment and updated ledger (ITA art.32(1), Decree art.68; pre-2021 articles by year)
cfc_share_disposal CFC share disposal exclusion — (deemed dividends on the sold shares − actual dividends on them), capped at the gain (ITA art.32(2); pre-2021 articles by year)
overseas_subsidiary_statement Overseas subsidiary statement & financial status (Act art. 58, Decree art. 98) — filing targets (10%/KRW 100M, related party), loss-transaction statement, 6-month deadline, accounting identity checks
expat_cost_recharge expat cost recharge — arm-length fee, deduction, overseas work exemption
individual_foreign_tax_credit individual foreign tax credit: per-country limit, treaty-rate cap, 10-year carryforward, retirement income (Income Tax Act art. 57)
foreign_exchange_reporting overseas direct investment: FX reporting (prior/post) deadline, bank, documents, follow-up reports, liquidation, NTS investment statement deadline
overseas_account_reporting overseas financial account reporting: duty (month-end balance over KRW 500m), exemptions, deadline, penalties and reductions (Int'l Tax Adjustment Act arts. 53, 90)
corporate_filing_obligations external audit, tax adjustment, international transaction filing obligations
Tax crimes and nominee property (2)
Tool What it does
tax_crime_settlement_amount Tax-crime settlement (notice disposition) amount — per the Tax Crime Procedure Decree schedule (2014/2019/2026 versions): 1st/2nd/3rd+ amounts, habitual increase, voluntary-amendment reductions, aiding/impairment, concurrence rules, 10-won truncation and statutory fine caps
nominee_gift_tax Gift tax on deemed gifts of nominee-held property (IGTA art. 45-2) — tax base (value less appraisal fee, no gift deduction), computed tax, filing credit, taxpayer by period, filing deadline and assessment-period expiry
Tax incentives (credits, reductions) and minimum tax (11)
Tool What it does
sme_status SME and small-enterprise status for tax purposes — revenue thresholds by industry (2016, 2017–2024, 2025–), total assets, independence, domestic affiliates, grace period (STTCA Decree art.2)
startup_tax_reduction Startup SME tax reduction — eligibility, rate, period and amount by founding date, region, youth founder and industry incl. contract manufacturing and online retail (STTCA art.6)
sme_special_tax_reduction SME special tax reduction — rate by size, region and industry, KRW 100m cap, minimum tax (STTCA art.7)
reduction_income_segments Income eligible for a tax reduction when eligible and other businesses are run together — allocation of common income and expenses, loss offset across businesses, attribution of deducted loss carryforwards, main business (STTCA Art. 143; CIT Enforcement Rule Arts. 75–76)
integrated_employment_credit Integrated employment tax credit — increase in regular employees × per-person amount, credited in the first year and the following 1–2 years, stopped on a decrease, plus conversion to regular status and return from childcare leave, recapture on a decrease, and the revised formula for tax year 2026 (STTCA Art. 29-8, 2023–2026)
employment_increase_credit Tax credit for increased employment — headcount increases in 2018–2024 × per-person amount, second- and third-year credits, stop and recapture on a decrease, the 2020 deferral of recapture, choice against the integrated employment credit (STTCA Arts. 29-7 and 127(11))
integrated_investment_credit Integrated investment tax credit — basic rate by year, company size and asset class, additional credit on the excess over the prior three-year average, temporary credit for 2023–2025, exclusion of expansion investment in the Seoul overconcentration control zone (STTCA Arts. 24 and 130, 2021–2026)
rnd_tax_credit R&D tax credit — general research and workforce development expenses: current-year amount versus incremental amount, with the four-year average condition (STTCA Art. 10(1)(3), 2016–2026)
minimum_tax minimum tax
minimum_tax_adjustment minimum tax adjustment (exclusion order, Forms 4 and 8(a))
rural_special_tax Special tax for rural development — 20% of income or corporate tax reduced under the STTCA, with exemption status by article (Act Art. 4 and Decree Art. 4 lists by year, 2016–2026, with the application rules of each amending decree)
Income, withholding, transfer, inheritance (35)
Tool What it does
income_tax income tax
withholding_tax withholding
nonresident_withholding non-resident withholding
nonresident_capital_gains_withholding withholding on Korean real estate/securities gains of nonresidents and foreign corporations
nonresident_inheritance_gift inheritance tax for nonresident decedents, gift tax for nonresident donees
withholding_return monthly withholding tax return (Form 21, page 1) — subtotals by income code, grand total, refund offset and tax payable (2016–2026 attribution years, using the form in force on the filing date)
retirement_income_tax retirement income
executive_retirement_limit executive retirement income limit and excess treated as wages
wage_income_tax wage income
foreign_worker_flat_tax foreign worker flat-rate tax (17%/19%) vs progressive tax (STTCL Art. 18-2)
foreign_expert_income_reduction foreign engineer/researcher income tax reduction (STTCL Art. 18)
daily_worker_withholding daily workers
deemed_bonus_resettlement deemed bonus resettlement
special_tax_credit special tax credit
capital_gains_income capital gains, including residential pre-sale rights (tax base and tax with apply_basic_deduction=True)
inheritance_tax inheritance tax
gift_tax gift tax
estimated_business_income estimated business income
personal_deduction personal deductions
credit_card_deduction credit card, debit card and cash receipt deduction
pension_income pension income
income_loss_offset loss offset
pension_account_withdrawal pension account withdrawal
inheritance_gift_valuation inheritance/gift valuation
capital_gains_tax capital gains tax (use asset_type="분양권" for residential pre-sale rights and adjusted_area for 2018–2020 transfers)
housing_deemed_rent_income housing deemed rent
excess_withdrawal_interest sole proprietor: non-deductible interest on liabilities exceeding business assets, highest interest rate first (ITA Enforcement Decree Arts. 61(1)2 and 78-2; Enforcement Rule Art. 27)
housing_rental_income housing rental income
child_tax_credit child tax credit
rent_tax_credit employee monthly rent tax credit (tax years 2024–2026, STTCL Art. 95-2)
dividend_tax_credit dividend tax credit
religious_income religious income
individual_donation_expense donation expense limit for sole proprietors
capital_gains_unfair_transaction capital-gains unfair transaction: low-price transfer / high-price acquisition at market value (KRW 300m or 5%), gift-then-transfer within 10 years (art. 101)
commercial_rental_income Individual non-residential rental income, including allocated prepaid rent and deemed rent on deposits
VAT, penalties, limitation, refund claims and interest (21)
Tool What it does
vat_deemed_rent deemed rent
vat_housing_land_rent_split VAT apportionment of rent and deposits for housing, appurtenant land and mixed-use buildings
vat_deemed_input_credit deemed input credit
vat_common_input_allocation common input allocation
vat_simplified_taxpayer simplified taxpayer with optional e-filing and e-invoice issuance tax credits
vat_card_sales_credit card sales credit
vat_bad_debt_credit bad debt credit (added back to output tax on recovery)
underreporting_penalty under-reporting penalty
late_payment_penalty late payment penalty
withholding_late_payment_penalty withholding tax late-payment penalty (Framework Act Art. 47-5: 3% + daily, capped); tax="local" for the local income tax collected with it (Framework Act on Local Taxes Art. 56)
invoice_penalty invoice penalty
invoice_penalty_bundle tax invoice penalties for one supply with several grounds — overlap excluded (VAT Act art. 60(2), (9)), then totals
assessment_limitation assessment period
refund_claim_deadline refund claim (경정청구) deadline — ordinary 5 years, subsequent-event 3 months, increased-assessment 3 months; weekend/holiday rule applied
national_tax_refund_interest national tax refund interest by rate period, allocating refunds to the latest installments first
vat_exempt_use_deemed_supply exempt-use deemed supply
vat_input_tax_deduction input tax deduction check
vat_inventory_input_credit inventory input credit on switching to general VAT taxation
vat_deemed_supply_items deemed supply check
vat_tax_base_adjustments VAT tax base adjustments — returns, allowances, discounts, incentives, bad debts, and sales paid with mileage/points (VAT Act art.29, Decree art.61)
vat_supply_timing supply timing
Facts and ledgers → tax adjustments (18)
Tool What it does
bad_debt_adjustment bad debts
entertainment_adjustment entertainment
deemed_dividend_bonus_shares bonus-share deemed dividend
financial_income_aggregate financial income
other_income_aggregate other income
earned_income_gross_pay employment gross pay
simplified_vat_return simplified VAT return with optional e-filing and e-invoice issuance tax credits
vat_return_general general-taxpayer VAT return (Form 21) aggregation — sums component-tool results down to net tax payable/refundable
vat_foreign_currency_base foreign-currency VAT base conversion (Enforcement Decree §59, §95③)
vat_reverse_charge reverse charge on services from foreign businesses (Article 52)
common_input_tax common input tax
input_tax_recalculation input tax recalculation
bundled_supply_split land/building split
depreciation_adjustment depreciation
retirement_allowance_adjustment retirement allowance
deemed_dividend_capital_reduction capital-reduction deemed dividend
inventory_valuation_adjustment inventory valuation
income_adjustment_total adjusted income total
Shares, property valuation and local taxes
Tool What it does
stock_major_shareholder major-shareholder test for share transfers (shareholder register, aggregation)
stock_capital_gains_tax capital gains tax on shares (taxability, rates, filing deadline)
unlisted_stock_valuation unlisted share valuation for inheritance/gift (earnings/net-asset weighting, premium)
stock_basis_income_tax unlisted share standard price under the Income Tax Act
registration_license_tax registration license tax and local education tax for real estate and corporate registrations
calc_acquisition_house Acquisition tax, local education tax, special rural tax, relief and filing deadline for individual home purchases
vehicle_ownership_tax Non-commercial passenger vehicle ownership tax (2026), including age relief, electric cars, local education tax and prepayment discounts
vehicle_acquisition_tax Vehicle acquisition tax on standard sales (2026), including value-basis selection, the exemption threshold, and surtax status. Relief such as the multiple-child tax reduction is outside scope.
building_standard_price building standard price (NTS formula)
stock_price_lookup listed share price lookup (KRX)
official_property_price official land/housing price lookup (VWORLD, VWORLD_KEY)
residential_property_tax residential property tax with statutory caps, urban surcharge and local education tax
Tax audit checks (8)
Tool What it does
related_judge related parties (incl. relatives sharing livelihood)
kinship_check kinship
ownership_ratio indirect ownership
dominant_shareholder dominant shareholder
tunnelling_gift tunnelling gift
tunnelling_gift_nts tunnelling gift (NTS formula)
return_precheck return pre-check
precheck_schema pre-check input schema
PDF table extraction (3)
Tool What it does
extract_relations relations
tunnelling_from_pdf tunnelling materials
return_precheck_pdf corporate tax return
Tax collection (1)
Tool What it does
tax_priority_distribution national tax priority distribution
Excel export and checking (2)
Tool What it does
export_workbook Korean statutory return forms (별지 서식) in Excel
verify_workbook after you save a workbook you built yourself, checks its amount cells against the calculation tools (by call id)
Tool finder (1)
Tool What it does
find_tool find the right tool in plain words
  • Statutory-form Excel: see 'Excel — checking a workbook you built, and the statutory-form workbook' above for the sheets and forms. entertainment_limit also produces Form 23(a) and (b).
  • Cross-border adjustments chain on: the arm's-length range, outbound loan interest, secondee cost, foreign subsidiary dividend, CFC and provision tools return adjustment items (type, amount, disposition, basis) with their results, so they go straight into income_adjustment_total and on to the statement of adjustments (Form 15). Arm's-length adjustments are recorded as provisional reserve (code 700) until repatriation is confirmed.
  • Ledger input: adjustment tools take ledger lines as written (name, amount, receipt, nature) and return item judgments, adjustments and income dispositions.
  • Issue flags: non-resident withholding and thin capitalization results list points that may be disputed and what to check (no conclusion).
Supported years and what it does not handle
  • Years: corporate tax FY2016–2026, income tax 2016–2026, VAT 2016-1 to 2026-2; penalties and limitation periods follow current law. Other years stop with an error. Local income tax is separate.

When a case is out of scope, the tool stops with "input needed" or an error, or flags "확인 필요 (check needed)" in 판단. Check this list before relying on a result.

General

  • Years outside the supported range (corporate FY2016–2026, income tax 2016–2026, VAT 2016-1 to 2026-2) and local income tax
  • Facts that need judgment first (number of houses, related parties, business relevance) are taken as you enter them; the tool does not decide them
  • Mergers and splits: only the qualified-merger asset adjustment account (qualified_merger_asset_adjustment). No tool for the qualifying tests, merger gain or loss on purchase, or split adjustments
Per-tool limits (collected from tool descriptions)
Tool Not handled
retirement_allowance_adjustment Pre-conversion retirement allowance of employees moved to defined-contribution plans (Enforcement Rule Art. 31(2)) is only set aside as entered — its calculation, input for DC-only companies, its payout or transfer, and splitting related disallowed balances are not handled. Income inclusion when line ⑧ of Form 33 is negative
capital_gains_income·capital_gains_tax Pre-sale right transfers outside 2018–2020 and 2021-06-01 through 2026-12-31, union membership rights, shares; designated-area 3+ house surcharge before 2018-04-01; counting houses; holding-period exceptions; residential conversion; partial sale of high-value houses
stock_capital_gains_tax Foreign shares before 2019, derivatives, netting of losses
housing_rental_income Mixed-use house split, counting co-owned houses (computes if you enter the count)
dividend_tax_credit Deductions larger than non-financial income, RSTA Art. 104-27 dividends (2016–2018), other credits and reductions
religious_income Wage-income election, withholding table and year-end tax, non-taxable requirement tests, KRW 3m aggregation with other income
gift_tax Proviso of Inheritance and Gift Tax Act Art. 58(1)
inheritance_gift_valuation Converted-value split when land and building owners differ, joint-mortgage split
unlisted_stock_valuation Valuation review committee, valuation-period tests, foreign unlisted shares
vat_supply_timing Gift cards, processing, vending machines, bonded areas, consignment, deemed supply, exports other than shipment date, real-estate rental and prepaid annual fees, international transport, deemed closure, late-invoice penalties
vat_deemed_supply_items Employee gift limits before 2020-1
refund_claim_deadline Causes or notices before 2016, transition rules before 2015, whether a later-arising cause applies
tax_priority_distribution Provisional-attachment pro-rating, circular priority among security interests, public charges, tax security, etc. (returned as input needed). Among taxes, absorption by the first-seizing tax is computed; taxes that only requested delivery are not re-divided
individual_donation_expense The donation tax credit amount itself
stock_major_shareholder Market-cap lookup (enter it yourself)
minimum_tax_adjustment Ship standard profit (119); Article 59 ordering and limits for excluded items; donation limit recalculation; deduction/credit summary statement (appendix) and additional tax payable (b)

Each tool's description has the full scope.

Sources — what the calculations were checked against
Source Used for How it was checked
Statutes in force (Acts, Decrees, Rules) year tables of rates, limits and credit rates; when requirements change the version in force for each supported year; lookups go through korean-tax-mcp (law.go.kr Open API)
Addenda of amendments from which tax year or transaction an amendment applies application and transitional clauses; where none exists, rulings are searched, and if still unconfirmed the tool refuses and says so
Official forms cell layout, line numbers and instructions for form templates form PDFs on law.go.kr
NTS rulings and tribunal decisions points the statute alone does not settle, cited by document number in the output summary and full text on taxlaw.nts.go.kr
NTS filing guides e.g. the formula for deemed gifts from related-party transactions the published guide
Fact vocabulary (facts_vocab.json) criteria, periods, statutory basis and aliases for 111 items bundled after checking against the statute
KRX and VWORLD public data listed share prices, official land and housing prices per call
Foreign Exchange Transactions Regulation outbound investment filing and follow-up reports all editions 2015–2026

Each result carries its statutory basis, and its notes say what could not be confirmed. The changelog records what each version was checked against.

Recommended system prompt (5 rules)

Five rules that tell the AI when to call the tools and when to trust their answers. The server instructions carry the same rules, but some clients weight them lightly or ignore them. Adding the block below to your system prompt (Claude Desktop project instructions, Claude Code CLAUDE.md, or other custom instructions) makes the AI follow them more closely.

When answering Korean tax questions, use korean-tax-mcp and korean-tax-calc-mcp as follows.
1. For every amount and every judgment, first check whether a tool exists. If you do not know the name, use find_tool; for timing of income or supply, check timing_rules first.
2. If a tool exists, call it before calculating by hand.
3. If the tool result differs from your own calculation, do not pick one right away. Recheck the inputs, open the deciding provision with law_article, and match its requirements to the facts one by one.
4. If no provision shows the tool is wrong, use the tool result. If you use a different value, state the reason (input error or article number) in one line.
5. If two values come out (before/after apportionment, total vs. taxable part, etc.), answer only the one the question asks for.
Building an agent — tool search

If you build an agent with Anthropic's BM25 tool search (tool_search_tool_bm25_20251119), it does not match Hangul queries (checked 2026-11-14: Korean words present verbatim in the descriptions returned 0 results; English words matched). Search with English keywords — every tool description starts with an English line — or use the regex tool search (tool_search_tool_regex_20251119), which matches Korean terms. If unsure which tool to use, call find_tool first — it accepts Korean and English queries.

Authorship (Solar Pro 4 and Claude)

Authorship notice: Versions 0.3.0–0.12.2 (2026-10-10 to 10-26) were written by Solar Pro 4 (Solar Work CLI), reviewed by CodeSolar and cross-checked with tests by Claude (parts of 0.8.0 and all of 0.9.2 were fixed/written by Claude). From 0.13.0 (2026-10-28) on, the existing calculator skeleton remains Solar Pro 4's, while new tools, year-by-year statute checks and bug fixes are written by Claude (Anthropic) and reviewed by CodeSolar. From 0.26.0 (2026-11-10) on, Claude writes the spec and answer tests for each new tool first, Solar Pro 4 implements the skeleton, and Claude reviews and completes it (author noted per commit). Each CHANGELOG section states who wrote it.

Disclaimer, not a tax agent service, AI use and data transmission (full text)
  • Disclaimer: Results are a review aid, not tax advice. Verify statutes and rulings with a tax accountant, CPA or attorney before filing, during a tax audit, or in appeals. Check the statute text and case law in the original source.
  • Not a tax agent service: This tool does not perform tax agent services under Article 2 of the Certified Tax Accountant Act (preparing tax adjustment statements, filing on behalf of a taxpayer, tax consultation); only certified tax accountants and registered CPAs or attorneys may do so (Article 20). It is software that turns statutory formulas into code and shows the computation for the inputs given; please verify the facts and make the final judgment together with a tax professional (tax accountant, CPA or attorney).
  • AI use notice: All computation, judgment and lookup tools other than the 3 PDF review tools and kr_comparable_candidates run in code and do not use generative AI. The 3 PDF review tools (extract_relations, tunnelling_from_pdf, return_precheck_pdf) use generative AI (Upstage Solar Pro 4) when UPSTAGE_API_KEY is set, and mark that fact in their results. Without a key, they use pypdf for local text extraction (host_ai mode) and provide 정리 안내 (cleanup guidance) so the next tool input can be prepared manually. kr_comparable_candidates sends only the row names of filing revenue tables and the filed business overview section (up to 4,000 characters; the company-overview note for unlisted companies) to generative AI (Upstage Solar Pro 4) when UPSTAGE_API_KEY is set, to classify rows as goods / services / software / platform / other (amounts stay as filed; product vs. merchandise is split by the filed cost-of-sales and inventory figures) and states the method in its result, adding the 'AI 생성 표시' (AI generation notice) field at the top of the result and on each item whose classification or sub-class judgment came from Solar; without the key it classifies by name rules and marks the result as low accuracy.
  • Data transmission: Document content is sent to the Upstage API (api.upstage.ai) only when UPSTAGE_API_KEY is set and the PDF tools are used. The price lookups send only a ticker and date to KRX (stock_price_lookup) or an address, parcel number and year to VWORLD (official_property_price, needs VWORLD_KEY). The Korean comparable candidates tool (kr_comparable_candidates, needs DART_API_KEY) sends company codes, years and filing numbers to OpenDART, and, when UPSTAGE_API_KEY is set, revenue-row names (no amounts) and the filed business overview (up to 4,000 characters) to Upstage. Without a key (pypdf local extraction), no data is transmitted externally. Do not submit documents containing personal or sensitive information when using the API-based flow.

License

MIT © 2026 Upstage · Created by Mia (Seungmi Yoon)

Explore related projects

Loading…