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
相關伺服器
Kone.vc
贊助Monetize your AI agent with contextual product recommendations
Synter Ads
Cross-platform ad campaign management for AI agents across Google, Meta, LinkedIn, Reddit, TikTok, and more. 140+ tools with read/write access.
Excel
Excel manipulation including data reading/writing, worksheet management, formatting, charts, and pivot table
MCP Trello
A server for interacting with Trello boards, handling API integration, rate limiting, and type safety.
Gamma MCP Server
Integrates with the Gamma API to generate presentations from prompts.
MCP Invoice Parser
Parses invoice data, uploads it to Google Sheets, and answers queries by fetching information from the sheet.
Outlook
Access your Microsoft 365 mail, calendar, and files using the Microsoft Graph API.
Homelab MCP
MCP servers for managing homelab infrastructure through Claude Desktop. Monitor Docker/Podman containers, Ollama AI models, Pi-hole DNS, Unifi networks, and Ansible inventory.
Mila MCP
Create, read, update docs, spreadsheets, and presentations via AI — 23 MCP tools for a full office suite with 74K+ users.
WooCommerce MCP Server
An MCP server for integrating with the WooCommerce e-commerce platform.
Kingdee K3Cloud ERP
MCP Server for Kingdee K3Cloud (金蝶云星空) — one of the most widely used ERP systems in China. Connects AI assistants (Claude Desktop, Cursor, Cline, Cherry Studio, etc.) to Kingdee ERP via natural language.