
Insurance Claim Estimator (KR + US)
io.github.seothiefPublished by GitHub account seothiefv0.2.0Updated Nov 3, 2026
Estimate insurance payouts (Korea riders, US supplemental plans) from bills and diagnosis codes
Overview
Insurance Claim Estimator (KR + US)'s local MCP server; no sign-in required; STDIO.
No AI overview yet: these facts come from the registry entry and the server itself.
Installation
In SourceWeft
- Open Insurance Claim Estimator (KR + US) in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
insurance-claim-mcp
약봉투·진료비 영수증의 정보(KCD 질병코드, 처치, 진료비)를 가입 보험 약관과 대조해 예상 보험금을 안내하는 MCP(Model Context Protocol) 서비스입니다.
정보 제공용 예상치입니다. 실제 지급 여부와 금액은 보험사 심사에 따라 달라집니다.
mcp-name: io.github.seothief/insurance-claim-mcp
빠른 시작 (설치형 MCP 서버)
uv가 있으면 설치 없이 바로 실행됩니다. 데이터는 내 PC의 ~/.insurance-claim-mcp/(SQLite)에만 저장됩니다.
Claude Code: claude mcp add insurance-claim -- uvx insurance-claim-mcp
PostgreSQL을 쓰려면 uvx --from "insurance-claim-mcp[postgres]" insurance-claim-mcp와 DATABASE_URL을 지정합니다.
에이전트용 사용 지침은 skills/insurance-claim-mcp/SKILL.md, 마켓 등록 절차는 docs/PUBLISHING.md를 참고하세요.
English (US supplemental plans)
Estimates what US hospital indemnity, accident and critical illness plans pay, from the plan's schedule of benefits and the ICD-10-CM codes on the hospital bill. The math runs in a deterministic, fail-closed rule engine: a benefit the schedule doesn't confirm comes back NOT_EVALUATED, never a guess.
Supported benefits: hospital admission, daily confinement (max days, elimination period), ICU days, critical illness lump sum (ICD-10-CM prefixes, % of face amount), accident fracture schedule, and ER visits. Agent instructions: skills/us-supplemental-claims/SKILL.md. Data stays local (~/.insurance-claim-mcp/). Estimates only, not claim decisions.
핵심 설계 및 아키텍처
- LLM 추론 + 결정론적(Deterministic) 규칙 엔진 분리
- 비정형 데이터(보험증권·병원 영수증 이미지) 판독과 사용자 대화는 AI 클라이언트가 수행하고, 환각(Hallucination)이 없어야 하는 약관 대조 및 예상 보험금 계산은 서버 규칙 엔진이 전담합니다.
- Fail-Closed 안전장치: 약관 원문 검증(
verified=true)이 완료되지 않았거나 보험증권(POLICY_CERTIFICATE) 출처가 확인되지 않은 특약은 추측 계산하지 않고NOT_EVALUATED(0원)로 반환합니다.
- MCP 3대 구성요소(Tools · Resources · Prompts) 표준 구현
- Tools (11개): 사용자 등록(
register_user), 보험 등록/갱신(register_user_policy), 미매핑 특약 재질의 확정(resolve_user_rider), 예상 보험금 계산(evaluate_claim) 등 상태 변경 및 연산 수행 - Resources (3개): 온보딩 가이드(
insurance://guide/onboarding), 표준 담보 규칙 카탈로그(insurance://rules/standard), 보험사 공식 서류 요청 안내 동적 템플릿(insurance://guide/document-request/{policy_type}/{product_name})
- Tools (11개): 사용자 등록(
- Prompts (1개): 단계별 보험 등록 및 영수증 평가를 유도하는 표준 AI 비서 지침(
insurance_assistant_prompt) 및ai_follow_up_prompt기반 역질문 오케스트레이션 - MCP 전용 인터페이스 및 서버리스 최적화
- 보험 업무는 **FastMCP (
Streamable HTTP /mcp및 로컬stdio)**로만 제공합니다. Cloud Run 상태 확인용/api/health,/api/version외에는 REST API, OpenAPI 스키마, 웹 브리지 또는 소개 페이지를 제공하지 않습니다. - Cloud Run 서버리스 스케일링 환경을 위해
stateless_http=True및combine_lifespans를 적용하고, 리버스 프록시 뒤에서/mcp307 리다이렉트 시 발생하는 HTTPS→HTTP 다운그레이드를 ASGI 미들웨어 경로 정규화로 해결했습니다.
- 보험 업무는 **FastMCP (
이용 가이드
최종 사용자(보험 가입자)와 설정자·운영자를 위한 종합 사용법은 이용 가이드를 참조하세요.
로컬 실행
- 상태 확인:
GET /api/health,GET /api/version(인증 불필요) - 설치가 실패하거나
pip이 없는 경우(No module named pip,pip._vendor누락): 로컬 개발 환경 설치 - MCP 엔드포인트 (Streamable HTTP):
POST /mcp(또는/mcp/) - MCP 로컬 실행 (stdio):
.\.venv\Scripts\python.exe -m claim_service.mcp.server
데이터베이스 및 보안
- 기본: 로컬 SQLite (
claim_service.db, 프로젝트 루트에 생성되며.gitignore로 커밋 제외) - 클라우드: 환경변수
DATABASE_URL을 PostgreSQL URL로 지정 (예:postgresql+psycopg://...) - 평가 요청(질병코드, 진료비)은 저장하지 않고 계산 결과만 반환합니다.
- MCP HTTP 접근은 사용자별 API 키(
X-User-Key헤더 또는Bearer)로 인증합니다. 키 원문은 발급 시 한 번만 표시되고 서버에는 SHA-256 해시만 저장됩니다. 키 인증은 요청을 소유 사용자에 귀속시킵니다(PIN 입력 대체). PIN 보호 계정은PBKDF2-HMAC-SHA256(120,000회 반복) 해시로 검증을 유지합니다. 키 발급·폐기는 사용자별 API/MCP 키 가이드, 연결 설정은 클라이언트 연결 가이드, 종합 사용법은 이용 가이드를 참조하세요.
테스트 및 정적 분석
배포
main에 CI를 통과한 변경을 병합하면 GitHub Actions가 Cloud Run에 자동 배포하고
/api/health, /api/version을 확인합니다. 수동 배포는 GitHub의
Actions → Deploy to Cloud Run → Run workflow 한 번으로 실행할 수 있습니다.
최초 설정에 필요한 GitHub 변수, Workload Identity Federation 및 권한은
배포 설정 안내를 참조하세요. 운영 배포는 이 로컬 작업에서 실행하지 않습니다.
진행 현황
라이선스
Source: README.md at commit 619b557
Tools
0Version history
1- v0.2.0LatestNov 3, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts