Skip to main content
Glama
Geometry Engine MCP Server

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: SharkMath MCP

๐Ÿš€ 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."

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    Related MCP Connectors

    Related MCP Servers

    • 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
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides geographic coordinate geometry tools for computing midpoints, centroids, bounding boxes, and point-in-bbox tests, enabling spatial calculations via natural language queries.
      52 npm
      MIT