Skip to main content
Glama
waalwalker1

Northstar MCP Server

by waalwalker1

규제 MCP 보험 배포 키트

유럽 보험을 위한 결정론적 견적 아키텍처 및 엔터프라이즈 전달 키트

CI License: MIT Node.js: v20+ TypeScript: Strict

유럽 보험사가 Model Context Protocol(MCP)을 통해 결정론적이고 비구속적인 주택 보험 견적 여정을 제공하면서, 서버 소유 검증, 가격 계산, GDPR 필수 동의 게이팅, 변조 방지 감사 가능성을 유지하는 방법을 보여주는 프로덕션 형태의 참조 구현입니다.


1. 비즈니스 문제

대화형 AI 어시스턴트는 보험 견적 전환율을 크게 개선하지만, 금융 규정(EU AI Act, GDPR, Solvency II 및 보험 행위 기준)은 검증되지 않은 비결정론적 가격 설정이나 감사 불가능한 자격 결정을 금지합니다.

전통적인 대화형 봇은 규제 금융 분야에서 세 가지 치명적인 결함을 가지고 있습니다:

  1. 가격 환각: LLM이 보험료와 할인을 비결정론적으로 생성하거나 변경합니다.

  2. 규제 미준수: 명시적이고 기록된 동의 없이 발급된 견적은 GDPR 제6조 및 제7조를 위반합니다.

  3. 블랙박스 상태 전환: 규제 당국은 사용자 입력과 보험계리 규칙의 정확한 순서를 재구성할 수 없습니다.

이 배포 키트는 결정론적 서버 권한 패턴을 보여줍니다. AI 어시스턴트는 대화형 자연어 추출을 제공하는 반면, 컴파일된 서버 코어는 모든 상태 전환, 검증, 보험계리 공식, 동의 게이팅, 암호화 감사 로깅을 소유합니다.


Related MCP server: @getplexa/mcp

2. 아키텍처 개요

flowchart LR
    subgraph Conversational Boundary
        Client[MCP Client / User Assistant]
    end

    subgraph Northstar MCP Server
        Sanitizer[Input Sanitizer & Regex Guard]
        StateMachine[Funnel State Machine]
        Store[(Session Store: Memory / Postgres)]
    end

    subgraph Deterministic Core
        Rules[Actuarial Pricing Engine (v1/v2)]
        Eligibility[Underwriting Eligibility Evaluator]
        ConsentGuard[GDPR Consent Gate]
        Audit[Append-Only SHA-256 Audit Store]
    end

    Client -->|MCP Tool Calls| Sanitizer
    Sanitizer --> StateMachine
    StateMachine <--> Store
    StateMachine --> Eligibility
    StateMachine --> ConsentGuard
    ConsentGuard --> Rules
    StateMachine --> Audit

핵심 불변 조건

  • 서버 가격 권한: 보험료는 컴파일된 TypeScript(packages/rules/src/pricing.ts)의 순수 함수로 계산됩니다. 클라이언트 페이로드는 가격을 변경할 수 없습니다.

  • 필수 동의 게이트: 명시적 데이터 처리 동의가 기록될 때까지 견적 발급이 강제로 차단됩니다([CONSENT_REQUIRED]).

  • 암호화 감사 추적: 모든 수명주기 이벤트는 세션 시작점으로 연결되는 SHA-256 해시를 추가합니다(packages/audit/src/audit-store.ts).

  • 제로 자격증명 로컬 경로: 유료 타사 API 자격 증명 없이 로컬에서 완전히 테스트하고 실행할 수 있습니다.


