The Calculator MCP server provides basic calculator operations via the Model Context Protocol (MCP), primarily for testing, toy projects, and integration with LLMs.
Operations include:
Addition, subtraction, multiplication, division, and modulus
Square root calculation
Features:
Programmatic integration using custom transports
SSE transport support for environments without displays
VS Code/VS Code Insiders integration
Enables GitHub Copilot agents in VS Code to use calculator functionality for basic mathematical operations including addition, subtraction, multiplication, division, modulo, and square root.
Calculate MCP
A Model Context Protocol (MCP) server that provides browser automation capabilities using basic calculator feature. This server enables LLMs to interact with calculator. (I actually made it for a test program)
Use Cases
The test code for to connect MCP feature.
The toy projects
Example config
Installation in VS Code
Alternatively, you can install the Playwright MCP server using the VS Code CLI:
After installation, the Calculator MCP server will be available for use with your GitHub Copilot agent in VS Code.
CLI Options
The Calculator MCP server supports the following command-line options:
--port <port>: Port to listen on for SSE transport
Running headed browser on Linux w/o DISPLAY
When running headed browser on system w/o display or from worker processes of the IDEs,
run the MCP server from environment with the DISPLAY and pass the --port flag to enable SSE transport.
And then in MCP client config, set the url to the SSE endpoint:
Programmatic usage with custom transports
Tools
add
sub
mul
div
mod
sqrt