MCP.so
ログイン

SimpleCalculator using Model Context Protocol (MCP) Server & Docker

@DionBenFernandes-Dev

SimpleCalculator using Model Context Protocol (MCP) Server & Docker について

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

基本情報

カテゴリ

クラウドとインフラ

ライセンス

MIT

ランタイム

python

トランスポート

stdio

公開者

DionBenFernandes-Dev

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "SimpleCalculator-using-MCP-Server---Docker": {
      "command": "docker",
      "args": [
        "compose",
        "up",
        "--build"
      ]
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is SimpleCalculator using Model Context Protocol (MCP) Server & Docker?

SimpleCalculator using Model Context Protocol (MCP) Server & Docker is a demonstration of a custom MCP implementation for arithmetic operations, containerized with Docker for seamless deployment. It performs addition, subtraction, multiplication, and division.

How to use SimpleCalculator using Model Context Protocol (MCP) Server & Docker?

Clone the repository, then deploy with Docker using docker compose up --build. Alternatively, run locally using Python with uv (install dependencies, then run uv run ./src/server.py). Use the included client script to send requests.

Key features of SimpleCalculator using Model Context Protocol (MCP) Server & Docker

  • Custom MCP implementation for arithmetic operations
  • Core operations: addition, subtraction, multiplication, division
  • Docker-based containerized deployment
  • Modern Python packaging with pyproject.toml and uv.lock
  • Basic security through container isolation

Use cases of SimpleCalculator using Model Context Protocol (MCP) Server & Docker

  • Demonstrating custom MCP protocol implementation
  • Performing basic arithmetic operations via MCP
  • Testing containerized MCP server deployment
  • Learning MCP architecture patterns

FAQ from SimpleCalculator using Model Context Protocol (MCP) Server & Docker

What arithmetic operations does SimpleCalculator using Model Context Protocol (MCP) Server & Docker support?

It supports addition, subtraction, multiplication, and division.

What are the prerequisites to run the server?

The only prerequisite mentioned is Docker for containerized deployment. For local development, Python and the uv package manager are recommended.

How do I deploy the server?

Run docker compose up --build in the cloned repository directory.

How can I test the server locally without Docker?

Clone the repo, install uv, create a virtual environment, add dependencies from requirements.txt, then run uv run ./src/server.py. In another terminal, run uv run ./src/client.py to interact.

What license does this project use?

It is licensed under the MIT License.

コメント

「クラウドとインフラ」の他のコンテンツ