Skip to main content
Glama
prasannafree

Geometry Engine MCP Server

by prasannafree

Geometry Engine MCP Server

An Model Context Protocol (MCP) server providing geometry utilities (like hypotenuse calculation and shape registration) over Server-Sent Events (SSE) via FastMCP and Docker.


πŸ“‹ Prerequisites

Before getting started, make sure you have the following installed:

  • Docker installed and running.

  • Visual Studio Code with an MCP-compatible Chat Extension (e.g., GitHub Copilot Agent / VS Code MCP Client).

  • Git installed.


Related MCP server: vscode-helper

πŸš€ Quick Start Guide

1. Clone the Repository

git clone [https://github.com/](https://github.com/)<your-username>/<your-repo-name>.git
cd <your-repo-name>

2. Build and Run the Docker Container

Build the Docker image:

docker build -t geometry-mcp-clean .

Run the container in detached mode on port 8000:

docker run -d --rm -p 8000:8000 --name geometry-mcp-server geometry-mcp-clean

Verify that the server is running by checking the active containers:

docker ps

3. Connect to VS Code

  1. Create a local configuration folder inside the repository (if it doesn't already exist):

    mkdir -p .vscode
  2. Create or update .vscode/mcp.json with the following configuration:

    {
      "servers": {
        "geometry-engine": {
          "type": "http",
          "url": "http://localhost:8000/sse"
        }
      }
    }
  3. Open VS Code Command Palette (Ctrl + Shift + P or Cmd + Shift + P).

  4. Search for and execute: MCP: Restart Server $\rightarrow$ select geometry-engine.


πŸ›  Available Tools

  • calculate_hypotenuse(a: float, b: float): Calculates the hypotenuse of a right-angled triangle given legs $a$ and $b$.

  • register_circle_shape(circle: CustomCircle): Saves circle properties (shape_name, radius) to the server state registry.


πŸ’¬ Usage Example

In your VS Code Chat panel:

"Calculate the hypotenuse for a right-angled triangle with sides 6 and 8 using geometry-engine."

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables control of Philips Hue lights through VS Code Copilot or Claude Desktop using natural language commands. Supports turning lights on/off, adjusting brightness, changing colors, and listing available lights on your Hue Bridge.
    2
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server providing 150+ mathematical functions across arithmetic, trigonometry, statistics, unit conversions, and more, consolidated into 15 powerful tools for seamless integration with VS Code Copilot and other MCP-compatible clients.
    MIT