ISO 8601 Duration Parser

ISO 8601 Duration Parser MCP Connector for Claude

A+

Extracts time components and calculates total seconds from ISO 8601 duration strings.

3 tools Official Updated Oct 1, 2026 Official Vinkius Partner

This MCP server provides deterministic parsing of ISO 8601 duration strings. It allows AI agents to break down time spans into specific components like years, months, and days, or convert a full duration into a total count of seconds. Use parse_duration_components to get a detailed breakdown, calculate_total_seconds for a single numeric magnitude, or validate_syntax to ensure a string follows the strict ISO 8601 format.

iso8601durationtime-parsingdeterministictime-conversion

3 tools expose this connector's capabilities to your AI agent.

calculate_total_seconds

Determines the total magnitude of a duration in seconds

parse_duration_components

Extracts individual time units from a valid ISO 8601 duration string

validate_syntax

Checks if a given string strictly adheres to the ISO 8601 duration specification

See how to talk to your AI agent using ISO 8601 Duration Parser.

How many seconds are in the duration P1Y?

31536000

Break down the duration P1M2DT3H.

1 month, 2 days, and 3 hours.

Is 'PT15M' a valid ISO 8601 duration?

Yes, it is a valid duration representing 15 minutes.

To ensure deterministic results, a year is treated as exactly 365 days and a month is treated as exactly 30 days.

Related Connectors