Insurance Premium Calculator
This MCP server provides tools to calculate and compare insurance premiums across term, health, and vehicle policies based on age and coverage. It allows users to refine health insurance estimates by factoring in smoking status and pre-existing conditions.
README
Insurance Premium Calculator - MCP Server
A simple Model Context Protocol (MCP) server that provides insurance premium calculation services. This server implements three main tools for calculating and comparing insurance premiums.
Features
Tools Available
- Calculate Basic Premium - Calculates basic insurance premium based on age, coverage amount, and policy type
- Calculate Health Premium with Conditions - Calculates health insurance premium including pre-existing conditions and smoking status
- Compare Policies - Compares premium for all policy types (term, health, vehicle) for a given age and coverage
Installation
npm install
Usage
Running the Server
To run the MCP server with the inspector:
npx @modelcontextprotocol/inspector node index.js
The server will start and display "Insurance Premium Calculator MCP Server is running!" when ready.
Tools Documentation
1. calculate_basic_premium
Calculates basic insurance premium based on age, coverage and policy type.
Parameters:
age(number): Age of the person (18-80)coverage_amount(number): Coverage amount in rupeespolicy_type(enum): Type of insurance policy ("term", "health", "vehicle")
2. calculate_health_premium
Calculates health insurance premium including pre-existing conditions.
Parameters:
age(number): Age of the personcoverage_amount(number): Coverage amount in rupeespre_existing_condition(enum): Pre-existing health condition ("none", "diabetes", "hypertension", "heart_disease")smoker(boolean): Whether the person is a smoker
3. compare_policies
Compares premium for all policy types for a given age and coverage.
Parameters:
age(number): Age of the personcoverage_amount(number): Coverage amount in rupees
Technology Stack
- Node.js
- @modelcontextprotocol/sdk - MCP server implementation
- Zod - Data validation
Testing with Claude Desktop
- Ensure you have Claude Desktop installed
- Run the MCP server:
npx @modelcontextprotocol/inspector node index.js - Open Claude Desktop
- Connect to the MCP server:
- Claude Desktop should automatically detect the running MCP server
- If not, you may need to follow the instructions in Claude Desktop to manually connect to a local MCP server
- Test the tools:
- Use the Claude Desktop interface to interact with the MCP server
- You can test each tool by providing the required parameters
- Example prompts:
- "Calculate the basic term insurance premium for a 35-year-old with ₹500,000 coverage"
- "What's the health insurance premium for a 40-year-old non-smoker with ₹1,000,000 coverage and diabetes?"
- "Compare all policy types for a 30-year-old with ₹750,000 coverage"
- View results: Claude Desktop will display the JSON responses from the MCP server in a readable format
Note
Claude Desktop provides an intuitive interface for interacting with MCP servers without having to write custom code. It supports tool discovery, parameter validation, and response visualization.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.