# Calculator Mcp

> Calculator MCP server on npx

- **Type:** MCP server
- **Install:** `agentstack add mcp-wrtnlabs-calculator-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [wrtnlabs](https://agentstack.voostack.com/s/wrtnlabs)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [wrtnlabs](https://github.com/wrtnlabs)
- **Source:** https://github.com/wrtnlabs/calculator-mcp
- **Website:** https://www.npmjs.com/package/@wrtnlabs/calculator-mcp

## Install

```sh
agentstack add mcp-wrtnlabs-calculator-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

## 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

```js
{
  "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:

```bash
# For VS Code
code --add-mcp '{"name":"calculator","command":"npx","args":["-y", "@wrtnlabs/calculator-mcp@latest"]}'
```

```bash
# 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 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.

```bash
npx @wrtnlabs/calculator-mcp@latest --port 8931
```

And then in MCP client config, set the `url` to the SSE endpoint:

```js
{
  "mcpServers": {
    "calculator": {
      "url": "http://localhost:8931/sse"
    }
  }
}
```

### Programmatic usage with custom transports

```js
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**

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [wrtnlabs](https://github.com/wrtnlabs)
- **Source:** [wrtnlabs/calculator-mcp](https://github.com/wrtnlabs/calculator-mcp)
- **License:** MIT
- **Homepage:** https://www.npmjs.com/package/@wrtnlabs/calculator-mcp

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-wrtnlabs-calculator-mcp
- Seller: https://agentstack.voostack.com/s/wrtnlabs
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
