Back to Home
srinath1 icon

MCP_Calculate_Server

by srinath1

Overview

Provides a Model Context Protocol (MCP) server with calculator tools, documentation access, and prompt templating for integration with AI clients like Claude Desktop.

Installation

Run Command
python server.py

Environment Variables

  • TRANSPORT
  • HOST
  • PORT
  • TYPESDK_PATH

Security Notes

The 'calculate' tool uses Python's `eval()` function to evaluate mathematical expressions. Although a `safe_dict` is used to limit available functions, `eval()` is inherently dangerous and notoriously difficult to secure against all forms of malicious input. An attacker capable of controlling the `expression` input could potentially exploit this for arbitrary code execution, privilege escalation, or denial-of-service, even with a restricted environment. This represents a critical vulnerability.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassHigh
Avg Tokens1000
Stars0
Forks0
Last Update2025-12-14

Tags

MCPPythonCalculatorAI ToolsPrompt Templates