{
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "name": "dev.pages.utilvet/utilvet",
  "title": "UtilVet",
  "description": "Exact utilities agents get wrong: business days, holidays, time zones, cron, units, FX, JSON repair.",
  "version": "1.2.0",
  "websiteUrl": "https://utilvet.pages.dev/",
  "icons": [
    {
      "src": "https://utilvet.pages.dev/favicon.svg",
      "mimeType": "image/svg+xml"
    }
  ],
  "remotes": [
    {
      "type": "streamable-http",
      "url": "https://utilvet.pages.dev/mcp"
    }
  ],
  "_meta": {
    "dev.pages.linkvet/discovery": {
      "tools": [
        "business_days",
        "public_holidays",
        "timezone_convert",
        "cron_next",
        "unit_convert",
        "currency_convert",
        "json_repair",
        "json_validate",
        "regex_test",
        "csv_to_json",
        "text_diff",
        "hash_encode",
        "uuid_generate",
        "semver_compare",
        "text_stats",
        "slugify",
        "detect_language"
      ],
      "auth": "none",
      "free_tier": "100 calls/day/IP",
      "paid": "x402 USDC on Base $0.001/call; L402 100 sats per 1000 calls",
      "llms": "https://utilvet.pages.dev/llms.txt",
      "openapi": "https://utilvet.pages.dev/openapi.json"
    }
  },
  "serverInfo": {
    "name": "utilvet",
    "title": "UtilVet",
    "version": "1.2.0"
  },
  "transport": {
    "type": "streamable-http",
    "url": "https://utilvet.pages.dev/mcp"
  },
  "authentication": {
    "required": false
  },
  "tools": [
    {
      "name": "business_days",
      "title": "Count or add business days (with public holidays)",
      "description": "Count business days between two dates, or add/subtract N business days from a date, skipping weekends and (optionally) the country's official public holidays. Returns the holidays skipped. Exact; do not do this in your head.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "description": "Start date YYYY-MM-DD"
          },
          "end": {
            "type": "string",
            "description": "End date YYYY-MM-DD (to count business days between)"
          },
          "add_days": {
            "type": "integer",
            "description": "Or: number of business days to add (negative to subtract)"
          },
          "country": {
            "type": "string",
            "description": "ISO country code for holidays, e.g. US, GB, DE (optional)"
          }
        },
        "required": [
          "start"
        ]
      }
    },
    {
      "name": "public_holidays",
      "title": "Public holidays for a country and year",
      "description": "List official public holidays for 100+ countries for a given year (date, local name, English name, national or regional), from the Nager.Date open dataset.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "description": "ISO 3166 alpha-2 code, e.g. US"
          },
          "year": {
            "type": "integer",
            "description": "Year (default current)"
          }
        },
        "required": [
          "country"
        ]
      }
    },
    {
      "name": "timezone_convert",
      "title": "Convert a time between time zones (DST-aware)",
      "description": "Convert a date/time from one IANA time zone to one or more others with correct daylight-saving rules. Returns local times, UTC offsets, abbreviations and the UTC instant.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "time": {
            "type": "string",
            "description": "Time: ISO datetime, 'YYYY-MM-DD HH:mm', or 'now'"
          },
          "from_tz": {
            "type": "string",
            "description": "IANA zone of the input wall time (default UTC; ignored if time has an offset)"
          },
          "to_tz": {
            "type": "string",
            "description": "Target IANA zone(s), comma-separated, e.g. America/New_York,Asia/Tokyo"
          }
        },
        "required": [
          "time",
          "to_tz"
        ]
      }
    },
    {
      "name": "cron_next",
      "title": "Explain a cron expression and list next run times",
      "description": "Parse a cron expression and return the next N run times in a time zone (DST-aware), plus a plain-English description. Validates syntax.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expression": {
            "type": "string",
            "description": "5-field cron or @daily/@hourly/@weekly/@monthly/@yearly"
          },
          "count": {
            "type": "integer",
            "description": "How many next runs (default 5, max 50)"
          },
          "timezone": {
            "type": "string",
            "description": "IANA time zone (default UTC)"
          },
          "from": {
            "type": "string",
            "description": "Start from this ISO time (default now)"
          }
        },
        "required": [
          "expression"
        ]
      }
    },
    {
      "name": "unit_convert",
      "title": "Convert units (length, mass, volume, area, speed, data...)",
      "description": "Exact unit conversion across length, mass, volume, area, speed, time, data size (SI and binary), energy, pressure, power and temperature using standard definitions.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "description": "Number to convert"
          },
          "from": {
            "type": "string",
            "description": "Unit, e.g. mi, kg, gal, f, mb"
          },
          "to": {
            "type": "string",
            "description": "Target unit"
          }
        },
        "required": [
          "value",
          "from",
          "to"
        ]
      }
    },
    {
      "name": "currency_convert",
      "title": "Convert currency at ECB reference rates",
      "description": "Convert an amount between ~30 currencies using European Central Bank reference rates (latest or historical date since 1999). Reference rates, not executable quotes.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Amount (default 1)"
          },
          "from": {
            "type": "string",
            "description": "ISO 4217 code, e.g. USD"
          },
          "to": {
            "type": "string",
            "description": "Target code(s), comma-separated"
          },
          "date": {
            "type": "string",
            "description": "Historical date YYYY-MM-DD (optional)"
          }
        },
        "required": [
          "from",
          "to"
        ]
      }
    },
    {
      "name": "json_repair",
      "title": "Repair broken JSON (LLM output)",
      "description": "Fix malformed JSON typically produced by LLMs: code fences, leading prose, single quotes, unquoted keys, trailing commas, comments, Python True/False/None, NaN, missing closing brackets. Returns the parsed JSON and a list of fixes.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "The broken JSON text"
          }
        },
        "required": [
          "text"
        ]
      }
    },
    {
      "name": "json_validate",
      "title": "Validate JSON against a JSON Schema",
      "description": "Validate data against a JSON Schema (core keywords incl. type, required, properties, enum, pattern, formats, anyOf/oneOf, $ref). Returns every error with its JSON path. Use before returning structured output.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "description": "JSON value or JSON string"
          },
          "schema": {
            "description": "JSON Schema (object or string); omit to check syntax only"
          },
          "repair": {
            "type": "boolean",
            "description": "Try json_repair on invalid input (default true)"
          }
        },
        "required": [
          "data"
        ]
      }
    },
    {
      "name": "regex_test",
      "title": "Test a regular expression",
      "description": "Run a JavaScript regular expression against text and return all matches with index, capture groups and named groups, or the replaced text. Confirms a regex works before you rely on it.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pattern": {
            "type": "string",
            "description": "JavaScript regex pattern (no slashes)"
          },
          "text": {
            "type": "string",
            "description": "Text to search"
          },
          "flags": {
            "type": "string",
            "description": "Flags, e.g. gi"
          },
          "replace": {
            "type": "string",
            "description": "Optional replacement string ($1 etc.)"
          }
        },
        "required": [
          "pattern",
          "text"
        ]
      }
    },
    {
      "name": "csv_to_json",
      "title": "Convert CSV to JSON",
      "description": "Parse CSV/TSV (RFC 4180 quotes, auto-detected delimiter) into JSON rows with inferred numbers/booleans, plus column names and row count.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "csv": {
            "type": "string",
            "description": "CSV text (max 500 KB)"
          },
          "delimiter": {
            "type": "string",
            "description": "Delimiter (auto-detected: , ; tab |)"
          },
          "header": {
            "type": "boolean",
            "description": "First row is header (default true)"
          }
        },
        "required": [
          "csv"
        ]
      }
    },
    {
      "name": "text_diff",
      "title": "Diff two texts",
      "description": "Compare two texts line-by-line or word-by-word and return a unified-style diff with counts of added/removed/unchanged and a similarity score.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "a": {
            "type": "string",
            "description": "Original text"
          },
          "b": {
            "type": "string",
            "description": "New text"
          },
          "mode": {
            "type": "string",
            "description": "line (default) or word"
          }
        },
        "required": [
          "a",
          "b"
        ]
      }
    },
    {
      "name": "hash_encode",
      "title": "Hash, encode/decode (SHA, base64, hex, URL, JWT)",
      "description": "Compute SHA-1/256/384/512 hashes or encode/decode base64, base64url, hex, URL and HTML entities, or decode a JWT's header and payload (signature not verified).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Input text"
          },
          "operation": {
            "type": "string",
            "description": "sha1|sha256|sha384|sha512|base64_encode|base64_decode|base64url_encode|base64url_decode|hex_encode|hex_decode|url_encode|url_decode|html_escape|html_unescape|jwt_decode"
          }
        },
        "required": [
          "text",
          "operation"
        ]
      }
    },
    {
      "name": "uuid_generate",
      "title": "Generate UUIDs (v4 or v7)",
      "description": "Generate cryptographically random UUIDs, v4 or time-sortable v7.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "v4 (random, default) or v7 (time-ordered)"
          },
          "count": {
            "type": "integer",
            "description": "How many (1-100)"
          }
        }
      }
    },
    {
      "name": "semver_compare",
      "title": "Compare versions / check a semver range",
      "description": "Compare two semantic versions (incl. prerelease ordering) or test whether a version satisfies an npm-style range (^, ~, x, comparators, ||).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "a": {
            "type": "string",
            "description": "Version, e.g. 1.4.2"
          },
          "b": {
            "type": "string",
            "description": "Version to compare with"
          },
          "range": {
            "type": "string",
            "description": "Range to test a against, e.g. ^1.2.0 || >=2.0.0 <3"
          }
        },
        "required": [
          "a"
        ]
      }
    },
    {
      "name": "text_stats",
      "title": "Word, character, sentence and token counts",
      "description": "Count characters, words, sentences, paragraphs and lines, estimate LLM tokens and reading time, and compute a Flesch reading-ease score.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Text"
          }
        },
        "required": [
          "text"
        ]
      }
    },
    {
      "name": "slugify",
      "title": "Make a URL slug",
      "description": "Convert text to a clean URL slug: transliterates accents (é→e, ß→ss), drops punctuation, collapses separators, trims to a word boundary.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Text"
          },
          "separator": {
            "type": "string",
            "description": "Separator (default -)"
          },
          "max_length": {
            "type": "integer",
            "description": "Max length (default 80)"
          },
          "lowercase": {
            "type": "boolean",
            "description": "Lowercase (default true)"
          }
        },
        "required": [
          "text"
        ]
      }
    },
    {
      "name": "detect_language",
      "title": "Detect the language of a text",
      "description": "Detect the language of a text (25+ languages via script detection and stopword profiles) with ISO 639-1 code, name and confidence.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Text (a sentence or more works best)"
          }
        },
        "required": [
          "text"
        ]
      }
    }
  ]
}