SimpleCalculator-using-MCP-Server---Docker

DionBenFernandes-Dev/SimpleCalculator-using-MCP-Server---Docker

3.1

If you are the rightful owner of SimpleCalculator-using-MCP-Server---Docker and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A demonstration of custom Model Context Protocol (MCP) implementation for arithmetic operations, containerized with Docker for seamless deployment.

The SimpleCalculator using Model Context Protocol (MCP) Server & Docker is a project that showcases a custom implementation of the MCP for handling arithmetic operations. It is designed to be easily deployable using Docker, ensuring a seamless setup and execution environment. The server supports core mathematical operations such as addition, subtraction, multiplication, and division. The project is structured to facilitate easy management of dependencies using modern Python packaging tools like `pyproject.toml` and `uv.lock`. Additionally, the containerized architecture provides basic security by isolating the protocol communication within the Docker environment. This project is ideal for developers looking to understand MCP implementation and containerization using Docker.

Features

  • MCP Implementation: Custom protocol handling for mathematical operations.
  • Core Operations: Supports addition, subtraction, multiplication, and division.
  • Containerized Architecture: Docker-based deployment for seamless setup.
  • Dependency Management: Modern Python packaging with `pyproject.toml` and `uv.lock`.
  • Protocol Security: Basic communication security through container isolation.

Usages

docker deployment

bash
docker compose up --build

local setup

bash
pip install uv # recommended

uv venv

uv add -r requirements.txt

uv run ./src/server.py

testing

bash
uv run .\src\client.py