Insurance MCP Demo

Insurance MCP Demo

Provides an AI-powered insurance assistant with tools for customer, policy, claim, premium, fraud detection, and policy renewal operations.

Category
Visit Server

README

Insurance MCP Demo

A demonstration project that showcases how to build an AI-powered insurance assistant using the Model Context Protocol (MCP). The client uses an LLM (Qwen running locally through Ollama) to determine which MCP tools to call, executes those tools, and then generates a natural language response.

Features

  • šŸš€ MCP server built with FastMCP
  • šŸ’» MCP client using stdio transport
  • šŸ” Dynamic tool discovery (list_tools)
  • šŸ› ļø Automatic tool selection using Qwen
  • šŸ”„ MCP tool execution with call_tool
  • šŸ¤– Natural language response generation
  • šŸ“¦ Local LLM integration with Ollama
  • šŸ¦ Insurance domain demo with customer, policy, premium, claim, fraud detection, and policy renewal tools

Project Structure

.
ā”œā”€ā”€ client.py          # MCP client and AI orchestration
ā”œā”€ā”€ server.py          # MCP server exposing insurance tools
ā”œā”€ā”€ requirements.txt
ā”œā”€ā”€ .env.example
└── README.md

Available MCP Tools

Tool Description
get_customer Retrieve customer information
get_policy Retrieve policy details
get_claim_status Check insurance claim status
get_premium_due View premium due for a customer
run_fraud_check Perform fraud risk analysis
renew_policy Renew an inactive insurance policy

Requirements

  • Python 3.10+
  • Ollama
  • Qwen 2.5 model

Installation

Clone the repository:

git clone https://github.com/<your-username>/insurance-mcp-demo.git
cd insurance-mcp-demo

Install dependencies:

pip install -r requirements.txt

Install the Qwen model:

ollama pull qwen2.5:3b

Start Ollama:

ollama serve

Running the Project

python client.py

The client will:

  1. Launch the MCP server.
  2. Perform the MCP handshake.
  3. Discover available tools.
  4. Ask the LLM which tools should be used.
  5. Execute the selected MCP tools.
  6. Generate a user-friendly response.

Example Queries

What is the status of claim CL001?

Is there any fraud risk on claim CL003?

Show me the details for policy P1002.

Please renew policy P1003.

Tell me about customer C002 and their policy.

Run a fraud check on claim CL002 and show me the claim status.

Technologies Used

  • Python
  • FastMCP
  • Model Context Protocol (MCP)
  • Ollama
  • Qwen 2.5
  • httpx
  • Rich

Future Improvements

  • Support multiple LLM providers
  • Add conversation memory
  • Integrate a real insurance database
  • Add authentication and authorization
  • Containerize with Docker
  • Build a web interface using Streamlit or FastAPI
  • Add unit and integration tests

License

This project is intended for educational and demonstration purposes.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured