Insurance Wiki MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Insurance Wiki MCP Server compare auto insurance policies from Axa and Ethias"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
openinsurance-wiki
A brain for a country's insurance market. A self-sufficient, open-source, country-agnostic framework that turns a nation's public insurance documents into a rich, interconnected, source-cited knowledge base that any AI agent can read.
Read it live: sluyasu.github.io/OpenInsurance - every page in this repo, browsable and searchable, no install.
Not a chatbot. Not a RAG black box. A transparent, reproducible knowledge graph: the repo contains the whole chain - it finds insurers' public general-conditions PDFs, downloads them, and turns each one into a faithful Markdown page that preserves the maximum of what the PDF actually says, with a citation back to the source - all cross-linked into a navigable graph of products, insurers, branches, regulations and concepts.
As far as we know, this is the only open-source, machine-readable, source-cited database of insurance
products (the closest equivalents are commercial and closed). Point it at any country: the taxonomy is
data, not code, and adding a country is a documented recipe (_meta/BOOTSTRAP-COUNTRY.md).
The dataset covers four countries - Belgium, France, Luxembourg and Switzerland - for a total of 39 insurers and 1,189 product pages (auto, home, health, liability, travel, legal protection, ...), each page cited to its source document:
Country | Insurers | Product pages | Branch pages | State |
Belgium ( | 24 | 269 | 17 | Reference country: the only complete hand-authored layer - a branch page for every populated branch, 3 regulation pages, a country glossary |
France ( | 10 | 714 | 24 | Largest by volume; the enumerated market is far from exhausted |
Luxembourg ( | 4 | 194 | 15 | Core resident insurers ingested |
Switzerland ( | 1 | 12 | 0 | A first vertical slice, nothing more |
The recipe was proven on Belgium first and has since been run three more times, which is what turned
"country-agnostic" from a design claim into a tested one. Live counts are the generated coverage table in
AGENTS.md, rebuilt from the data on every index run.
Use it in 2 minutes - no API key needed
The dataset ships in the repo, already built: 1,189 product pages across four countries, insurer pages, glossary, plus the structured JSON behind them. You only need an LLM key to re-extract from scratch, never to use it.
1. Read it. Online at sluyasu.github.io/OpenInsurance, or open
the cloned repo as an Obsidian vault and the [[wikilinks]] become a navigable graph.
(github.com itself does not render [[wikilinks]] as links - the site or the vault is the comfortable way.)
2. Plug it into an agent (MCP). The MCP server is keyless and read-only:
git clone https://github.com/sluyasu/OpenInsurance.git
cd OpenInsurance
python3 -m venv .venv && .venv/bin/pip install "mcp[cli]" pyyamlThen register it with any MCP client, e.g. Claude Code:
claude mcp add insurance-wiki -- "$(pwd)/.venv/bin/python" "$(pwd)/mcp/insurance_wiki_mcp.py"(Or take the released server from PyPI - uvx openinsurance-wiki-mcp with INSURANCE_WIKI_REPO pointing at
the clone; the in-repo server above is always the one matching the committed dataset.)
You get search, get_product, get_coverage (only what's relevant to one question, with verbatim quotes),
compare_products, find_overlap (candidate duplicate cover when combining two policies), verify_claim
(verbatim evidence for a fact-check), get_branch_overview, ... See mcp/README.md.
3. Take the raw data. data/<cc>/extracted/ holds one structured JSON per source document, validated
against schema/; data/<cc>/index.json is the flat index (cc = be, fr, lu, ch).
AGENTS.md is a generated manifest (note types, counts, per-page path / source_url / freshness) so a
file-reading agent can navigate without guessing.
Related MCP server: PDF MCP Server
Why an MCP server (and not a chatbot, a RAG stack or a REST API)
The goal is that any AI agent can answer insurance questions from documents it can cite. That constraint picks the architecture:
Why MCP. The Model Context Protocol is the standard socket between AI
assistants and data: one server, and Claude, ChatGPT, Cursor or your own agent plugs in with three lines of
config instead of a custom integration. This server is keyless (no account, no API key, no quota),
read-only, and needs zero hosting: the dataset is the repo itself, so the data travels with a
git clone and works offline. When the wiki is re-extracted, git pull is the upgrade path.
Why not a RAG chatbot. A chatbot is a single interface; a knowledge base should serve many (a broker's comparison tool, a compliance check, a market-mapping agent). RAG adds an embedding index that is a black box: you cannot diff it, review it in a PR, or reproduce it, and its retrieval errors are invisible. Here the retrieval layer is deterministic matching over reviewed, committed files: the same query returns the same documents every time, and every answer carries the source PDF and page numbers. The LLM stays where it belongs, on the client side, reasoning over exact excerpts.
Why not a REST API. An API means a server running 24/7, uptime, keys, versioning, and one bespoke integration per consumer, for a dataset that changes a few times a year. MCP gives the same programmatic access at the cost of a local process.
How it works, in four stages:
Sources (
sources/): committed YAML saying where each insurer's public PDFs live.Frozen extraction (
data/): each PDF turned once into structured JSON and cited Markdown, by a prompt that is itself committed. Nothing is generated at query time.Deterministic MCP server (
mcp/): 10 read-only tools over those files. No LLM inside, no network, no state. Same input, same output.A reasoning client: the agent on top (Claude, a broker chatbot, a script) does the semantic work, quoting what the tools return.
The trust boundary is explicit: everything below stage 4 is reproducible and auditable. Hallucination risk is
confined to the client, and the tool responses are shaped to keep that client honest: a grounding contract and
a front-loaded citation line in every single-product response, refusal of ambiguous product names (with the
candidates listed) instead of silent guessing, and a verify_claim tool so an agent can fact-check its own
draft against the document before answering. See the
response discipline notes in the server docs.
How fast. The server reads every file once and serves from memory: warm latencies run 0.01 to about 3 ms
per tool on this dataset (measured, reproducible: mcp/README.md). In a real
chatbot the time a user feels is the LLM's own inference, not these tools.
Why this exists
Insurance products are documented in dense PDFs scattered across dozens of insurer websites. There is no neutral, machine-readable, navigable map of what actually exists in a national market. This project builds one - as a public good, and in a form an AI agent can plug into.
It also plugs into a market that is standardizing around it: EU regulation 2017/1469 gives every non-life product a standardized summary (the IPID), EIOPA actively promotes product comparison and switching, and the open insurance agenda (OPIN, the EU FIDA proposal) pushes for machine-readable access to insurance data. This project is the missing public documents layer of that picture: what the products actually say, in the open.
Four things make it different:
Self-sufficient & reproducible. Clone it, add your own LLM key, run
make all. It scrapes, downloads and extracts from scratch. No hidden datasets - every input is committed, every output is regenerable.Transparent extraction. The exact prompt sent to the LLM is a file in this repo (
extraction-agent/), not buried in code. You can read precisely what the model was asked, and run the identical extraction with your own model (Claude, Gemini, GPT, or a local model).Grounded & cited. Every product page traces back to the source PDF and cites page numbers. Quotes are verified against the raw text. If it isn't in the document, it isn't on the page.
Scoped. A page is a contractual or pre-contractual document of a specific insurance product - nothing else. Insurers' download pages mix in company statutes, fund reports and promo riders; those are refused at three gates (a recorded
out_of_scopemarker in the sources, the extraction agent's own verdict, and a CI-blocking check). See CONTRIBUTING.
What's in the wiki
Per country (wiki/<cc>/, e.g. wiki/be/):
Folder | What | How it's made |
| One rich page per insurance product (general conditions / IPID) | Generated from the PDFs |
| One page per insurer, aggregating its products | Generated |
| Overview of each line of insurance (every populated branch has one; | Hand-authored |
| The regulator and key laws (FSMA, mandatory RC auto, cat-nat...) | Hand-authored |
| Country-specific terms (bonus-malus, franchise, Branche 21/23...) | Hand-authored |
Generated and hand-authored pages live in separate folders and never collide: you fix a fact by editing the extraction data and rebuilding, never by editing a generated page.
The generated layer exists for all four countries; the hand-authored layer is uneven and deliberately not
hidden. Belgium has branch, regulation and glossary pages; France and Luxembourg have branch pages and one
regulation page each; Switzerland has neither yet. make validate lists every populated branch that still
lacks an overview page. Universal concepts that apply to every country live in wiki/universal-glossary/.
Every page is Obsidian-compatible Markdown with YAML frontmatter and [[wikilinks]].
Reproduce it from scratch
This is the only path that needs an LLM key (the extraction step). Scraping and download use a free stack
(httpx + Playwright).
git clone https://github.com/sluyasu/OpenInsurance.git
cd OpenInsurance
make setup # deps + playwright chromium (no paid scraping dependency)
cp .env.example .env # set LLM_PROVIDER + your API key (any provider)
# Reproduce a slice end-to-end:
make download COUNTRY=be INSURER=<slug> # fetch the public PDFs
make extract COUNTRY=be INSURER=<slug> # PDFs -> rich Markdown + JSON (uses YOUR model)
make build COUNTRY=be # assemble the wiki
make validate COUNTRY=be # citation / wikilink / frontmatter gates
# ...or the whole chain:
make all COUNTRY=beCOUNTRY takes any country present in sources/: be, fr, lu or ch. Extraction is resumable
(skip-existing keyed by source checksum + prompt version), so large runs can stop and restart safely.
How the pipeline works
sources/be/<insurer>.yml (committed: where the public PDFs live)
│ discover.py crawl listing pages (httpx, Playwright fallback)
▼
data/be/pdfs/… (downloaded; gitignored - regenerable; manifest.json committed)
│ extract.py PyMuPDF text ──► LLM (extraction-agent/ prompts) ──► MD + JSON
▼
data/be/extracted/… (rich Markdown + structured JSON, page-cited)
│ build_wiki.py
▼
wiki/be/… (the browsable, agent-readable knowledge base)be is shown; the same layout exists under fr/, lu/ and ch/, and the code is the same for all of them.
Details: CONTRIBUTING.md (how to add a country / insurer / product) and
extraction-agent/ (the exact prompts).
Every push runs the CI gates: wiki validation (frontmatter, links with --strict-links, citations, the data
layer against the schema and the scope rule), the pytest suite, build idempotence (rebuilding the committed
wiki must produce a zero diff), and a dead-link check on the built site that gates the deploy. A monthly
workflow opens an issue when the dataset's freshness slips.
Add a country
sources/<cc>/_country.yml- regulator, languages, branch taxonomy.sources/<cc>/<insurer>.yml- where each insurer's public PDFs live.wiki/<cc>/- hand-author branch/regulation/glossary overviews (or start them as stubs).make all COUNTRY=<cc>.
Nothing in the schema is country-specific - the taxonomy is data, not structure. Four countries (be, fr,
lu, ch) run through the same code with no per-country branch in the pipeline. One known limit: the
product-page section titles are still hardcoded French in pipeline/render.py, so a country whose documents
are not French-language will need them moved into the country config first.
Licensing & provenance
Dual-licensed: code (pipeline/, mcp/, adapters, schema) under MIT; original
content (wiki/, extracted data, prompts, sources) under CC-BY-4.0. Short verbatim excerpts quoted from
insurers' public documents remain the property of their publishers and are not relicensed - see
LICENSE, LICENSE-CONTENT and NOTICE.
Product pages are a factual extraction from insurers' publicly published documents, attributed to each source
PDF. They are not the insurers' official documents and may contain extraction errors - always verify against
the cited source_url. This project provides information, not personalized insurance advice.
Available Tools
10 toolscompare_productsA
Compare 2+ products side by side on one dimension: coverages | exclusions | deductibles. Each name is matched case-insensitively against extracted product names; pass insurer_slugs (same length/order as product_names) to pin each name to one insurer. A name matching several DISTINCT products is refused with the candidates listed (refine it rather than let the server guess). For each resolved name the best document is selected (general conditions over IPID, newest edition) and identified in the response, including its superseded flag.
Inputs: country (required), product_names (required), on, insurer_slugs. Returns: result
find_overlapA
Flag CANDIDATE duplicate cover when combining 2+ products (e.g. a home policy + a family-liability policy). Each product's coverages (or exclusions) are tagged with a controlled category (schema/coverage_categories.json); a candidate overlap is a category present in 2+ of the products. Deterministic + heuristic: it surfaces likely duplicates for an agent to confirm against the actual descriptions. It does not advise or rank, and can miss overlaps the taxonomy doesn't yet cover. Pass insurer_slugs (same length/order as product_names) to pin each name to one insurer; the best document per name is selected (general conditions over IPID, newest edition).
Inputs: country (required), product_names (required), on, insurer_slugs. Returns: result
get_branch_overviewB
Return the hand-authored overview page for a branch (by slug or label).
Inputs: branch (required), country (required). Returns: result
get_coverageA
Compact, question-oriented view of ONE product: only the coverages and
exclusions relevant to topic (e.g. 'vol', 'degats des eaux', 'ski hors-piste'),
with their limits, deductibles, verbatim quotes and page numbers. Prefer this
over get_product when answering a specific guarantee question: everything needed
to quote is in the response and nothing else. Matching is accent- and
case-insensitive over coverage/exclusion names and descriptions. An empty match
list means the topic was not found in THIS document; that is not proof the
product has no such cover - say so and point to the source_url.
Inputs: topic (required), country (required), insurer_slug (required), product_name (required), +2 more. Returns: result
get_pageA
Return the full text of one knowledge page by its repo-relative path (from search results). Text files in the knowledge folders only (.md, .json, .yml, .yaml, .txt, .csv).
Inputs: path (required). Returns: result
get_productA
Return a product's structured data (coverages, exclusions, deductibles, etc.) as JSON,
plus its source_url. product_name is matched case-insensitively (substring).
Optional filters: document_type (conditions_generales | ipid | conditions_particulieres |
conditions_tarifaires) and edition (substring of the edition_date, e.g. '2026').
When one product has several documents (e.g. its CG and its IPID share the commercial
name), the general conditions with the newest edition are returned and the other
documents are listed under other_documents.
Inputs: country (required), insurer_slug (required), product_name (required), edition, +1 more. Returns: result
list_branchesA
List insurance branches for a country with their labels, mandatory flag and product counts.
Inputs: country. Returns: result
list_countriesA
List countries covered: product/insurer/regulation counts, how many branches have at least one product (branches_covered), the size of the country's branch taxonomy (branch_taxonomy), and how many hand-written branch overview pages exist (branch_overview_pages).
Inputs: no named parameters. Returns: result
searchA
Search wiki pages by title/branch/insurer and page content. Filter by type
(product|branch|insurer|regulation|concept|moc), branch slug, insurer slug.
Returns matches with path, source_url and freshness; when more than limit
pages match, the response says how many were left out.
Inputs: query (required), type, limit, branch, +2 more. Returns: result
verify_claimA
Verbatim evidence check for ONE factual claim about a product ('le ski hors-piste est couvert avec un moniteur', 'franchise de 250 EUR en vol'). Returns the document excerpts (coverages, exclusions, quotes, definitions, deductibles, summary) sharing the claim's terms, each with its page when stated. The tool does NOT judge: compare the claim against the excerpts. If a number, date, article or condition the claim relies on appears in no excerpt, treat it as NOT SUPPORTED by this document and say so. Use it as a self-check before asserting product facts to a user.
Inputs: claim (required), country (required), insurer_slug (required), product_name (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct operation: navigation (list_countries, list_branches), retrieval (get_branch_overview, get_page, get_product), focused coverage lookup (get_coverage), claim verification (verify_claim), comparison (compare_products), and overlap detection (find_overlap). Even where tools operate on similar data (products/coverages), their purposes are clearly differentiated.
All tool names follow a consistent verb-first pattern: 'list_' for enumeration, 'get_' for retrieval, and specific action verbs for other operations (search, verify, compare, find). The naming is uniform and predictable across the set.
10 tools is well-scoped for an insurance knowledge server. Each tool provides a distinct capability without redundancy or fragmentation, covering browsing, searching, retrieving, verifying, comparing, and analyzing insurance data.
The tool set covers the core lifecycle of querying insurance wiki data: navigation, search, retrieval, product details, coverage queries, claim verification, and comparison. Minor gaps exist (e.g., no direct list_insurers or list_regulations), but the search tool with filters compensates for these adequately.
Maintenance
Related MCP Connectors
MCP server for FCA Handbook compliance analysis with verbatim citations.
The CustomGPT.ai MCP server is a fully managed, RAG-powered endpoint that connects large language models with private knowledge bases and external data sources. It provides tools for retrieval-augmented generation queries (send_message), data ingestion (upload_file), and source listing, enabling AI agents to query private documents like PDFs with high accuracy and real-time citations.
Every Indian insurance policy, clause by clause, with verbatim quotes. Free, no API key.
One governed MCP endpoint for 40+ business systems. Read-only, source-cited answers.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server exposing insurance terms and conditions from the NN SOAP API, enabling querying, searching, comparing, and retrieving document text.-
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server for PDF analysis that enables text extraction, image extraction, metadata retrieval, and text search via natural language.MIT
- FlicenseNot gradedqualityCmaintenanceRead-only MCP server providing 5 tools for hybrid search, clause retrieval, policy versioning, code lookup, and plan rider override queries over a synthetic medical-policy corpus.-
- FlicenseNot gradedqualityCmaintenanceMCP server that reviews insurance claims against policy documents, providing coverage decisions, policy clause retrieval, claim history lookup, coverage rule checks, and fraud risk scoring via four tools.-