mcp-fns-calc

v0.1.10
io.github.atomno-mcp/mcp-fns-calc Checked 3 days ago Published 2 days ago

Russian tax calculators (VAT, USN, NDFL) and FNS fiscal-status checks via MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

calc_vat

Compute Russian VAT (НДС): add on top of net or extract from gross (NK RF art. 164, 168). **When to use** - Invoice line: net→gross (mode=add) or gross→net+VAT (mode=extract). - USN taxpayers on special VAT rates 5% or 7% (from 2025 rules). - Quick sanity check before bookkeeping export. **When NOT to use** - VAT declaration filing, multi-rate invoices, or export/zero-rate cases. - Mixed taxable/exempt lines — sum per line in accounting software. **Parameters** - amount: base sum in RUB (net for add, gross for extract). - rate: 20, 10, 0, 5, or 7 (percent). - mode: `add` | `extract…

ParameterTypeDescription
amount *numberСумма (без НДС для add, с НДС для extract).
modestringadd — начислить сверху; extract — выделить из суммы.
ratenumberСтавка НДС: 20/10/0 или спец 5/7 (УСН с 2025).

calc_usn

Calculate simplified tax (USN/УСН): 6% on income or 15% income-minus-expense with minimum tax (NK RF ch. 26.2). **When to use** - Estimate USN tax for a quarter/year before payment. - Object `income` (6%): deduct paid IP contributions (capped at 50% if has_employees). - Object `income_minus_expense` (15%): apply minimum tax 1% of income if 15% base is lower. **When NOT to use** - Exact advance-payment calendar or KKT cash reporting. - Taxpayers above USN income limits — check get_rates for limits first. **Parameters**: income, obj, expenses, rate (regional override), contributions_paid…

ParameterTypeDescription
income *numberДоход за период.
advances_paidnumberРанее уплаченные авансовые платежи.
contributions_paidnumberУплаченные страховые взносы (для объекта income).
expensesnumberРасходы (для income_minus_expense).
has_employeesbooleanЕсть работники (ограничивает вычет взносов 50%).
objstringincome (6%) или income_minus_expense (15%).
rateРегиональная ставка, если отличается от базовой.

calc_insurance_ip

IP fixed insurance contributions + 1% on income above 300k RUB (NK RF art. 430). When to use: annual IP self-contribution estimate; set months<12 for partial year. When NOT to use: employee payroll — use payroll tools; amounts for closed years without snapshot check. Side effects: read-only, deterministic, offline; rates from bundled snapshot. Returns: {fixed, extra_1pct, total, income, year, months, formula, article, disclaimer}.

ParameterTypeDescription
income *numberГодовой доход ИП.
monthsintegerПолных месяцев деятельности (неполный год).
yearintegerГод расчёта.

calc_ndfl

Progressive personal income tax (NDFL/НДФЛ) 2025+ with per-bracket breakdown (NK RF art. 224). When to use: estimate annual NDFL on salary or IP income after deductions. When NOT to use: monthly withholding by employer — use payroll; non-resident rates not modeled. Side effects: read-only, deterministic, offline; no auth or network. Returns: {tax_total, taxable_base, brackets[], formula, article, disclaimer, snapshot_date}.

ParameterTypeDescription
income *numberГодовой доход.
deductionsnumberВычеты.
yearintegerГод (прогрессивная шкала с 2025).

calc_patent

Patent taxation (PSN/ПСН) cost: potential income × 6% × months/12 minus contributions (NK RF ch. 26.5). When to use: compare patent cost vs USN for an activity; potential_income from regional law. When NOT to use: eligibility/OKVED limits — verify with FNS; employee-heavy cases need manual review. Side effects: read-only, deterministic, offline; no auth or network. Returns: {patent_cost, before_deduction, contributions_deduction, months, formula, article, disclaimer}.

ParameterTypeDescription
potential_income *numberПотенциально возможный годовой доход (закон региона).
contributions_paidnumberУплаченные страховые взносы.
has_employeesbooleanЕсть работники (вычет взносов макс. 50%).
monthsintegerСрок патента в месяцах.

calc_penalty

Estimate late-payment tax penalty (пени) per NK RF art. 75 using the CBR key rate. **When to use** - Quick what-if: how much penalty accrues on a known arrears amount and delay in days. - Org vs IP/individual: orgs use 1/300 for days 1–30, then 1/150; IP and individuals use 1/300 for all days. - Before a payment plan or negotiation — ballpark figure, not a filing document. **When NOT to use** - Multi-period calculation where the key rate changed during the delay (this tool uses one flat rate). - Penalties on non-tax debts (commercial loans, fines outside NK art. 75). - Official amoun…

ParameterTypeDescription
amount *numberСумма недоимки (руб.), на которую начисляются пени.
days *integerЧисло календарных дней просрочки с даты, когда платёж должен был быть уплачен.
key_rateКлючевая ставка ЦБ РФ, % годовых. Если не задана — берётся из встроенного снапшота (см. snapshot_date в ответе).
payerstringТип плательщика: org (организация), ip (ИП), individual (физлицо, не ИП).

get_rates

Tax rates and limits: offline snapshot (default) or live hosted pull (fresh=true, Pro key). **When to use** - Before calc_penalty: pass fresh CBR key_rate or read cbr_key_rate_default from snapshot. - Before calc_usn/calc_insurance_ip: verify USN income limits and IP contribution fixed amounts. - kinds filter narrows response: cbr_key_rate | ip_fixed_contrib | usn_limits | ndfl_scale | deflator. **When NOT to use** - Legal interpretation of limits — snapshot may lag; use fresh=true for production DD. **Parameters** - fresh: false (default) = bundled snapshot, no network; true = hosted API…

ParameterTypeDescription
freshbooleantrue — тянуть свежие ставки с hosted (нужен ключ Pro); false — офлайн-снапшот.
kindsФильтр: cbr_key_rate | ip_fixed_contrib | usn_limits | ndfl_scale | deflator.

check_selfemployed

Check self-employed (NPD/НПД) status by taxpayer INN via FNS open data. Requires Pro API key. When to use: before paying a sole proprietor as individual — mandatory NPD verification. When NOT to use: offline what-if math — use calculators; without token returns missing_token error. Side effects: read-only HTTPS to hosted backend; no local data mutation. Needs MCP_FNS_CALC_TOKEN. Returns: {is_selfemployed, inn, checked_at, source, disclaimer} or error/missing_token.

ParameterTypeDescription
inn *stringИНН физлица (10 или 12 цифр).

check_ip_status

IP registration status, OKVED and EGRIP dates by 12-digit INN. Requires Pro API key. When to use: confirm counterparty is active IP before contract/payment. When NOT to use: full EGRUL extract — use mcp-egrul; offline mode unavailable. Side effects: read-only HTTPS; needs MCP_FNS_CALC_TOKEN. Returns: {status, inn, okved, registration_date, ... disclaimer} or error.

ParameterTypeDescription
inn *stringИНН ИП (12 цифр).

check_disqualified

Match against FNS disqualified persons register by INN or FIO. Requires Pro API key. When to use: compliance screen before appointing director/signatory; provide inn or fio. When NOT to use: sole evidence for legal decisions — result is indicative, verify manually. Side effects: read-only HTTPS; needs MCP_FNS_CALC_TOKEN. At least one of inn/fio required. Returns: {matches[], query, disclaimer} or validation/error.

ParameterTypeDescription
fioФИО для поиска (если нет ИНН).
innИНН для поиска в реестре дисквалифицированных.

check_account_block

Bank account operation suspension info from FNS (10–12 digit INN). Requires Pro API key. When to use: treasury/compliance check before large outbound payment. When NOT to use: real-time bank balance — different service; offline unavailable. Side effects: read-only HTTPS; needs MCP_FNS_CALC_TOKEN. Returns: {suspended, inn, details, disclaimer} or error.

ParameterTypeDescription
inn *stringИНН организации/ИП.

check_tax_arrears

Tax arrears / debt flags from FNS Transparent Business open data. Requires Pro API key. When to use: counterparty due diligence alongside mcp-fns-check; 10–12 digit INN. When NOT to use: official debt certificate — request from FNS; offline unavailable. Side effects: read-only HTTPS; needs MCP_FNS_CALC_TOKEN. Returns: {has_arrears, inn, amounts[], disclaimer} or error.

ParameterTypeDescription
inn *stringИНН организации/ИП.