Skip to main content
Glama
Reconstitution Calculator MCP Server

Reconstitution Calculator MCP Server

by PeptaraLabs

Reconstitution Calculator MCP Server

A small Model Context Protocol server with six lab math tools. Pure math, no network calls, no data stored. Same formulas as the Reconstitution Calculator browser extension.

Made by Peptara Labs (peptaralabs.io)

Tools

Tool

What it does

Inputs

reconstitution_concentration

Concentration after adding diluent to a powder, in mg/mL and mcg/mL, plus the volume in mL and µL that holds a wanted amount

powder_amount, powder_unit (mg, mcg, g), diluent_ml, optional wanted_amount, wanted_unit

convert_units

Converts mass, volume or mass concentration units

value, from, to

dilution_c1v1

Solves C1V1 = C2V2 for the one missing value and gives the diluent volume to add

any three of c1, v1, c2, v2

molarity

Mass needed for a molarity, or molarity from a mass

mw, volume, volume_unit, then molarity and molarity_unit or mass and mass_unit

percent_solution

Grams of solute for a percent w/v solution

percent_wv, final_volume_ml

serial_dilution

Concentration in each tube, plus transfer and diluent volume per tube

start_conc, factor, steps (1 to 20), volume_per_tube_ml

Supported units for convert_units:

  • Mass: kg, g, mg, mcg, ug, µg, ng

  • Volume: L, mL, uL, µL, nL

  • Mass concentration: g/L, mg/mL, mg/L, mcg/mL, ug/mL, µg/mL, mcg/L, ug/L, µg/L, ng/mL

Every tool checks its input. A bad value (a zero volume, a unit of the wrong kind, too many blanks) returns a clear error instead of a number.

Related MCP server: MCP Arithmetic Server

Install

Requires Node.js 18 or newer.

Run it with npx:

npx -y reconstitution-calculator-mcp

Or run it from a local copy:

npm install
npm start

Claude Desktop config

Add this to claude_desktop_config.json:

{
  "mcpServers": {
    "reconstitution-calculator": {
      "command": "npx",
      "args": ["-y", "reconstitution-calculator-mcp"]
    }
  }
}

From a local copy, point command at Node instead:

{
  "mcpServers": {
    "reconstitution-calculator": {
      "command": "node",
      "args": ["/absolute/path/to/mcp/src/index.js"]
    }
  }
}

Streamable HTTP

The server speaks stdio by default. Add --http to serve Streamable HTTP at /mcp (stateless, JSON responses):

node src/index.js --http --port 8081 --host 127.0.0.1

PORT, HOST and TRANSPORT=http work as environment variables too. GET /status returns a status line. The included Dockerfile and smithery.yaml run the HTTP mode in a container for remote hosting.

Example

Input to reconstitution_concentration:

{ "powder_amount": 10, "powder_unit": "mg", "diluent_ml": 2, "wanted_amount": 250, "wanted_unit": "mcg" }

Result: 5 mg/mL (5000 mcg/mL), and 250 mcg is in 0.05 mL (50 µL).

Tests

npm test

The test starts the server over stdio and over HTTP with the MCP SDK client, lists the tools, checks known answers for each tool, and runs one bad input per tool that must return an error.

License

MIT. For laboratory calculations only.

Available Tools

6 tools
convert_unitsConvert unitsA
Read-onlyIdempotent

Convert a value between units of the same kind: mass, volume or mass concentration. Supported units: kg, g, mg, mcg, ug, µg, ng, L, mL, uL, µL, nL, g/L, mg/mL, mg/L, mcg/mL, ug/mL, µg/mL, mcg/L, ug/L, µg/L, ng/mL. For laboratory calculations only.

Inputs: to (required), from (required), value (required).

dilution_c1v1Dilution C1V1 = C2V2A
Read-onlyIdempotent

Solve C1 x V1 = C2 x V2 for the single missing value. Give exactly three of c1, v1, c2, v2 in consistent units. Also returns the diluent volume to add. For laboratory calculations only.

Inputs: c1, c2, v1, v2.

molarityMolarityA
Read-onlyIdempotent

Relates mass, molarity, volume and molecular weight (mass g = M x L x g/mol). Give molarity to get the mass needed, or give mass to get the molarity. For laboratory calculations only.

Inputs: mw (required), volume (required), mass, molarity, +3 more.

percent_solutionPercent w/v solutionA
Read-onlyIdempotent

Grams of solute for a percent weight per volume solution (g = percent x mL / 100). For laboratory calculations only.

Inputs: percent_wv (required), final_volume_ml (required).

reconstitution_concentrationReconstitution concentrationA
Read-onlyIdempotent

Concentration of a lyophilized powder after adding a diluent volume, in mg/mL and mcg/mL. Optionally gives the volume in mL and µL that holds a wanted amount. For laboratory calculations only.

Inputs: diluent_ml (required), powder_amount (required), powder_unit, wanted_unit, +1 more.

serial_dilutionSerial dilutionA
Read-onlyIdempotent

Concentration in each tube of a serial dilution, plus the transfer and diluent volume per tube. Output concentrations use the same unit as start_conc. For laboratory calculations only.

Inputs: steps (required), factor (required), start_conc (required), volume_per_tube_ml (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools target distinct calculations (unit conversion, molarity, percent solution, reconstitution). The two dilution tools (serial_dilution vs dilution_c1v1) are the only pair with potential overlap, but their descriptions clearly separate multi-tube serial workflows from single C1V1=C2V2 solving.

    Naming Consistency4/5

    All names use snake_case, which is consistent. However, styles vary between verb_noun (convert_units, serial_dilution) and bare noun calculators (molarity, percent_solution), plus the formula-style dilution_c1v1, so it is not a single uniform pattern.

    Tool Count5/5

    Six tools is well-scoped for a lab calculator server, with each tool covering a distinct calculation type and no filler. Nothing feels thin or bloated.

    Completeness4/5

    The surface covers the main lab math: dilution, reconstitution, unit conversion, molarity, and percent solutions, giving solid lifecycle coverage for the stated purpose. Minor gaps like molar mass lookup or a dedicated mcg/mg dose-per-volume helper are workarounds rather than dead ends.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables basic arithmetic operations such as addition, subtraction, multiplication, and division on two numbers through MCP tools.
      4
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables local, deterministic clinical calculations for nursing and emergency care, including Parkland formula, body surface area, and IV drip rate tools with validated typed inputs.
      3
      23 PyPI
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to list, explain, and run the same 20 offline water-chemistry calculations with explicit units, assumptions, references, warnings, and worked steps. It is read-only and requires no API key, account, cloud calculation, or internet connection after installation.
      MIT