Calculate MCP
by wrtnlabs
A Model Context Protocol (MCP) server that provides browser automation capabilities using basic calculator feature. This server enables LLMs to interact with calculator.
Last updated: N/A
What is Calculate MCP?
Calculate MCP is a Model Context Protocol server that allows Large Language Models (LLMs) to interact with a basic calculator feature, enabling browser automation for mathematical operations.
How to use Calculate MCP?
The server can be installed and used via VS Code using the provided CLI commands or programmatically with custom transports. Configuration examples are provided for both VS Code integration and programmatic usage, including setting up SSE transport for environments without a display.
Key features of Calculate MCP
Basic calculator functions (add, sub, mul, div, mod, sqrt)
MCP server for LLM interaction
Browser automation capabilities
Support for SSE transport
Use cases of Calculate MCP
Test code for MCP feature connection
Toy projects
Enabling LLMs to perform calculations
FAQ from Calculate MCP
What is MCP?
What is MCP?
MCP stands for Model Context Protocol. It enables communication and interaction between different models or systems.
How do I install the Calculate MCP server in VS Code?
How do I install the Calculate MCP server in VS Code?
Use the provided CLI commands: code --add-mcp '{"name":"calculator","command":"npx","args":["-y", "@wrtnlabs/calculator-mcp@latest"]}'
or code-insiders --add-mcp '{"name":"calculator","command":"npx","args":["-y", "@wrtnlabs/calculator-mcp@latest"]}'
.
How do I run the server on Linux without a DISPLAY?
How do I run the server on Linux without a DISPLAY?
Run the server from an environment with the DISPLAY and pass the --port
flag to enable SSE transport. Example: npx @wrtnlabs/calculator-mcp@latest --port 8931
.
What are the available calculator tools?
What are the available calculator tools?
The server provides tools for addition (add), subtraction (sub), multiplication (mul), division (div), modulo (mod), and square root (sqrt).
Can I use custom transports with the server?
Can I use custom transports with the server?
Yes, you can use custom transports by creating a server instance and connecting it to your transport. See the programmatic usage example in the README.