← mate.tools API

mate.tools MCP server

A Model Context Protocol server that exposes mate.tools utilities as callable tools inside Claude Desktop, Claude Code, Cursor, Windsurf, or any MCP-compatible agent.

Currently exposed tools

27 MCP tools across 6 categories. Each calls the public mate.tools JSON API over HTTPS — no local data, no API keys, no signup. The list grows over time; npx -y always pulls the latest version.

Text

MCP tool nameWhat it does
count_linesCount lines, words, sentences, paragraphs and characters. Returns 16 metrics including duplicate-line detection and line-ending detection (LF/CRLF/CR).
case_convertConvert text into 9 case styles in one call: upper, lower, title, sentence, snake, kebab, camel, pascal, constant.
slugifyConvert any text to a URL-safe slug. Unicode-aware, configurable separator and length, optional transliteration of non-Latin characters.
sort_linesSort lines of text. Asc/desc, case-sensitivity, dedupe, natural-sort (line2 before line10), locale-aware collation.
lorem_ipsumGenerate placeholder text — paragraphs, sentences or words.
regex_testMatch / replace / split text with a PCRE regex. Returns capture-group offsets. ReDoS-protected (hard backtrack limit).
text_diffDiff two strings by line, word or character. Returns structured changes, unified diff string, and Jaccard similarity score.

Encoding

MCP tool nameWhat it does
base64_encodeBase64-encode text. Standard or URL-safe alphabet (RFC 4648 §5).
base64_decodeBase64-decode. Accepts standard + URL-safe, auto-fixes missing padding, returns hex when output isn't valid UTF-8.
url_encodePercent-encode a string. Component / form / path mode.
url_decodeDecode percent-encoded URL strings.

Crypto & auth

MCP tool nameWhat it does
hashMD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256, SHA3-512, CRC32 (or any subset of PHP's hash algorithms).
passwordGenerate cryptographically random passwords (CSPRNG). Configurable length, count, classes, ambiguous-char exclusion. Reports entropy.
password_strengthScore a password 0–4 (zxcvbn-style), entropy bits, offline-GPU crack-time estimate, concerns and suggestions.
credit_card_validateLuhn check + brand detection (Visa / MC / Amex / Discover / JCB / Diners / UnionPay / Maestro / RuPay). PAN never logged.

Data & structure

MCP tool nameWhat it does
json_formatValidate, pretty-print, minify or analyse JSON. Returns structural summary (node counts, max depth, top keys).
json_to_csvConvert a JSON array of objects to CSV. Configurable delimiter, columns, optional flattening of nested objects (dot keys).
xml_validateValidate XML well-formedness + optional XSD schema. Errors with line/column. XXE-safe.
sitemap_extractFetch + parse XML sitemaps. SSRF-protected. Optional recursive expansion of sub-sitemaps. lastmod/changefreq/priority metadata.
statsDescriptive statistics for a list of numbers — mean / median / mode / stddev / variance / percentiles / IQR / geometric / harmonic.
number_baseConvert integers between bases 2..36 + Roman numerals. Big-int safe via GMP.
finance_calcMulti-mode financial calculations: loan, compound interest, simple interest, discount, tip, sales tax, ROI, percentage, markup.
aspect_ratioCompute reduced aspect ratio (16:9, 4:3, 21:9, ...) from width × height, or scale a dimension to a target ratio.
color_convertConvert any color into hex / rgb / rgba / hsl / hsv / cmyk + closest named color + WCAG luminance and contrast (AA / AAA flags).

Date & time

MCP tool nameWhat it does
timestampBidirectional epoch ↔ ISO 8601 ↔ RFC 3339 ↔ human. Auto-detects epoch resolution (seconds, ms, µs, ns). Timezone-aware. Accepts natural language ("next monday", "+2 weeks").
date_mathAdd/subtract a duration from a date, or compute the diff between two dates. Optional business-day count (Mon–Fri).
age_calcCalculate age in years/months/days from DOB. Returns next birthday, days until, Western zodiac sign, generation label, total days/seconds.

The catalog grows over time. npx -y @mate-tools/mcp-server always fetches the latest published version — your client just needs a restart to pick up new tools.

Install in Claude Desktop

Open the Claude Desktop config file:

Add a mcpServers entry:

{
  "mcpServers": {
    "mate-tools": {
      "command": "npx",
      "args": ["-y", "@mate-tools/mcp-server"]
    }
  }
}

Save, restart Claude Desktop, and all 27 mate-tools tools will appear in the tools picker. No manual download, no global install.

Install in Claude Code

claude mcp add mate-tools npx -- -y @mate-tools/mcp-server

Install in Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "mate-tools": {
      "command": "npx",
      "args": ["-y", "@mate-tools/mcp-server"]
    }
  }
}

Install in Windsurf / other MCP clients

The server speaks MCP over stdio with the standard JSON-RPC 2.0 framing. Any MCP-compatible client can launch it as a subprocess with the same configuration shape as above.

The package

npm: @mate-tools/mcp-server · single file, zero dependencies, Node 18+, MIT-licensed.

Calls the public mate.tools API over HTTPS. Nothing runs locally besides the JSON-RPC plumbing.

Prefer to vendor the source? Download server.js directly and reference its absolute path with "command": "node" instead.

Override the API endpoint

For testing against a staging mate.tools deployment:

MATE_TOOLS_API_BASE=https://staging.mate.tools/api/v1 npx -y @mate-tools/mcp-server

Try it

Once installed, ask your AI agent any of these:

The agent will call the relevant tool automatically based on the request.

Source and licence

The server is part of mate.tools. Source above. Free to copy, fork or vendor. Issues or feature requests: /contact.