Insurance Policy MCP Server
Click on "Install 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 Policy MCP ServerCreate a new auto insurance policy with full coverage"
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.
Insurance Policy MCP Server
A Model Context Protocol (MCP) server for managing fictional insurance policies. This server provides tools and resources for querying, creating, and managing insurance policies.
Features
Policy Management: Create, retrieve, and update insurance policies
Coverage Tools: Query available coverage types and policy limits
Claims Processing: Manage claims submissions and tracking
Resource Access: Browse policy database and coverage catalogs
Related MCP server: policy-corpus
Quick Start
Prerequisites
Python 3.10 or higher
pip (Python package manager)
Installation
pip install -e .Development
Install with development dependencies:
pip install -e ".[dev]"Running the Server
python -m src.serverOr if installed as a script:
insurance-mcp-serverRunning the Web Dashboard and Policy Agent
Run the Flask web app locally:
python3 app.pyOpen:
Dashboard:
http://127.0.0.1:5000/Policy Agent:
http://127.0.0.1:5000/agent
Split Laptop Agent and EC2 Backend Setup
Use this setup when you want the Policy Agent UI on your laptop and the insurance policy backend on an AWS EC2 Linux instance.
On the EC2 instance, install and run the backend so it accepts network traffic:
sudo dnf update -y
sudo dnf install -y python3 python3-pip git
git clone <your-repo-url>
cd <your-repo-folder>
python3 -m venv .venv
source .venv/bin/activate
pip install -e "[dev]"
HOST=0.0.0.0 PORT=5000 FLASK_DEBUG=0 python3 app.pyIn the EC2 security group, allow inbound TCP 5000 from your laptop IP only. Avoid opening this demo server to the whole internet.
On your laptop, run the Policy Agent UI and point it at EC2:
cd <your-local-repo-folder>
python3 -m venv .venv
source .venv/bin/activate
pip install -e "[dev]"
POLICY_BACKEND_URL=http://<ec2-public-ip-or-dns>:5000 python3 app.pyThen open http://127.0.0.1:5000/agent. The local Policy Agent will forward policy, claim, stats, and agent tool requests to the EC2 backend.
For the MCP stdio server itself, run this on EC2 when connecting through an MCP client over SSH:
python3 -m src.serverThe browser-based Policy Agent uses the Flask HTTP API because standard MCP stdio is not directly callable from a browser.
Testing
Run the test suite:
pytestRun tests with coverage:
pytest --cov=srcLinting and Formatting
Format code:
black .
isort .Run linter:
pylint src/Run type checker:
mypy src/Architecture
The server implements the Model Context Protocol (MCP) specification and provides:
Tools: Functions that can be called by LLM clients
create_policy: Create a new insurance policyget_policy: Retrieve policy detailslist_policies: List available policiesget_coverage_options: Query available coverage typessubmit_claim: Submit an insurance claimlist_claims: List insurance claims
Resources: Data resources that clients can access
insurance://policies- Policy database entriesinsurance://coverage-options- Coverage catalogs
Prompts: Pre-built prompt templates for common operations
policy_summary: Generate a summary of a policyclaim_guidance: Provide claim submission guidance
Project Structure
policy-agent-ui/
├── app.py # Laptop-only dashboard and Policy Agent proxy UI
├── templates/ # Local UI templates
└── static/ # Local UI JavaScript and CSS
policy-mcp-backend/
├── app.py # EC2 backend HTTP API
├── src/ # MCP server and policy business logic
└── tests/ # Backend unit tests
src/
├── server.py # Main MCP server implementation
├── store.py # In-memory data store
├── types_import.py # Type definitions and dataclasses
tests/
└── test_store.py # Unit tests
.vscode/
└── launch.json # VS Code debugger configuration
pyproject.toml # Project configuration
requirements.txt # Dependency listUse policy-agent-ui/ on your laptop and policy-mcp-backend/ on EC2 for a clean split deployment. The root-level files remain available for local combined development.
Environment Variables
HOST: Flask bind host. Use0.0.0.0on EC2. Defaults to127.0.0.1.PORT: Flask port. Defaults to5000.FLASK_DEBUG: Set0on EC2 and1during local development. Defaults to1.POLICY_BACKEND_URL: Optional remote backend base URL. When set on your laptop, the dashboard and Policy Agent forward API calls to the EC2 backend.
Configuration Files
pyproject.toml: Project metadata, dependencies, and tool configuration
.pylintrc: Linting rules
.flake8: Code style checking
pyproject.toml: Black and isort formatting rules
Debugging with VS Code
This project includes a VS Code MCP launch configuration. To debug:
Press
Ctrl+Shift+D(orCmd+Shift+Don macOS)Select "Python: Insurance Policy Server" from the debug dropdown
Press F5 to start debugging
MCP Documentation
For more information about the Model Context Protocol:
Sample Data
The store initializes with:
Policies: POL-1000 (auto, CUST-001), POL-1001 (home, CUST-002)
Coverage Options: Comprehensive, Collision, Homeowners Liability, Medical Coverage
Claims: CLM-5000 (approved collision claim on POL-1000)
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Agent-native insurance quoting protocol — sandbox, MCP + REST, eligibility pre-flight
Authenticated MCP server for ClearPolicy policy and compliance workflows.
MCP server for medicare-coverage
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides a mock interface for managing health insurance operations, including claims processing, benefit inquiries, provider searches, and prior authorization requests. It enables developers to test healthcare workflows using synthetic data through the Model Context Protocol.Apache 2.0
- FlicenseNot gradedqualityBmaintenanceRead-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.-
- AlicenseAqualityBmaintenanceMCP server to simulate NHCX payer-side actions for testing provider integrations, enabling approval, rejection, querying, and forwarding of cases. It automates the payer workflow through tools like process case and get user role.5449MIT
- FlicenseAqualityBmaintenanceMCP server that exposes life-insurance back-office tools (policy document search, application status, product/underwriting rules) to LLM agents. Enables agents to retrieve policy documents, check application status, and evaluate underwriting rules via hybrid search and rule lookup.3-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/shankarmaheswaran/insurance-policy-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server