LogiGrain — Japanese public-system money calculations

Remote MCP server (no auth) for Japanese money rules: public pension amount and start age, new NISA remaining limits, iDeCo contribution limit (Dec 2026 reform), mortgage tax deduction, inheritance tax, gift tax, furusato nozei limit. Every answer returns the official rule basis and date, assumptions and a quotable sentence; asks for missing facts instead of guessing. Endpoint: https://logigrain.net/mcp (free trial until Jan 2027).

Hosted MCP Server

npx add-mcp 'https://logigrain.net/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

LogiGrain API

Japanese public-system money calculations for AI agents, with the official rule basis and date. Pay-per-call via x402.

Overview

LogiGrain answers questions about Japanese money rules that need both current official figures and a calculation an LLM should not do from memory: iDeCo contribution limits (December 2026 reform), inheritance and gift tax (including the lifetime-gift add-back window that lengthens from 2027), the furusato nozei limit under the 2026 deductions, public pension amount and when to start it, new NISA remaining limits, and the mortgage tax deduction for 2026-2030 move-ins. Every answer returns the rule source and date (basis), assumptions, what would change the answer (answer_changes_if) and a quotable sentence (summary_ja / summary_en). Missing facts are listed instead of guessed; out-of-scope years are refused instead of mixing rule versions. Also: deterministic astronomy, calendar and divination compute (moon phase, Japanese era, Western astrology, Four Pillars, Nine Star Ki, Zi Wei Dou Shu) and utility math. 23 stateless endpoints.

MCP (free trial)

  • Remote MCP server (streamable HTTP): https://logigrain.net/mcp
  • Tools: the 8 Japanese public-system calculations (pension amount, pension start age, new NISA remaining limits, mortgage tax deduction, iDeCo limit, inheritance tax, gift tax, furusato nozei limit)
  • Free, no sign-up, until the end of January 2027 (overall daily limit). The paid x402 HTTP API below is unchanged.

Price

  • Japanese public-system endpoints (/api/ideco, /api/inheritance, /api/gift-tax, /api/furusato, /api/nenkin, /api/nenkin-deferral, /api/nisa, /api/housing-loan): $0.01 USDC per call
  • All other endpoints: $0.001 USDC per call
  • You are charged only when a result is returned. Refusals and errors are not charged.

Network

  • Protocol: x402 v2
  • Network: Base mainnet (eip155:8453)
  • Asset: USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
  • Price: $0.01 (Japanese public-system endpoints) / $0.001 (others) per call; charged only when a result is returned
  • Facilitator: CDP (api.cdp.coinbase.com)
  • payTo: 0x716fdE0dAc4Ef6ed2018206d43697C6Bb71D7EB3

Japanese public-system money (core, $0.01 per call)

/api/ideco

Japan iDeCo (individual DC pension) monthly contribution limit for a contribution month, switching at the December 2026 reform (debited from January 2027): category 2 without company plans 23,000 -> 62,000 yen; with company DC/DB 62,000 minus employer contributions (old cap 20,000 removed); civil servants 54,000; private-school mutual aid 55,000; self-employed 75,000 (with National Pension Fund / fuka); dependent spouse 23,000; new category 5 for ages 60-69 outside the National Pension. Eligibility with reasons, before/after comparison, check of a planned amount, and income/resident tax saving from taxable income. Asks for employer contributions instead of guessing. Params: category (required), plan, employer_dc, db_equivalent, matching, kikin, fuka, month, monthly, taxable_income, birth, receiving_pension, existing_account, ideco_plus, as_of

/api/inheritance

