Calculate MCP
Enables LLMs to perform basic calculations using a calculator interface.
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
{
"mcpServers": {
"calculate": {
"command": "npx",
"args": [
"-y",
"@wrtnlabs/calculator-mcp@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:
{
"mcpServers": {
"calculator": {
"url": "http://localhost:8931/sse"
}
}
}
Programmatic usage with custom transports
import { createServer } from "@wrtnlabs/calculator-mcp";
// ... other import statement
const client = new Client({
name: "test client",
version: "0.1.0",
});
const server = createServer({
name: "calculator",
version: "1.0.0"
});
const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
await Promise.all([
client.connect(clientTransport),
server.connect(serverTransport),
]);
Tools
- add
- sub
- mul
- div
- mod
- sqrt
Related Servers
Maid-MCP
An MCP server that gives Claude Desktop a maid personality, complete with a Japanese-accented voice, visual avatar, and speech recognition.
Spendlog
Track expenses, income, budgets, and invoices directly in Claude with PDF export and tax reports.
PaperlessMCP
MCP server for Paperless-ngx document management. 43 tools for AI-powered document organization - full CRUD on documents, tags, correspondents, document types, storage paths, and custom fields.
PocketMCP
Turn your Android phone into an MCP (Model Context Protocol) server. AI agents and desktop scripts can call your phone for live data and actions over LAN
Pantry Persona
AI-powered kitchen management - track pantry inventory, plan meals, manage recipes, build shopping lists
Things 3 Extended
A desktop extension for the Things 3 task manager, providing advanced features like task movement, editing, and backups.
MIE - Memory Intelligence Engine
Persistent knowledge graph MCP server that gives AI agents shared memory across sessions and providers. Stores facts, decisions, entities, and events with typed relationships.
eSignatures
Contract and template management for drafting, reviewing, and sending binding contracts.
Pomera AI Commander
Turn messy text into clean output fast—GUI for humans, MCP tools for AI IDEs (Cursor/Claude). 33 deterministic text utilities.
MCP CSV Analysis with Gemini AI
Perform advanced CSV analysis and generate insights using Google's Gemini AI. Requires Gemini and Plotly API keys.