Units LE logo

Units LE

Extracts durations, byte sizes, percentages, and frequencies into base units while refusing ambiguous quantities.

Install Units LE

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "units-le": {
      "command": "npx",
      "args": [
        "-y",
        "units-le-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y units-le-mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Units-LE MCP server exposes quantity extraction to MCP agents through the `extract_units` tool over Node.js stdio. Ambiguous, malformed, compound-arithmetic, fractional-byte, and out-of-range values are reported with reasons instead of being guessed. Reach for it when reviewing configuration, migration files, policies, logs, or other text containing comparable limits.

Use cases

  • Compare timeout values across configuration files
  • Normalize memory limits before a migration
  • Review percentages and frequencies in structured text
  • Find ambiguous units during configuration review

Key features

  • Extracts durations, bytes, percentages, and frequencies
  • Normalizes values to milliseconds, bytes, ratios, or hertz
  • Reports source locations and structured key paths
  • Refuses ambiguous and unsafe quantities
  • Scans structured formats and unstructured text

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

7/7 checks healthy over the last 27d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · units-le-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads457Package downloads in the last 30 days.
Last commit15d agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Units LE works

What the Units-LE MCP server does

Units-LE MCP server gives an MCP-compatible agent a way to inspect text for explicit quantities. Its extract_units tool covers four dimensions: durations normalized to milliseconds, byte quantities normalized to bytes, percentages normalized to ratios, and frequencies normalized to hertz. Results retain the written value and identify where it appeared, including a line, column, and, for structured formats, a key path.

The tool is intended for comparison and review rather than policy enforcement. It reports what a document says and does not decide whether a timeout, memory limit, retention period, or frequency is appropriate. It also does not rewrite the input or apply arithmetic to expressions.

How it works

Units-LE MCP server receives text and looks for a number attached to a recognized unit. JSON, YAML, CSV, TOML, INI, and dotenv content can be parsed for structure; other content is scanned as text. This allows the same extraction approach to cover configuration files, Kubernetes manifests, Terraform files, Markdown tables, and logs.

Recognized examples include standard duration symbols, ISO-8601 durations, duration compounds such as 1h30m, SI and IEC byte units, Kubernetes byte units, %, and common hertz symbols. Case is significant: byte and bit-like spellings are not silently treated as equivalent.

When interpretation is unsafe, the result remains visible with a reason. Ambiguous symbols, locale-style numeric separators, arithmetic expressions, fractional byte counts, and values outside the supported range can be refused. An SI/IEC byte notation hazard is handled differently: the standard base value is returned together with a warning reason rather than being discarded.

Setup and configuration

Run the MCP server with Node.js tooling using:

Terminal
npx units-le-mcp

The README identifies this as a stdio server for MCP agents. Configure the command in the MCP client of your choice, then use the exposed extraction tool against document text.

The project also offers separate editor and command-line entry points, but those are not required to use the MCP server. The VS Code extension and Rust CLI should therefore be treated as alternative interfaces rather than MCP configuration steps.

Tools and capabilities

Units-LE MCP server exposes the documented extract_units tool. Its supported output can represent:

  • A normalized base value for unambiguous quantities.
  • The original quantity text.
  • The quantity dimension and unit interpretation.
  • A source line and column, using editor-style UTF-16 column units.
  • A structured key path when the input format provides one.
  • A refusal reason when normalization is unsafe.

A bare number without a unit is excluded. Physical units such as length, mass, and temperature are outside the documented scope, as is general unit algebra such as meters per second squared.

Limitations and notes

The parser deliberately avoids guessing. For example, symbols whose meaning depends on context can be refused, and calendar years are not converted to a fixed duration. Compound quantities must follow the supported quantity grammar; an arithmetic expression is not treated as a compound measurement.

Text scanning can also identify quantity-shaped text inside opaque values, so callers should review the reported source location before treating every row as meaningful. The server reports findings but does not validate them against defaults, runbooks, platform policies, or recommended thresholds.

Those capabilities should not be assumed from the editor and CLI features documented for the wider Units-LE project.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Units LE

Units-LE is an MCP server that connects MCP-compatible agents to text containing measurable quantities through the `extract_units` tool. It finds durations, byte sizes, percentages, and frequencies, converts them to base units, and reports locations and refusal reasons when a value is ambiguous or unsafe to interpret.

Install or run it with `npx units-le-mcp` and register that command as a stdio MCP server in your client.

Units-LE supports durations, byte quantities, percentages, and frequencies. It normalizes them to milliseconds, bytes, ratios, and hertz respectively, with support for documented SI, IEC, Kubernetes, ISO-8601, and common duration or frequency spellings.

Yes, Cursor is named as a supported VS Code-based editor for the wider Units-LE project.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewUnits LE AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/units-le?style=directory)](https://allmcps.com/mcp/units-le)
HTML Embed
<a href="https://allmcps.com/mcp/units-le"><img src="https://allmcps.com/api/badge/units-le?style=directory" alt="Units LE on AllMCPs" /></a>