Calculator
About
Provides a secure mathematical expression evaluation service using Python's AST module for basic operations without relying on eval(), enabling quick calculations within conversations.
Details
- Author
- githejie
- Repository
- githejie/mcp-server-calculator
- GitHub stars
- 125
- Downloads
- 7,379
- License
- MIT License
- Categories
- Productivity, Community, Other, Design, Developer Tools, Infrastructure, Frontend
Jump to
- Provides a single calculate tool for expression evaluation.
- Accepts a required expression string parameter.
- Designed for integration with any MCP‑compatible client.
- No persistent storage or external dependencies beyond Python.
- Licensed under the MIT License for free use and modification.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
CalculatorCommand (node, npx, python, etc.)uvxArguments-
Argument 1
mcp-server-calculator
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install it via uvx (recommended) or pip install mcp-server-calculator. Then add the following configuration to your MCP client settings: for uvx use "command": "uvx", "args": ["mcp-server-calculator"]; for pip use "command": "python", "args": ["-m", "mcp_server_calculator"].
calculate
Calculates/evaluates the given expression. Parameters: expression (string, required) - Expression to be calculated.
- calculate - Calculates/evaluates the given expression.
- expression (string, required): Expression to be calculated
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"calculator": {
"env": {},
"args": [
"mcp-server-calculator"
],
"shell": false,
"command": "uvx"
}
}
}
Linux
{
"env": [],
"args": [
"mcp-server-calculator"
],
"shell": false,
"command": "uvx"
}
Macos
{
"env": [],
"args": [
"mcp-server-calculator"
],
"shell": false,
"command": "uvx"
}
Windows
{
"env": [],
"args": [
"-m",
"mcp_server_calculator"
],
"shell": false,
"command": "python"
}
A Model Context Protocol server for calculating. This server enables LLMs to use calculator for precise numerical calculations.
- calculate- Calculates/evaluates the given expression.
- expression(string, required): Expression to be calculated
When usinguvno specific installation is needed. We will useuvxto directly runmcp-server-calculator.
curl -LsSf https://astral.sh/uv/install.sh | sh
Alternatively you can installmcp-server-calculatorvia pip:
After installation, you can run it as a script using:
"mcpServers": { "calculator": { "command": "uvx", "args": ["mcp-server-calculator"] } }
Alternatively add this to your MCP client settings:
"mcpServers": { "calculator": { "command": "python", "args": ["-m", "mcp_server_calculator"] } }
mcp-server-calculator is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
AnkiConnect MCP server for interacting with Anki via AnkiConnect.
An MCP Server Integration with Apple Shortcuts
Add smart Backup ability to coding agents like Windsurf, Cursor, Cluade Coder, etc
A CalDAV MCP server to expose calendar operations as tools for AI assistants.
MCP server for easy access to education data through your Canvas LMS instance.
Tools to the query and execute of Dify workflows
Excel manipulation including data reading/writing, worksheet management, formatting, charts, and pivot table
Access and analyze Fathom Analytics data and reports
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




