
Calcport
io.github.CloudCorpRecordsPublished by GitHub account CloudCorpRecordsv0.1.0Updated Oct 29, 2026
Safe arithmetic: evaluate expressions and add, subtract, multiply, divide.
Overview
Calcport is a local MCP server that gives an assistant safe arithmetic: one expression evaluator plus add, subtract, multiply and divide tools.
- What you can do
- Evaluate an expression with operators, parentheses, sqrt, abs, floor, ceil, round, pi and e
- Add two numbers
- Subtract one number from another
- Multiply two numbers
- Divide one number by another, with division by zero reported as an error
- When to use it
- Useful when you want an assistant to do exact arithmetic or check calculations without relying on its own mental math, and you prefer a tiny, sandboxed evaluator over a general code-execution tool.
- Requirements
- Runs as a local process over stdio, started with npx from the npm package or with docker from the container image. No accounts, API keys, environment variables or headers are declared, and no network access is needed at runtime.
Installation
In SourceWeft
- Open Calcport in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
calcport
calcport does arithmetic safely. Its centrepiece is an expression
evaluator that understands the usual operators, parentheses, a handful
of functions, and the constants pi and e — and nothing else. The
evaluator is a hand-written parser, so an expression can never turn
into code execution, a shell call, or a property lookup. Around it sit
four single-purpose operations for callers that just need one sum,
difference, product, or quotient.
Install
Or run the container image:
The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
CLI
Expressions may use + - * / % ^, parentheses, unary minus, the
functions sqrt, abs, floor, ceil, and round, and the
constants pi and e. ^ is right-associative, so 2^3^2 is 512.
Exit codes: 0 on success, 1 when a calculation cannot be done
(division by zero, a malformed expression — the error says why), 2
for usage errors.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
MCP client configuration:
Tools
Development
License
MIT — see LICENSE.
Source: README.md at commit b3087c2
Tools
0Version history
1- v0.1.0LatestOct 29, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts