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 分