Skip to main content
Glama
README.md
# kiwi-judge-mcp

**정부지원사업 사업계획서(한글 HWP·HWPX)를 제출 전에 판결하는 MCP 서버.**
Claude Desktop · Claude Code · Cursor 같은 AI 에 연결하면, 내 PC의 한글 파일 경로만 알려 줘도 AI 가 판결을 받아 와서 고칠 곳을 알려 줍니다.

```
판결: 고쳐야 함 — 2026 초기창업패키지(일반형) 조건으로 고쳐야 할 것 3가지
✗ 양식의 예시 값·빈칸 표시: 「00백만원」, 「00백만원」 등
✗ 꼭 채울 칸: 기업명, 개업연월일, 대표자 유형
! 작성 목차 쪽: 목차 쪽이 남아 있습니다
    근거: 「※ 사업 신청 시, 사업계획서 작성 목차 페이지는 삭제하고 제출」 — 양식 「(별첨1) 2026년도 초기창업패키지(일반형) 사업계획서 양식」
✓ 분량: 14쪽 (목차 빼고 13쪽) / 15쪽 내외
✓ 블라인드 (개인 정보 가리기): 본문에 드러난 학교·생년·나이·성별·병역·직장명·이름 없음
```

## 무엇을 판결하나

내용이 좋은지(심사 점수)가 아니라, **내용을 보기도 전에 떨어지는 형식 결격**을 계산으로 찾습니다. AI 추측이 아니라 한글 파일 엔진과 공식 양식·공고문 조건으로 판단합니다.

| 항목 | 보는 것 |
|---|---|
| 예시 값·빈칸 | 「OO」「00백만원」「XXX」「추후 기재」가 남았는지, 꼭 채울 칸이 비었는지, 양식 틀만 남은 항목 |
| 사업비 | 정부지원 상한, 정부지원 비율(지역별), 자기부담 현금 최소 비율, 사업비 표가 비었는지 |
| 표 검산 | 합계·소계·비율 100%, 본문 금액과 표 금액 |
| 분량 | 실제 쪽 수 (양식이 「목차 제외」라면 목차 쪽을 빼고) |
| 블라인드 | 이름, 학교(약칭 포함), 생년·나이, 성별·병역, 직장명 — 학위·전공, 협력 기관, 가린 「○○○」는 잡지 않음 |
| 그 밖에 | 주민등록번호, 남은 작성 안내 문구(파란 글씨), 작성 목차 쪽, 예산서(.xlsx)와 계획서의 숫자 |

지원사업(초기창업패키지·예비창업패키지·딥테크창업사관학교·창업도시 조성 프로젝트 등 19개)을 서류 제목과 양식 모양으로 알아보고, 그 사업 **공식 양식·공고문의 조건 문장을 근거로** 함께 보여 줍니다. 서류 글만으로 알 수 없는 것(함께 낼 서류, 신청 제외 대상)은 「직접 확인할 것」으로 줍니다.

## 설치

