Northstar MCP Server
Regulated MCP Insurance Deployment Kit
決定論的見積アーキテクチャ&欧州保険向けエンタープライズ納品キット
本番運用を想定したリファレンス実装です。欧州の保険会社が、Model Context Protocol(MCP)を介して非決定論的で拘束力のない住宅保険の見積フローを公開しつつ、サーバー側に保持される検証機能、価格計算、必須のGDPR同意ゲート、および改ざん検知可能な監査ログを維持する方法を示します。
1. ビジネス上の課題
会話型AIアシスタントは保険見積のコンバージョンを劇的に向上させますが、金融規制(EU AI Act、GDPR、Solvency II、および保険行為基準)は、未審査の非決定論的な価格設定や、監査不能な適格性判断を認めていません。
従来の会話型ボットは、規制対象金融分野においていくつかの重大な欠陥を抱えています。
価格のハルシネーション LLMが保険料や割引を非決定的に捏造・改変する。
規制非準拠 明示的かつ記録化された同意がないまま発行された見積は、GDPR第6条・第7条に違反する。
ブラックボックス状態遷移 規制当局がユーザー入力とアクチュアリー ルールの正確な変遷を追跡できない。
このデリバリーキットは、決定論的サーバーオーソリティパターンを示しています。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)の郵便番号形式ををRegexで検証します。引受可否判定とリファラル(紹介): リスクの組み合わせ(例:請求件数 $>3$、高額大型ヴィラ)を評価し、機械可読な理由コードを決定します。
状態補正と無効化ループ: 確定済みのリスクパラメータを変更すると、進行中のクォートは自動的に無効化され、同意も再発行になります。
クォートの動的調整: ファネルを再起動せずに、有効なクォートの補償タイプ(
essential、comfort、premium)および免責金額(€150〜€1000)を調整できます。SaaS&顧客VPC向けのブループリント: 完全なデプロイマニフェスト、Docker Composeのローカルスタック、多基準意思決定マトリクスを提供。
法人向け納品・導入(プリキュアメント)パック: 35項目のセキュリティ質問状、STRIDE脅威モデル、RTM、RACI、UAT計画を含む32点で構成された総合アーティファクト。
4. クイックスタート
prerequisites
Node.js
v20.xnpm
v10.x以上(コンテナ利用のPostgreSQLでは任意Docker)
1コマンドでの検証
# 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-check5. 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 pipeline7. 測定されたエヴィデンスと評価結果
このリポジトリ内のすべての受け入れ可能なも、コードに合格した自動評価ベンチマークによって実証されています。
評価ディメンジョン | 測定ツール | シナリオ / テスト | 測定結果 |
型安全性 | TypeScript コンパイラー ( | モノレポ全体のstrictモード | 0 型エラーを検出 |
単体・統合スイート | Vitestテストランナー ( | 11テストスイート、32テスト | 32件合格 (100%) |
評価ベンチマーク | 自動評価ランナー ( | 24のマルチカ国シナリオ | 24件合格 (100%, 10ms) |
セキュリティ監査 | npm 依存関係監査 ( | 193依存パッケージ | 高风险/l重大な脆弱性 0件 |
監査チェーン整合性 | SHA-256暗号学的検証 | ライフサイクルイベントログ | 100% 連鎖が完全保証 |
生のベンチマーク結果は、artifacts/evals/flow-evaluation.json/ライブラリ/CloudStorage/OneDrive-URV/パーソナル%20UI/CV/GitHub_Projects_JOB/WaniWani/アーファクツ/evals/flow-evaluation.json) からエクスポートされます。
8. 法人向け納品・調達パック
9. 既知の制約事項
参照見積のみ: Northstar Home Insurance EUは合成された参照モデルであり、発行される見積は非拘束的で、法的な供給契約を構成しないか、払い込みしまん。
例示作為の数理係数:
packages/rules/src/v1.tsの価格換算係数は簡易化されたデモ用の乗数であり、実際のアクチュアリー式子タブには反映されていません。外部クラウドへのデプロイ検証は未実施: 本リポジトリは、ゼロクレッテンシャルランナーとDocker Composeによるローカル検証済みであり、第3者クラウドインフラは一切プロビジョニングされていません。
10. 非提携表明およびライセンス
本リポジトリは、オープンソースMITライセンスパッケージ(@waniwani/sdk、@modelcontextprotocol/sdk)を使用した独立した技術実証です。Waniwani AI、Anthropic、またはいかなる商業的保険会社とも、提携・推薦・責助の関係はありません。
MITライセンス のもとで提供されます。
This server cannot be deployed
Maintenance
Related MCP Connectors
Real, bindable home & auto insurance quotes via MCP — actual carrier rates, not estimates. Texas today, expanding across the US. AI agents can check eligibility, run a live multi-carrier quote, compare options (carrier names hidden until bind), and hand the customer a secure link where a licensed agent finalizes coverage — never an automated purchase. No sign-up or API key required; optional free partner keys for integrators.
Real, bindable home & auto insurance quotes via MCP (Texas, expanding); human-completed bind.
Agent-native insurance quoting protocol — sandbox, MCP + REST, eligibility pre-flight
Insurance brokerage for AI agents — quote, bind, and settle in USDC
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides 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
- AlicenseAqualityBmaintenanceA 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.254 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables 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
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that exposes a versioned brand package (tokens, rules, recipes, media rights, and audit gates) as resources, tools, and prompts for AI agents. It enables agents to plan and audit on-brand UI, image, motion, and video outputs while remaining read-only and credential-free.MIT