Sign inSign up

tresor4k/macalc-mcp

By tresor4k

•Updated 6 days ago

Everyday calculator MCP server (stdio): 15 core tools, full macalc catalog on demand. No API key.

Image
0

249

tresor4k/macalc-mcp repository overview

⁠macalc-mcp — everyday calculator MCP server

Docker image of the macalc MCP server⁠: a stdio Model Context Protocol⁠ server that gives an AI assistant real calculators instead of mental arithmetic. Free, no API key, no account.

The image is built from the tagged source of the npm package macalc-mcp (same version as the image tag) on node:22-alpine, for linux/amd64 and linux/arm64, and runs as a non-root user.

⁠Use it

In the configuration of your MCP client (Claude Desktop, Cursor, VS Code…):

{
  "mcpServers": {
    "macalc": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "tresor4k/macalc-mcp:latest"]
    }
  }
}

The server talks MCP over stdin/stdout, so -i is required. It forwards each calculation to the public endpoint https://macalculatriceenligne.com/api/mcp: the container needs outbound HTTPS.

⁠What you get

15 tools by default, kept small on purpose so they do not crowd the context window of the assistant:

ToolWhat it does
calculate_french_income_taxFrench income tax (family quotient)
calculate_french_salaryFrench gross to net salary
calculate_us_federal_taxUS federal income tax
calculate_uk_income_taxUK income tax
calculate_canada_federal_taxCanadian federal income tax
calculate_mortgageMonthly payment, total interest, amortization schedule
calculate_compound_interestCompound growth with yearly breakdown
calculate_loan_paymentAmortizing loan
calculate_percentagePercent of total, percent change
calculate_vat_genericAdd or remove VAT, GST or sales tax
calculate_bmiBody Mass Index
calculate_tdeeMaintenance calories
list_bundlesThematic bundles of the full catalog
get_bundle_toolsTools inside one bundle
call_any_calculatorCall any calculator of the catalog by name

The three last tools reach the rest of the catalog (construction, conversions, running, real estate, Belgium, Switzerland, Quebec…). The calculators are the ones published on MaCalculatriceEnLigne⁠, a French site of free online calculators; the HTTP API is documented in the API reference⁠.

⁠Environment variables

VariableEffect
MACALC_MCP_FULL=1Expose the full remote catalog instead of the 15 core tools
MACALC_MCP_URLOverride the endpoint (default https://macalculatriceenligne.com/api/mcp)
docker run -i --rm -e MACALC_MCP_FULL=1 tresor4k/macalc-mcp:latest

⁠No Docker?

The same server runs with npx -y macalc-mcp, or without any install through the remote endpoint above for clients that support Streamable HTTP.

⁠Notes

The results are an aid to calculation, not tax, legal or medical advice; official texts prevail. Source and issues: https://github.com/tresor4k/macalc-mcp⁠ — MIT licence.

Tag summary

Content type

Image

Digest

sha256:9a71468f5…

Size

64.6 MB

Last updated

6 days ago

docker pull tresor4k/macalc-mcp