InsuranceCalculatorMcp 0.1.3-beta
{ "inputs": [], "servers": { "InsuranceCalculatorMcp": { "type": "stdio", "command": "dnx", "args": ["InsuranceCalculatorMcp@0.1.3-beta", "--yes"], "env": {} } } }
.vscode/mcp.json
settings file.
dotnet tool install --global InsuranceCalculatorMcp --version 0.1.3-beta
dotnet new tool-manifest
dotnet tool install --local InsuranceCalculatorMcp --version 0.1.3-beta
#tool dotnet:?package=InsuranceCalculatorMcp&version=0.1.3-beta&prerelease
nuke :add-package InsuranceCalculatorMcp --version 0.1.3-beta
InsuranceCalculatorMcp
An MCP (Model Context Protocol) server that provides insurance and pension calculation tools. This server exposes a single tool called CalculateInsuranceAndPension
that accepts a JSON payload with personal information and returns structured insurance and pension data.
Features
- Calculate insurance and pension benefits based on personal information
- Support for different marital statuses and family compositions
- Configurable through external group IDs and formatters
- Compatible with GitHub Copilot and other AI assistants that support MCP
Input Format
The CalculateInsuranceAndPension
tool accepts a JSON string with the following structure:
{
"calculatorPersonPayload": {
"age": 45,
"salary": 750000,
"degreeDisabled": 100,
"degreeMedicalDisabled": 100,
"maritalStatus": "enslig",
"children": []
},
"externalGroupId": "dnb123",
"formatter": "innmeldt"
}
Output Format
The tool returns a JSON string with the following structure:
{
"personalforsikringer": {
"dodsfall": 1500000,
"uforekapital": 1125000,
"uforepensjon": 450000,
"barnepensjon": 0,
"doedsfall_foer_pensjon": 1500000,
"medisinsk_invaliditet": 1125000
},
"ektefelleSamboerforsikring": {
"dodsfall": 0
},
"pensjon": {
"alderspensjon": 525000,
"pensjonsinnskudd": 5.0
}
}
Developing Locally
To test this MCP server locally without using a built MCP server package, configure your IDE to run the project directly using dotnet run
.
{
"servers": {
"InsuranceCalculatorMcp": {
"type": "stdio",
"command": "dotnet",
"args": [
"run",
"--project",
"<PATH TO PROJECT DIRECTORY>"
]
}
}
}
Testing the MCP Server
Once configured, you can ask your AI assistant to calculate insurance and pension benefits. For example: "Calculate insurance and pension for a 45-year-old with 750,000 salary, 100% disabled, single, with no children."
Publishing to NuGet.org
- Run
dotnet pack -c Release
to create the NuGet package - Publish to NuGet.org with
dotnet nuget push bin/Release/*.nupkg --api-key <your-api-key> --source https://api.nuget.org/v3/index.json
Using the MCP Server from NuGet.org
Once the MCP server package is published to NuGet.org, you can configure it in your preferred IDE. Both VS Code and Visual Studio use the dnx
command to download and install the MCP server package from NuGet.org.
For more detailed integration instructions, see the INTEGRATION_GUIDE.md file.
- VS Code: Create a
<WORKSPACE DIRECTORY>/.vscode/mcp.json
file - Visual Studio: Create a
<SOLUTION DIRECTORY>\.mcp.json
file
For both VS Code and Visual Studio, the configuration file uses the following server definition:
{
"servers": {
"InsuranceCalculatorMcp": {
"type": "stdio",
"command": "dnx",
"args": [
"<your package ID here>",
"--version",
"<your package version here>",
"--yes"
]
}
}
}
More information
.NET MCP servers use the ModelContextProtocol C# SDK. For more information about MCP:
Refer to the VS Code or Visual Studio documentation for more information on configuring and using MCP servers:
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last Updated |
---|---|---|
0.1.3-beta | 374 | 7/25/2025 |
0.1.2-beta | 373 | 7/25/2025 |
0.1.1-beta | 371 | 7/25/2025 |
0.1.0-beta | 386 | 7/25/2025 |