MCP Calculator Server

by yinebebt

297 downloads
Not rated
GitHub

About

A Model Context Protocol (MCP) server that provides calculator functionality for MCP clients.

Details

Author
yinebebt
Downloads
297
Categories
Other

- Supports addition, subtraction, multiplication, and division.
- Fully compatible with Claude Desktop and other MCP clients.
- Provides a single calculate tool that accepts a mathematical expression.

Install the server using Go: go install github.com/yinebebt/mcp-calculator-server. Then add the server to your Claude Desktop configuration file by specifying the path to the binary under mcpServers. After updating the configuration, restart Claude Desktop. Once configured, you can ask Claude to perform calculations, for example “Can you calculate 2 + 3?”.

MCP Calculator Server

A Model Context Protocol (MCP) server that provides calculator functionality for MCP clients.

Features

- Mathematical Operations: Supports addition (+), subtraction (-), multiplication (), and division (/)
- MCP Protocol Compliance: Fully compatible with Claude Desktop and other MCP clients

Installation

go install github.com/yinebebt/mcp-calculator-server

Configuration

Claude Desktop Configuration

Add this server to your Claude Desktop configuration file:

{
  "mcpServers": {
    "calculator": {
      "command": "/path/to/mcp-calculator-server"
    }
  }
}

Restart Claude Desktop

After updating the configuration, restart Claude Desktop to load the new server.

Usage

Once configured, you can ask Claude to perform calculations like "Can you calculate 2 + 3?"

Tool Reference

calculate

Performs basic mathematical operations.

Parameters:
- expression (string, required): A mathematical expression to evaluate

Supported operations:
- Addition: +
- Subtraction: -
- Multiplication:

- Division: /

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.