3. 주요 기능

  • 유럽 다국가 주소 처리: 프랑스(FR), 스페인(ES), 포르투갈(PT), 독일(DE), 이탈리아(IT)의 정규식 검증 우편번호 형식.

  • 인수 자격 및 추천: 위험 조합(예: 청구 $>3$, 대형 고가 빌라)을 평가하고 명시적인 기계 판독 가능 사유 코드를 출력합니다.

  • 상태 수정 및 무효화 루프: 이전에 확인된 위험 매개변수를 변경하면 활성 견적이 자동으로 무효화되고 동의가 재설정됩니다.

  • 동적 견적 조정: 퍼널을 다시 시작하지 않고 활성 견적에서 보장 등급(essential, comfort, premium)과 자기부담금(€150~€1000)을 수정할 수 있습니다.

  • 호스팅형 SaaS 및 고객 VPC 청사진: 완전한 배포 매니페스트, Docker Compose 로컬 스택, 다중 기준 결정 매트릭스.

  • 엔터프라이즈 전달 및 조달 팩: 35문항 보안 설문지, STRIDE 위협 모델, RTM, RACI, UAT 계획을 포함한 32개의 포괄적인 산출물.


4. 빠른 시작

사전 요구 사항

  • Node.js v20.x 이상

  • npm v10.x 이상(컨테이너화된 PostgreSQL에는 Docker 선택 사항)

단일 명령 검증

# 1. Install dependencies (idempotent, local)
make setup

# 2. Run the full interactive demonstration
make demo

# 3. Run all unit and integration tests (32 tests)
make test

# 4. Run the 24-scenario automated evaluation benchmark
make eval

# 5. Execute all release audit quality gates
make release-check

5. 60초 견적 대화 기록

[User]      "Hi, I need home insurance for my apartment in Paris (75008)."
[Assistant] submit_property_basics({ country: 'FR', postcode: '75008', propertyType: 'apartment', occupancyType: 'owner_occupied' })
[Server]    -> Status: PROPERTY_RECORDED. State advanced to COLLECTING_RISK.

[User]      "It was built in 2010, 75 sqm, primary residence, 0 claims in past 5 years."
[Assistant] submit_risk_factors({ constructionYearBand: '2000_2015', floorAreaBand: '50_100_sqm', isPrimaryResidence: true, claimsCount5Years: 0 })
[Server]    -> Status: RISK_FACTORS_RECORDED.

[Assistant] evaluate_eligibility()
[Server]    -> Outcome: ELIGIBLE (Reason: RISK_CRITERIA_MET). Rule version: northstar-home-eu-v1.

[User]      "I'd like the Comfort tier with a €300 deductible."
[Assistant] select_coverage({ coverageTier: 'comfort', deductible: 300 })
[Assistant] confirm_quote_parameters({ confirmed: true })
[Server]    -> Status: PARAMETERS_CONFIRMED. State advanced to AWAITING_CONSENT.

[Invariant] calculate_quote() -> Throws [CONSENT_REQUIRED] "Cannot calculate quote without verified consent."

[User]      "I agree to the data processing terms."
[Assistant] submit_consent({ consentVersion: 'consent_v1_2026' })
[Assistant] calculate_quote()
[Server]    -> QUOTE ISSUED (ID: 90484678-f868...)
               Base Annual: €180.00 | Property Multiplier: x0.9 | Deductible Discount: -€25.00
               Net Annual:  €137.00 | Tax (18%): +€24.66
               TOTAL:       €161.66 / year (€13.47 / month)
               Fingerprint: 36d5b534f844c6e43243398f3fb42436c251712183d3e0036f239a7bc168d56a (SHA-256)
               Status:      Active (Non-binding indicative)

6. 리포지토리 구조

