Korea Realty Calculators
by KOOsama
README.md
# korea-realty-mcp
An MCP server that lets AI agents compute **South Korean real-estate and lease-law figures**, each with its statutory basis.
AI 에이전트가 한국 부동산·임대차 법정 계산을 근거 조문과 함께 받아 갈 수 있는 MCP 서버입니다.
Rules as of **2026-12-02**. Information only, not legal or tax advice.
## Tools
| Tool | What it answers |
|---|---|
| `korea_brokerage_fee` | Max brokerage fee per party (중개보수 상한): housing, officetel, other; sale or lease incl. ×100/×70 rent conversion; VAT |
| `korea_commercial_lease_threshold` | 환산보증금 vs. regional threshold (서울 9억 / 과밀억제권역·부산 6.9억 / 광역시 등 5.4억 / 그 밖 3.7억) and which tenant protections apply |
| `korea_rent_increase_cap` | 5% increase cap, once-a-year rule, housing vs. commercial |
| `korea_deposit_to_rent_conversion` | Legal cap on deposit→rent conversion: housing min(10%, base+2%p), commercial min(12%, base×4.5) |
| `korea_lease_renewal_window` | Renewal notice window (housing 6→2 months, commercial 6→1 month) and the 10-year commercial limit |
Every response includes `legal_basis`, `notes`, `rules_as_of`, `disclaimer`. Money is integer KRW.
## Install
```bash
pip install git+https://github.com/KOOsama/korea-realty-mcp
```
Or with Docker: `docker build -t korea-realty-mcp . && docker run -i korea-realty-mcp`
## Run
```bash
pip install .
korea-realty-mcp # stdio
korea-realty-mcp http # streamable HTTP
```
Claude Desktop / Claude Code config:
```json
{ "mcpServers": { "korea-realty": { "command": "korea-realty-mcp" } } }
```
## Example
`korea_commercial_lease_threshold(region="other", deposit=50000000, monthly_rent=3000000)`
→ `converted_deposit: 350000000, threshold: 370000000, within_threshold: true`, plus the list of protections that apply.
## Maintenance
- Bank of Korea base rate default lives in `krealty/calc.py` (`DEFAULT_BASE_RATE_PCT`). Callers should pass the contract-date rate.
- Thresholds and rates change by decree; check law.go.kr when updating and bump `RULES_AS_OF`.
- Tests: `pytest`
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues