githejie_mcp_server_calculator

githejie_mcp_server_calculator

by githejie
A Model Context Protocol server for enabling precise numerical calculations in LLMs.

Calculator MCP Server

A Model Context Protocol (MCP) server designed to enable precise numerical calculations for Large Language Models (LLMs). This server provides a calculate tool that evaluates mathematical expressions, making it a valuable addition for applications requiring accurate computations.

Overview

The Calculator MCP Server is a lightweight Python-based server that integrates with MCP clients to perform mathematical calculations. It is particularly useful for LLMs that need to handle complex numerical tasks with precision.

Available Tools

calculate

  • Description: Evaluates a given mathematical expression.
  • Parameters:
  • expression (string, required): The mathematical expression to be calculated.

Installation

Using uv (Recommended)

To install and run the Calculator MCP Server using uv, follow these steps:

curl -LsSf https://astral.sh/uv/install.sh | sh

Using PIP

Alternatively, you can install the server via pip:

pip install mcp-server-calculator

After installation, run the server using:

python -m mcp_server_calculator

Configuration

Using uv (Recommended)

Add the following configuration to your MCP client settings:

"mcpServers": {
  "calculator": {
    "command": "uvx",
    "args": ["mcp-server-calculator"]
  }
}

Using PIP

For pip installations, use this configuration:

"mcpServers": {
  "calculator": {
    "command": "python",
    "args": ["-m", "mcp_server_calculator"]
  }
}

License

The Calculator MCP Server is licensed under the MIT License. This allows you to freely use, modify, and distribute the software, provided you comply with the terms of the license. For more details, refer to the LICENSE file in the repository.

About

This project is a Model Context Protocol server specifically designed for performing calculations. It is maintained by githejie and is open-source under the MIT License.

Resources

Project Stats

  • Stars: 3
  • Watchers: 1
  • Forks: 0

Languages

  • Python: 100.0%

Features & Capabilities

Categories
mcp_server model_context_protocol python calculator api_integration llm

Implementation Details

Stats

0 Views
3 GitHub Stars

Repository Info

githejie Organization

Similar MCP Servers

continuedev_continue by continuedev
25049
21423
9300