├── apps/
│   ├── mcp-server/              # Model Context Protocol server (Stdio/HTTP)
│   └── pricing-service/         # Fastify microservice (/health, /ready, /metrics, /calculate)
├── packages/
│   ├── domain/                  # Zod validation schemas, error taxonomy, state machine
│   ├── rules/                   # Actuarial pricing engine, versioned rules (v1, v2), eligibility
│   ├── persistence/             # SessionStore interface (In-Memory with TTL & PostgreSQL)
│   ├── audit/                   # Append-only audit store with SHA-256 hash chaining & redactor
│   └── security/                # Input sanitization, prompt injection detection, data catalog
├── docs/
│   ├── fde/                     # 16-document Enterprise FDE Delivery Pack (RTM, RACI, UAT, etc.)
│   ├── procurement/             # 16-document Procurement & Security Library (35-question FAQ, DPIA)
│   ├── architecture/            # Threat model (STRIDE), Hosted vs VPC blueprints, SDK notes
│   ├── portfolio/               # Role requirement map, interview walkthrough, STAR stories
│   └── DEMO_SCRIPT.md           # 5-minute video recording script
├── tests/                       # Unit, property, integration, and adversarial security tests
├── scripts/
│   ├── demo-flow.ts             # Interactive demonstration runner
│   ├── run-eval.ts              # 24-scenario automated evaluation benchmark
│   └── anonymize-session.ts     # GDPR Article 17 right-to-erasure utility
├── Makefile                     # Canonical developer command interface
├── docker-compose.yml           # Local multi-container deployment stack
└── .github/workflows/ci.yml     # Automated CI verification pipeline

7. 측정된 증거 및 평가 결과

이 리포지토리의 모든 주장은 통과한 코드와 자동화된 평가 벤치마크로 뒷받침됩니다:

평가 차원

측정 도구

시나리오 / 테스트

측정 결과

타입 안전성

TypeScript 컴파일러 (tsc --noEmit)

모노레포 엄격 모드

0개 타입 오류

단위 및 통합 테스트 스위트

Vitest 테스트 러너 (npm run test)

11개 테스트 스위트, 32개 테스트

32개 통과 (100%)

평가 벤치마크

자동화된 평가 러너 (npm run eval)

24개 다국가 시나리오

24개 통과 (100%, 10ms 실행)

보안 감사

npm 의존성 감사 (npm run security)

193개 의존성

0건의 높음/심각 취약점

감사 체인 무결성

SHA-256 암호화 검증

수명주기 이벤트 로그

100% 끊기지 않은 해시 체인

원시 벤치마크 결과는 artifacts/evals/flow-evaluation.json로 내보내집니다.


8. 엔터프라이즈 전달 및 조달 팩


9. 알려진 제한 사항

  1. 표시적 견적에 한함: Northstar Home Insurance EU는 합성 참조 모델입니다. 발급된 견적은 비구속적이며 법적 인수 계약을 구속하지 않고 결제를 받지 않습니다.

  2. 예시용 보험계리 요소: packages/rules/src/v1.ts의 가격 계수는 단순화된 데모용 배율이며 독점적인 보험계리 테이블을 반영하지 않습니다.

  3. 외부 클라우드 배포 주장 없음: 리포지토리는 제로 자격증명 러너와 Docker Compose를 통해 로컬에서 검증되었으며, 타사 클라우드 인프라는 프로비저닝되지 않았습니다.


10. 비제휴 진술 및 라이선스

이 리포지토리는 오픈소스 MIT 라이선스 패키지(@waniwani/sdk, @modelcontextprotocol/sdk)로 구축된 독립적인 기술 실증 데모입니다. Waniwani AI, Anthropic 또는 상업 보험사와 제휴, 보증, 후원 관계가 아닙니다.

MIT 라이선스에 따라 라이선스가 부여됩니다.

A
license - permissive license
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
3Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides a privacy-preserving security framework for AI agents using the Model Context Protocol, enabling transparent anonymization of sensitive data and blockchain-like audit trails for regulated domains.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    A Model Context Protocol server that gives any MCP client two economic-safety tools: realizable quote and pretrade check, paid per call in USDC with no accounts.
    2
    430
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables governed, audit-traced AI access to a curated knowledge base through the Model Context Protocol, with OAuth 2.1 authentication and policy enforcement for secure, compliant queries.
    Apache 2.0

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/waalwalker1/regulated-mcp-insurance-deployment'

If you have feedback or need assistance with the MCP directory API, please join our Discord server