mcp-server-calculator

mcp-server-calculator

0

The project is a tutorial on building a basic MCP server that performs math operations, acting as a calculator for MCP clients. It emphasizes reproducible environment setups using Nix and provides alternative build methods.

Overview

  • This project demonstrates how to build a Model Context Protocol (MCP) server providing basic math operations, such as a calculator, to an MCP client.
  • Tech Stack: Python3, Pytest, MCP SDK, MCP CLI, Nix.
  • Users can set up using Smithery for automatic installation or develop with Nix for a reproducible environment.
  • Alternative setup with uv includes creating a virtual environment and building the package.
  • Testing the server locally can be done with MCP Inspector, a GUI tool, at http://localhost:5173.
  • Host/Client integration involves adding specific lines to the MCP config JSON.
  • Notes on using Windsurf IDE for MCP hosting.

Technology Notes

  • The use of Nix and Lix for the development environment.
  • Optional cloudflare resources for building remote MCP servers.