Dates Le logo

Dates Le

Extracts dates and timestamps from text, returning notation, resolved epochs, and 1-based line and column positions.

Install Dates 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": {
    "dates-le": {
      "command": "npx",
      "args": [
        "-y",
        "dates-le-mcp"
      ]
    }
  }
}

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

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

dates-le exposes document date extraction through the MCP `extract_dates` tool. An agent supplies text plus optional format, filename, ordering, date-kind, deduplication, and result-limit settings; the server returns recognized dates, notation, resolvable epoch values, and source positions. It scans JSON, YAML, CSV, XML, logs, code, HTML, TOML, Markdown, and other text without reading files or making network requests.

Use cases

  • Inspect timestamps in application and access logs
  • Audit date literals and date-library calls in JavaScript or TypeScript
  • Review dates and epochs in JSON, YAML, CSV, and XML
  • Locate publication and modification dates in HTML

Key features

  • Extracts dates with notation, epoch values, and source positions
  • Recognizes ISO, RFC, numeric, written-month, and UTC date forms
  • Optionally detects Unix timestamps from seconds through nanoseconds
  • Adds format-aware matching for logs, code, HTML, and structured data
  • Supports ambiguous numeric-date ordering and result limits
  • Runs as an MCP server over stdio

Tools1

What Dates Le lets your agent do. Expand a tool for its parameters.

Verified live~556 tokens of context

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.

12/12 checks healthy over the last 62d

What it can do

From the 1 tool this server returned when we ran it.

Read-only tools · 1
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age85 days
Maintainers1

Observed 2026-10-30 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · dates-le-mcp (npm)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
npm downloads553Package downloads in the last 30 days.
Last commit15d agoMost recent push to the default branch.
Tools exposed1Callable tools this server registers over MCP.

How Dates Le works

What dates-le does

dates-le turns date and timestamp discovery into an MCP tool call. Its main operation, extract_dates, accepts document content and reports each recognized occurrence with the original notation, a resolved epoch value when conversion is possible, and its 1-based line and column.

The shared matcher covers ISO 8601 extended, basic, week, and ordinal forms; RFC-style dates; UTC strings; numeric dates; and dates with written month names. Numeric dates can use either month-first or day-first interpretation. Calendar validation filters out impossible dates, and numeric years are limited to 1900 through 2099.

Format hints add specialized recognition. Log and plaintext input can include common log timestamps, syslog dates, and Apache access-log timestamps. JavaScript and TypeScript input can inspect string arguments passed to common date constructors and libraries. HTML adds date-bearing attributes, relevant meta tags, and JSON-LD publication or modification dates.

How it works

The server communicates over MCP using standard input and output. It receives the text to scan as a tool argument and returns structured extraction results; it does not open local files or make outbound requests. This makes it suitable for agents that already have file contents, editor buffers, or generated text available.

The tool accepts arguments equivalent to:

  • content: text to inspect.
  • format and filename: optional context for format-specific matching.
  • dedupe: controls duplicate handling.
  • dateOrder: chooses mdy or dmy for ambiguous numeric dates, defaulting to mdy.
  • kinds: selects date categories; Unix epochs are included only when unix is listed.
  • maxResults: limits the returned records.

Results are capped at 500 by default and include meta.truncated when the limit prevents all matches from being returned.

Setup and configuration

The published MCP package is dates-le-mcp. Run it through npx:

Terminal
npx -y dates-le-mcp

A host using a JSON MCP configuration can register it with:

config.json
{
  "mcpServers": {
    "dates-le": {
      "command": "npx",
      "args": ["-y", "dates-le-mcp"]
    }
  }
}

Alternatively, install the package globally with npm install -g dates-le-mcp and configure the dates-le-mcp executable directly. The server requires no environment variables, API key, or server-specific configuration. Claude Code can add it with claude mcp add dates-le -- npx -y dates-le-mcp; Cursor and Windsurf can be pointed at the same command. VS Code 1.101 or newer can register the tool through its agent mode integration.

Tools and capabilities

extract_dates recognizes ISO, RFC, numeric, written-month, UTC, and optionally Unix timestamp representations. Unix values may be seconds, milliseconds, microseconds, or nanoseconds when selected through kinds. Fixed timezone labels include GMT, UT, UTC, Z, several US abbreviations, and selected regional abbreviations; these are treated as fixed offsets rather than zone-aware time zones.

Format-specific handling includes JSON, YAML, CSV, XML, logs, plaintext, JavaScript, TypeScript, HTML, TOML, Markdown, INI, CFG, CONF, and properties files. Unlisted text formats still receive the shared date-pattern scan.

Limitations and notes

Ambiguous numeric dates depend on dateOrder, while dotted numeric dates are always interpreted day first. Values embedded in longer numbers, words, or floating-point fractions are excluded from Unix timestamp matching. XML comments are skipped for XML-specific extraction. Dates that cannot be resolved to a timestamp are not returned, and timezone abbreviations use fixed offsets instead of daylight-saving or geographic zone rules.

Reviews

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

Frequently Asked Questions about Dates Le

dates-le is an MCP server that connects AI agents to a date-extraction engine through the `extract_dates` tool.

Install it by running `npx -y dates-le-mcp` or by adding that command to your host's MCP JSON configuration. You can also install it globally with `npm install -g dates-le-mcp` and invoke the `dates-le-mcp` executable directly.

dates-le supports JSON, YAML, CSV, XML, logs, plaintext, JavaScript, TypeScript, HTML, TOML, Markdown, INI, CFG, CONF, and properties files. Other text receives the shared date-pattern scan, without format-specific additions.

Yes, dates-le detects Unix timestamps when `unix` is included in the `kinds` argument. It handles seconds, milliseconds, microseconds, and nanoseconds, while restricting matches to supported digit lengths and a defined date range.

Yes, dates-le works with Cursor through the `npx dates-le-mcp` MCP command. The same server can also be used with Windsurf and Claude Code; Cursor users can install the related editor extension from Open VSX as well.

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 PreviewDates Le AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/dates-le?style=directory)](https://allmcps.com/mcp/dates-le)
HTML Embed
<a href="https://allmcps.com/mcp/dates-le"><img src="https://allmcps.com/api/badge/dates-le?style=directory" alt="Dates Le on AllMCPs" /></a>