1. [키위 오피스](https://kiwioffice.cloud) 가입 → **설정 › 개발자 API** 에서 API 키(`kiwi_sk_…`)를 만듭니다.
2. AI 에 연결합니다 (Node.js 20 이상).

**Claude Desktop** — `claude_desktop_config.json`

```json
{
  "mcpServers": {
    "kiwi-judge": {
      "command": "npx",
      "args": ["-y", "github:SeungKwonHa/kiwi-judge-mcp"],
      "env": { "KIWI_API_KEY": "kiwi_sk_…" }
    }
  }
}
```

**Claude Code**

```bash
claude mcp add kiwi-judge -e KIWI_API_KEY=kiwi_sk_… -- npx -y github:SeungKwonHa/kiwi-judge-mcp
```

**Cursor** — `.cursor/mcp.json` 에 Claude Desktop 과 같은 내용.

3. AI 에게 말합니다: 「`~/Documents/사업계획서.hwp` 제출 전에 판결해 줘. 회사는 ○○, 대표는 ○○○」

## 도구

| 도구 | 입력 | 결과 |
|---|---|---|
| `judge_business_plan` | `files`(파일 경로 5개까지, .hwp·.hwpx·.xlsx), 선택: `program_id`, `company_name`, `representative_name` | 판결(제출 가능 / 확인 필요 / 고쳐야 함), 항목별 결과·고칠 곳·근거, 직접 확인할 것 |
| `list_programs` | — | 판결 가능한 지원사업과 조건 종류 |

## 개인정보·보안

- 파일은 판결하는 동안만 키위 오피스 서버(`POST /api/v1/check`)로 보내지고 **저장되지 않습니다**. 판결에 AI 모델을 쓰지 않으므로 다른 AI 회사로도 가지 않습니다.
- 회사·대표자 이름은 블라인드 확인에만 쓰고 저장하지 않습니다.
- API 키는 설정에서 언제든 폐기할 수 있습니다.

## 환경 변수

| 이름 | 기본 | 설명 |
|---|---|---|
| `KIWI_API_KEY` | (필수) | 설정 › 개발자 API 에서 만든 키 |
| `KIWI_API_URL` | `https://kiwioffice.cloud` | 자체 설치(사내망) 서버 주소 |

## 개발

```bash
npm install
npm test                                   # 판결 요청·결과 글·MCP 왕복 (흉내 API — 키 없이)
KIWI_API_KEY=kiwi_sk_… npm run test:live   # 실제 API 로 합성 견본 서류 두 개를 판결 (결격 → fix, 정상 → pass)
npm start                                  # stdio MCP 서버
```

`test/fixtures/` 의 서류는 합성 견본입니다 (실제 회사·사람 정보 없음). 직접 해 보려면:
「`test/fixtures/sample-plan.hwpx` 판결해 줘. 회사는 주식회사 키위견본, 대표는 김견본」

이 저장소는 MCP 클라이언트 쪽(파일 읽기·요청·결과 정리)입니다. 판결 엔진과 조건 자료실은 키위 오피스 서버에 있습니다.

---

## English

**An MCP server that judges Korean government-grant business plans (HWP/HWPX) before submission.**
Connect it to Claude Desktop, Claude Code or Cursor, point your AI at a local Hangul file, and get a verdict — *ready / review / fix* — with the exact places to fix and the quoted condition from the official form or call for proposals.

It checks the formal disqualifiers that sink applications before anyone reads them: leftover example values (`OO`, `00백만원`), empty required cells, government-funding caps and ratios, table totals, page limits (excluding the contents page when the form says so), blind-review leaks (names, schools, birth years, gender/military service, employers), resident numbers, leftover guidance text and contents pages. It does **not** score the content.

Files are sent to the Kiwi Office API (`POST /api/v1/check`) only for the judgment and are not stored; no AI model is used for the verdict. Get an API key at <https://kiwioffice.cloud> › Settings › Developer API, then add the server with `npx -y github:SeungKwonHa/kiwi-judge-mcp` and `KIWI_API_KEY` as shown above.

License: MIT

TDQS

A4/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have clearly separate roles: list_programs is a read-only catalog lookup that supplies program_id values, while judge_business_plan performs the actual document audit. The dependency between them is explicit in the description, so an agent cannot reasonably confuse which tool to call.

Naming Consistency5/5

Both names follow the same verb_noun snake_case pattern (judge_business_plan, list_programs) and use domain-appropriate vocabulary. There is no mixing of casing or verb styles.

Tool Count4/5

Two tools is on the lean side, but the server's scope is narrow: consult program criteria, then judge a plan against them. Each tool is substantive and load-bearing, so the small surface is justified rather than deficient.

Completeness4/5

The consult-then-judge lifecycle is covered, including budget caps, blind checks, formatting, and cross-file consistency. Minor gaps exist—there is no dedicated tool to fetch a single program's full announcement details or to persist/compare judgment results across submissions—but agents can work around these via list_programs and repeated judge calls.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues