Matetools

io.github.matetools由 GitHub 账号 matetools 发布v1.5.0更新于 Oct 24, 2026

35 utility tools for AI agents — mate.tools API. Hash, regex, SEO, random, DNS, SSL, JWT.

概览

AI 生成的概览

本地 MCP 服务器,提供 35 个 mate.tools 实用工具,涵盖文本、编码、哈希、数据格式、日期、DNS、SSL 与 SEO 任务。

可以做什么
分析与转换文本:行词统计、大小写转换、slug 生成、排序、正则测试、差异对比、清理、占位文本、话题标签、随机生成,以及密码生成与强度评分和信用卡 Luhn 校验,另含哈希与 JWT 解码验证。编码与解码 Base64 和 URL 字符串。格式化、校验与转换 JSON、CSV、XML 和站点地图,并计算统计量、进制转换、财务计算、宽高比和颜色转换。抓取 URL 元数据并生成 SEO 元标签,查询 DNS 记录并检查 TLS 证书。转换与计算时间戳、日期和年龄。
适用场景
适合助手需要快速、确定性的实用操作时,例如哈希、编码、正则测试、JSON/CSV 转换、日期计算、DNS 或 SSL 检查、SEO 标签生成,而无需为每项操作单独写代码。
运行要求
需要 Node.js 18 或更高版本及 npx(或全局 npm 安装)来运行本地 stdio 进程。需要访问 mate.tools API 的网络连接,因为工具调用会转发到该服务。无需账号或 API 密钥。可通过 MATE_TOOLS_API_BASE 覆盖 API 地址。
安装前请注意
工具参数会发送到 mate.tools 服务器处理,除非必要,避免传入密钥或敏感数据;README 称内容不会被记录。部分工具会抓取外部 URL 和域名(站点地图、URL 元数据、SSL、DNS)。请求按 IP 限流。该服务器仅限桌面端,不能在网页中执行。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Matetools,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@mate-tools/mcp-server

[npm version] [npm downloads] [Node.js] [License: MIT]

Model Context Protocol server for mate.tools. 35 utility tools for AI agents — text analysis, encoding, hashing, password generation, JSON/CSV/XML/sitemap parsing, regex, color, date, finance, URL metadata extraction, SEO meta-tag generation, text cleanup, CSPRNG random generators, hashtag tools, DNS lookup, SSL/TLS certificate inspection, JWT decoding and more. Wraps the public mate.tools JSON API so Claude Desktop, Claude Code, Cursor, Windsurf, and any other MCP-compatible client can call them directly.

Zero dependencies · Free · No API key · CORS open · Node 18+

Quick install

Add this to your Claude Desktop / Claude Code / Cursor / Windsurf config:

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

Restart your client and all 35 tools appear in the picker. That's it.

All 35 tools, by category

Text (8)

ToolWhat it does
count_lines16 text metrics: lines, words, sentences, paragraphs, characters, duplicates, line endings (LF/CRLF/CR), longest word, reading & speaking time.
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/length, optional transliteration of non-Latin characters.
sort_linesSort lines: 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.
text_diffDiff two strings by line, word or character. Returns structured changes + unified diff string + Jaccard similarity.
text_cleanupChained cleanup pipeline: trim, collapse_spaces, dedupe_lines, strip HTML/emoji/URLs/emails, normalize quotes/dashes, lower/uppercase.

Encoding (4)

ToolWhat it does
base64_encodeBase64-encode text. Standard or URL-safe alphabet (RFC 4648 §5).
base64_decodeBase64-decode. Auto-fixes missing padding; returns hex when not valid UTF-8.
url_encodePercent-encode a string. Component / form / path mode.
url_decodeDecode percent-encoded URL strings.

Crypto & auth (5)

ToolWhat 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, character 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.
jwt_decodeDecode a JWT — header, payload, expiry status. Verify HS256/384/512 with a secret or RS256/384/512 with a PEM public key. Token never logged.

Data & structure (13)

ToolWhat it does
json_formatValidate, pretty-print, minify or analyse a JSON document. 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 (meta.city, meta.zip).
xml_validateValidate XML well-formedness + optional XSD schema. Errors with line/column. XXE-safe.
sitemap_extractFetch + parse XML sitemaps. SSRF-protected (refuses private/loopback/link-local/cloud-metadata IPs). Optional recursive expansion of sub-sitemaps.
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).
url_metadataFetch a URL and extract title / description / OpenGraph / Twitter Card / canonical / language / hreflang / JSON-LD / favicon / response headers / element counts. SSRF-protected, 2 MB cap.
meta_tags_generateGenerate a full HTML head block (meta + OpenGraph + Twitter Card + JSON-LD) from title/description/url/image. Returns ready-to-paste HTML + SEO score 0-100 with concrete warnings.
dns_lookupResolve DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, PTR, SRV) via the system resolver. Includes reverse PTR for A records.
ssl_checkInspect a domain's TLS certificate: subject, issuer, validity, fingerprint, alt names, full chain, days remaining, negotiated protocol/cipher. SSRF-protected.