Japan inheritance tax: basic exemption (30M + 6M x heirs), total tax from statutory shares and the rate table, per-heir tax with spouse relief (up to 160M yen or the spouse's statutory share) and the 20% surcharge for siblings, death insurance / retirement exemption (5M x heirs), adopted-child cap, and the lifetime-gift add-back window set by the date of death (3 years for deaths to 2026-12-31; gifts from 2024-01-01 for deaths 2027-2030; 7 years from 2031, with 1M yen of the older part not added), settlement-method gifts and gift-tax credits. Property valuation is not done (pass values). Params: estate, spouse, children (required), adopted, parents, siblings, death_date, insurance, retirement, gifts_3y, gifts_older, seisan_gifts, gift_tax_paid, seisan_tax_paid, spouse_share

/api/gift-tax

Japan gift tax for a year: calendar method with the general or special table (parents/grandparents to a recipient 18+ on 1 January), mixed pro-rating as in NTA No.4408, or the settlement method (25M special deduction, 1.1M annual deduction from 2024, 20%). Params: special, general, method (calendar | seisan), amount, used_special, year

/api/furusato

Japan furusato nozei limit (the donation keeping the cost at 2,000 yen) from salary, for 2026 and 2027 donations: 2026 income-tax deductions (basic 1.04M / 670k / 620k, employment-income floor 740k), resident tax (basic 430k, adjustment credit), the special-part ratio set by resident taxable income minus personal-deduction differences minus (income-tax basic deduction - 480k), the 1.93M cap on the special part from 2027 donations, and the expected self-burden at the limit. Asks for social insurance instead of guessing; refuses the spouse special deduction and other unmodelled deductions rather than overstating the limit. Params: salary, social_insurance, spouse (required), year, dependents_general, dependents_specific, dependents_elderly, dependents_elderly_cohabiting, children_under16, ideco, life_insurance_it, life_insurance_rt, medical_deduction, housing_loan_credit

/api/nenkin

Japanese public pension (老齢基礎年金) annual estimate using official yearly parameters (FY2026 full amount 847,300 yen; updated each April). Exemptions, early claim (kuriage) / deferral (kurisage), fuka-nenkin, optional kosei amount. Params: birth (required), paid, exempt_*, student, karaki, fuka, start_age, start_extra_months, kosei_yen, fiscal_year

/api/nenkin-deferral

When to start the Japanese public pension. Break-even age versus a baseline (default 65), probability of living to that age from the official life table (令和7年簡易生命表, by sex), and expected lifetime total for each start age 60-75. Returns the rule year used, assumptions, what would change the answer, and quotable summary_ja / summary_en. Params: birth (required), sex (required), start_age, start_extra_months, baseline_age, annual_65, as_of, fiscal_year, life_table_year

/api/nisa

Japan new NISA limits. How much can still be bought this year and next year: annual limits (つみたて 1.2M / 成長 2.4M yen), lifetime 18M yen book-value limit (成長 up to 12M). Selling frees the book value (cost), not the sale price, from the next calendar year. Returns rule basis, assumptions, what would change the answer, and quotable summary_ja / summary_en. Params: held_tsumitate, held_growth (book values; at least one required), bought_tsumitate, bought_growth, sold_tsumitate, sold_growth, sale_price, birth, as_of

/api/housing-loan

Japan mortgage tax deduction (住宅ローン控除) for move-ins 2026-2030 (rules after the FY2026 tax reform). Borrowing limit and period by new / resale / used, performance class (certified, ZEH, energy-standard, other), special household (子育て・若者夫婦世帯) and floor area; dated transitional rules (building confirmation / built dates); the deduction for a given year-end balance, or a 13/10-year projection from a loan (amount, rate, term), with the income-tax / resident-tax split. Refuses earlier move-ins instead of mixing rule versions; asks for missing facts. Returns rule basis, assumptions, what would change the answer, and quotable summary_ja / summary_en. Params: move_in, type, performance, floor_area (required), kosodate, income, permit_date, built_date, seismic, red_zone, rebuild, year_end_balance, price, loan_amount, rate, term_years, income_tax, taxable_income, as_of

Divination & Astronomy

/api/seiyo

Western astrology natal chart. Planet sign/degree, ASC/MC, whole-sign and Placidus houses, aspects. Params: date (YYYY-MM-DD, required), time (HH:MM), tz (default +9), lat, lon

/api/shichu

Chinese Four Pillars (Bazi / 四柱推命). Year/month/day/hour pillars from solar terms. Params: date (YYYY-MM-DD, required), time (HH:MM)

/api/shibu

Zi Wei Dou Shu (紫微斗数) natal chart. Lunar-date conversion (UTC+8 basis), 命宮/身宮/五行局, twelve palaces, 14 major stars, 六吉星, 禄存/天馬, 六煞星, 四化, 大限, and 流年 overlay. Params: date (YYYY-MM-DD, required), time (HH:MM), gender (male/female, for 大限), liunian (year, for annual chart)

/api/kyusei

Nine Star Ki (九星気学). Honmeisei / getsumeisei from solar-term calendar. Params: date (YYYY-MM-DD, required)

/api/moon

Lunar age, phase, illumination, next full/new moon (date and time, true ephemeris, ~2 min). Japanese moon-culture trivia optional. Params: date (YYYY-MM-DD, local midnight in tz), tz (UTC, Asia/Tokyo, ...), include (trivia)

/api/era

Japanese era (令和/平成/昭和) conversion and fiscal-year calculation.

Utility

/api/compound

Compound interest calculator. Params: principal, rate (percent), years, monthly (optional)

/api/convert

Currency conversion (live rates). Params: from, to, amount

/api/convert-unit

Unit conversion (length, weight, temperature, etc). Params: value, from, to, category

/api/json

JSON validate / format / analyze. Params: action, input

/api/math

Safe expression evaluation (AST-based). Params: expr, vars

/api/code

Syntax check for JS/JSON/HTML/CSS. Params: lang, code

/api/feed

Live forex / crypto data. Params: type, symbols

/api/date

Date arithmetic (add, diff, unix, business days). Params: action, ...

/api/probability

Bayes, combination, permutation. Params: type, ...

A2A (Agent2Agent)

  • Agent card: https://logigrain.net/.well-known/agent-card.json (A2A v1.0; v0.3 also accepted)
  • JSON-RPC endpoint: POST https://logigrain.net/a2a (methods: SendMessage / message/send)
  • The A2A interface does not run calculations. Send a data part {"skill": "", "params": {...}} and it returns the exact paid HTTP request (x402) for that calculation. Skill ids are the endpoint names above (e.g. ideco, inheritance, gift-tax, furusato, nenkin, nisa, housing-loan, moon, era, seiyo, shichu, kyusei, shibu).