Calculator MCP
A Model Context Protocol server that provides basic calculator functionality for LLMs, enabling them to perform mathematical operations like addition, subtraction, multiplication, division, modulo, and square root.
Tools
add
Add two numbers
div
Divide two numbers
mod
Mod two numbers
mul
Multiply two numbers
sqrt
Square root of a number
sub
Subtract two numbers
README
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
<!-- eslint-skip -->
{
"mcpServers": {
"calculate": {
"command": "npx",
"args": [
"-y",
"@wrtnlabs/calculator@latest"
]
}
}
}
Installation in VS Code
Alternatively, you can install the Playwright MCP server using the VS Code CLI:
# For VS Code
code --add-mcp '{"name":"calculator","command":"npx","args":["-y", "@wrtnlabs/calculator-mcp@latest"]}'
# For VS Code Insiders
code-insiders --add-mcp '{"name":"calculator","command":"npx","args":["-y", "@wrtnlabs/calculator-mcp@latest"]}'
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.
npx @wrtnlabs/calculator-mcp@latest --port 8931
And then in MCP client config, set the url to the SSE endpoint:
<!-- eslint-skip -->
{
"mcpServers": {
"calculator": {
"url": "http://localhost:8931/sse"
}
}
}
Programmatic usage with custom transports
import { createServer } from "@wrtnlabs/calculator-mcp";
// ...
const server = createServer({
name: "calculator",
version: "1.0.0"
});
transport = new SSEServerTransport("/messages", res);
server.connect(transport);
Tools
- add
- sub
- mul
- div
- mod
- sqrt
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.