Date & time (3)

ToolWhat it does
timestampBidirectional epoch ↔ ISO 8601 ↔ RFC 3339 ↔ human. Auto-detects epoch resolution. 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.

Generators & social (2)

ToolWhat it does
random_genCSPRNG-backed generator: number, string (alpha/alphanumeric/numeric/hex/base58/base64url), word, picker (with/without replacement), team balancer, dice (NdM), coin, country, UUID v4 / v7.
hashtag_toolsHashtag operations on text: extract (with offsets), remove, generate (stop-word-filtered word frequency), format (camel/snake/lower/preserve). Unicode-aware.

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

Install snippets for every major client

Claude Desktop

Open the Claude Desktop config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Add the mcpServers entry from the Quick install above and restart.

Claude Code

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

Cursor

Add to ~/.cursor/mcp.json:

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

Windsurf and 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.

Manual install (no npx)

bash
npm install -g @mate-tools/mcp-servermate-tools-mcp   # speaks JSON-RPC over stdio; plug into a client

How to verify it's working

Once installed, ask your AI agent any of these to confirm the tools are wired:

"Use mate-tools to count the lines and reading time of this paragraph."

"Hash the string secret with SHA-256."

"Generate 10 strong passwords, 20 chars, no ambiguous characters."

"Score this password: correct horse battery staple."

"Convert #ff5733 to all color spaces and tell me the WCAG contrast vs white."

"What's the aspect ratio of 3840 × 2160?"

"Diff these two paragraphs for me."

"What's the monthly payment on a $300k loan at 6.5% APR over 30 years?"

"How old is someone born on 1990-04-15? What's their zodiac sign?"

"Extract all URLs from https://example.com/sitemap.xml recursively."

"Fetch the metadata and OpenGraph tags from https://example.com for me."

"Generate SEO meta tags for an article titled … and score the result."

"Roll 4d6 drop lowest, six times, for me."

"Suggest hashtags for this caption."

"Look up the MX and TXT records for example.com."

"Is the SSL certificate on github.com valid? When does it expire?"

"Decode this JWT and tell me if it's expired."

The agent will pick the right tool automatically.

How it works

The server is a single ~600-line zero-dependency Node script. Every tool call:

  1. Receives a JSON-RPC tools/call request from the MCP client.
  2. Forwards the arguments to the public mate.tools API at https://mate.tools/api/v1/{tool}.php.
  3. Returns a human-readable summary plus the full JSON response back to the client.

Nothing runs locally besides the JSON-RPC plumbing. Computation runs on mate.tools' servers behind Cloudflare. Every endpoint is rate-limited at 60 req/min and 600 req/hour per IP.

Configuration

Override the API endpoint (e.g. for testing against a staging deployment):

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

Privacy

Each tool call:

  • ✅ Sends only the arguments you provide to the MCP tool.
  • ✅ Hits HTTPS in transit.
  • ✅ Is processed in memory and not logged with content.
  • ❌ Does not collect telemetry.
  • ❌ Does not require an account, API key or sign-in.

The mate.tools server logs only request method, hashed-IP (rotating daily salt), endpoint name and duration — never request content.

credit_card_validate and password_strength are explicitly engineered so the sensitive input never leaves request-handler memory. Only the validation outcome and metrics are returned.

sitemap_extract, url_metadata, and ssl_check refuse to fetch / connect to any host whose name resolves to a private (RFC 1918), loopback, link-local, or cloud-metadata IP. For HTTP-based tools, each redirect destination is re-validated, so SSRF tricks via 302 don't work. url_metadata additionally caps the response body at 2 MB. ssl_check uses a 5-second connect timeout.

jwt_decode never logs the token. Decoding runs entirely in request-handler memory; only the algorithm name, signature verification outcome, and request duration are written to the per-day access log. Use it confidently with production tokens.

regex_test enforces a hard PCRE backtrack ceiling (100,000 steps) per request — catastrophic regex patterns return a clean 422 rather than hanging the server.

random_gen is backed by PHP's random_int / random_bytes (CSPRNG) — never the Mersenne Twister. UUIDs are RFC 4122 v4 with proper version/variant bits, or v7 with millisecond-precision timestamp.

Source and documentation

Issues / feedback

Open an issue at the mate.tools contact form — please mention "@mate-tools/mcp-server" in the subject line. New tools land roughly every 1–2 weeks; if there's a specific utility you want exposed, just ask.

License

MIT — free for personal and commercial use. See LICENSE.

来源:README.md,提交 b19355e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.5.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分