MCP Directory
Back

sample-calculator-mcp-server

by dungnt7 · C# · ★ 0

Sample codebase to learn about Microsoft's ModelContextProtocol (MCP) framework

Install

git clone https://github.com/dungnt7/sample-calculator-mcp-server.git

Auto-generated from the repo's primary language — check the repo's own README for its exact install instructions.

Claude Desktop config

A starting point for your claude_desktop_config.json (auto-generated — the repo's README may specify a published package name or required env vars):

{
  "mcpServers": {
    "sample-calculator-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "github:dungnt7/sample-calculator-mcp-server"
      ]
    }
  }
}

From the README

This project is a sample codebase to learn about Microsoft's ModelContextProtocol (MCP) framework. It features a simple MCP Server that acts as a calculator tool, running on Stdio transport. The solution demonstrates how a basic MCP Server can be implemented and interacted with using an MCP Client. 1. Clone this repository to your local machine. 2. Open the solution in Visual Studio IDE or other compatible IDEs (with .NET 9 support). 3. Before running, update the following constant values in : - : Replace with your own GitHub token. Ensure you select "Copilot" as the scope when creating th…
Read full README on GitHub →

Related other servers