swiss-army
22 utility tools (x402 USDC on Base): currency, PDF, image, GDPR. Free health.
我该使用它吗
质量与安全性
发现(6)
- LOW在 encode_base64 中
- LOW在 decode_base64 中
- LOW在 html_to_text 中
- LOW在 extract_pdf_text 中
- LOW在 classify_gdpr 中
- LOW在 detect_secrets 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"swiss-army": {
"url": "https://swiss.api.ainode.tech/mcp"
}
}
}远程端点
https://swiss.api.ainode.tech/mcpstreamable-http它能做什么
工具清单
工具(23)
⚪health(echo)
Health check. Returns server status and optional echo.
输入模式
{
"type": "object",
"properties": {
"echo": {
"type": "string",
"description": "Optional string to echo back"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪json_to_csv(input)
Convert JSON array of objects to RFC 4180 CSV.
输入模式
{
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "JSON array string"
}
},
"required": [
"input"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪csv_to_json(input)
Convert CSV string to JSON array of objects.
输入模式
{
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "CSV string"
}
},
"required": [
"input"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪encode_base64(input)
Encode a UTF-8 string to Base64.
输入模式
{
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "UTF-8 string to encode"
}
},
"required": [
"input"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪decode_base64(input)
Decode a Base64 string to UTF-8.
输入模式
{
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "Base64 string to decode"
}
},
"required": [
"input"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪generate_hash(input, algorithm)
Generate MD5, SHA-256, or SHA-512 hex digest.
输入模式
{
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "String to hash"
},
"algorithm": {
"type": "string",
"description": "Hash algorithm: md5, sha256, or sha512"
}
},
"required": [
"input",
"algorithm"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪generate_uuid(count)
Generate one or more UUID v4 values.
输入模式
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Number of UUIDs to generate (1-100, default 1)"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪html_to_text(input)
Strip HTML tags and decode entities to plain text.
输入模式
{
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "HTML string to convert"
}
},
"required": [
"input"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪markdown_to_html(input)
Convert Markdown to HTML.
输入模式
{
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "Markdown string to convert"
}
},
"required": [
"input"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢extract_url_metadata(url)
Extract Open Graph metadata from a URL.
输入模式
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to extract metadata from"
}
},
"required": [
"url"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪convert_timezone(datetime, from_timezone, to_timezone)
Convert a datetime between IANA timezones.
输入模式
{
"type": "object",
"properties": {
"datetime": {
"type": "string",
"description": "Datetime in ISO format (YYYY-MM-DDTHH:mm:ss)"
},
"from_timezone": {
"type": "string",
"description": "Source IANA timezone (e.g. America/New_York)"
},
"to_timezone": {
"type": "string",
"description": "Target IANA timezone (e.g. Europe/Lisbon)"
}
},
"required": [
"datetime",
"from_timezone",
"to_timezone"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢parse_cron(expression, count)
Parse a cron expression and return next run times.
输入模式
{
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "Cron expression (e.g. '0 9 * * 1-5')"
},
"count": {
"type": "number",
"description": "Number of next runs to return (1-20, default 5)"
}
},
"required": [
"expression"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪test_regex(pattern, input, flags)
Test a regex pattern against an input string.
输入模式
{
"type": "object",
"properties": {
"pattern": {
"type": "string",
"description": "Regular expression pattern"
},
"input": {
"type": "string",
"description": "Input string to test against"
},
"flags": {
"type": "string",
"description": "Regex flags (g, i, m, s, u, y)"
}
},
"required": [
"pattern",
"input"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪convert_currency(amount, from, to)
Convert an amount between currencies using cached ECB exchange rates.
输入模式
{
"type": "object",
"properties": {
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Amount to convert"
},
"from": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "Source currency code (ISO 4217)"
},
"to": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "Target currency code (ISO 4217)"
}
},
"required": [
"amount",
"from",
"to"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢extract_pdf_text(pdf)
Extract text content from a base64-encoded PDF document.
输入模式
{
"type": "object",
"properties": {
"pdf": {
"type": "string",
"description": "Base64-encoded PDF document"
}
},
"required": [
"pdf"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪resize_image(image, width, height, format, quality)
Resize and compress a base64-encoded image.
输入模式
{
"type": "object",
"properties": {
"image": {
"type": "string",
"description": "Base64-encoded image data"
},
"width": {
"type": "integer",
"exclusiveMinimum": 0,
"description": "Target width in pixels"
},
"height": {
"type": "integer",
"exclusiveMinimum": 0,
"description": "Target height in pixels"
},
"format": {
"type": "string",
"enum": [
"png",
"jpeg",
"webp"
],
"default": "png",
"description": "Output format"
},
"quality": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"description": "JPEG quality (1-100)"
}
},
"required": [
"image",
"width",
"height"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢validate_nif(nif)
Validate Portuguese NIF/NIPC tax identification number (mod-11 check digit).
输入模式
{
"type": "object",
"properties": {
"nif": {
"type": "string",
"description": "Portuguese NIF or NIPC (9 digits)"
}
},
"required": [
"nif"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪validate_iban(iban)
Validate IBAN (ISO 13616 mod-97) with SEPA BIC lookup for Portuguese banks.
输入模式
{
"type": "object",
"properties": {
"iban": {
"type": "string",
"description": "IBAN string (with or without spaces)"
}
},
"required": [
"iban"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪verify_eu_vat(country_code, vat_number)
Verify EU VAT number via VIES (European Commission free API).
输入模式
{
"type": "object",
"properties": {
"country_code": {
"type": "string",
"minLength": 2,
"maxLength": 2,
"description": "ISO 3166-1 alpha-2 country code (e.g. PT, DE, FR)"
},
"vat_number": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"description": "VAT number without country prefix"
}
},
"required": [
"country_code",
"vat_number"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪classify_gdpr(text)
Detect GDPR PII categories in text (email, phone, IP, name, location). Returns categories only, never actual PII values.
输入模式
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 50000,
"description": "Text to scan for PII categories"
}
},
"required": [
"text"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪generate_csp(directives, report_uri, report_only)
Generate Content-Security-Policy header from structured directives input.
输入模式
{
"type": "object",
"properties": {
"directives": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "CSP directives map, e.g. { 'script-src': ['self', 'nonce-abc123'] }"
},
"report_uri": {
"type": "string",
"format": "uri",
"description": "Report URI for CSP violations"
},
"report_only": {
"type": "boolean",
"default": false,
"description": "Use Content-Security-Policy-Report-Only header"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪validate_cors(allow_origin, allow_methods, allow_headers, allow_credentials, max_age, ...)
Validate CORS policy against security best practices. Reports issues by severity.
输入模式
{
"type": "object",
"properties": {
"allow_origin": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Access-Control-Allow-Origin value(s)"
},
"allow_methods": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allowed HTTP methods"
},
"allow_headers": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allowed request headers"
},
"allow_credentials": {
"type": "boolean",
"description": "Access-Control-Allow-Credentials"
},
"max_age": {
"type": "number",
"description": "Access-Control-Max-Age in seconds"
},
"expose_headers": {
"type": "array",
"items": {
"type": "string"
},
"description": "Access-Control-Expose-Headers"
}
},
"required": [
"allow_origin"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪detect_secrets(text)
Detect hardcoded secrets, API keys, and credentials in text using pattern matching and entropy analysis.
输入模式
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100000,
"description": "Text, code, or configuration to scan for secrets"
}
},
"required": [
"text"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}社区
证据