Skip to content
Zoyku

MCP 服务器——AI 可调用的工具

Zoyku 提供 MCP(Model Context Protocol)服务器:Claude、Cursor 等 AI 助手可以直接执行本站的计算器和换算器——同一套经过测试的逻辑,不是重新实现。

这些工具运行本站的纯函数(单位换算、金融、健康估算、文本处理)。通过 npx 在 AI 客户端所在的机器上执行——不会发送到我们的服务器。

添加到你的 MCP 客户端

需要 Node.js 18+。服务器通过 stdio 在本地运行;只有你发起的工具调用会在本机计算。

{ "mcpServers": { "zoyku": { "command": "npx", "args": [ "-y", "zoyku-mcp" ] } } }

可执行工具(35 个)

list_unit_categoriesList all unit conversion categories available in convert_unit (length, weight, temperature, data, speed, volume, time, pressure, energy) with their unit ids and symbols.
convert_unitConvert an amount between units. Get valid category/unit ids from list_unit_categories first. Examples: length m→ft, weight kg→lb, data GB→GiB, temperature c→f, pressure bar→psi, energy kcal→kj.
mortgage_paymentMonthly mortgage payment (P&I) via standard amortization, plus loan amount, total interest and total paid. Also returns the yearly amortization schedule.
compound_interestFuture value with regular contributions (annuity-due: contribution at period start). Returns total, contributed, interest and a year-by-year schedule.
salary_breakdownBreak an annual salary down to hourly/daily/weekly/biweekly/monthly. Optional unpaid days off raise the effective hourly rate (same salary over fewer worked days).
hourly_to_salaryConvert an hourly rate to daily/weekly/biweekly/monthly/annual pay.
break_evenBreak-even units and revenue for fixed costs, unit price and variable unit cost; includes contribution margin and profit at 0.5×/1×/1.5×/2× of break-even volume.
bmrBMR via the Mifflin-St Jeor equation (1990). Estimate only — not medical advice. Metric units.
tdeeTotal daily energy expenditure = BMR (Mifflin-St Jeor) × activity factor (sedentary 1.2 … very active 1.9). Estimate only — not medical advice.
body_fat_navyBody fat percentage via the US Navy circumference method (Hodgdon & Beckett 1984). Metric cm. Hip is required for female. Estimate only.
ideal_weightIdeal weight by the Devine formula (1975, male and female) plus the healthy BMI 18.5–24.9 range for a given height. Metric cm.
water_intakeBaseline 35 ml/kg body weight plus ~350 ml per 30 minutes of exercise. Returns baseline, exercise and total ml. General guideline, not medical advice.
running_pacePace (per km and per mile) and speed from a race distance and finish time. Distance: '5k', '10k', 'half', 'marathon' or custom meters.
race_time_predictPredict a race time from a recent result using Riegel's formula (exponent 1.06). Distances in km (5, 10, 21.0975, 42.195 or custom).
one_rep_maxEstimated 1RM from weight lifted and reps (Epley and Brzycki formulas).
workdays_betweenCount working days (Mon–Fri by default) between two ISO dates, inclusive. Optional holidays (YYYY-MM-DD).
add_workdaysAdd N working days to an ISO date (negative to subtract). Optional holidays. Returns the resulting ISO date.
sleep_scheduleBedtimes to wake at a given time, or wake times if sleeping now — based on 90-minute sleep cycles plus 15 minutes to fall asleep. Cycles vary 80–120 min between individuals.
cooking_convertConvert between volume and weight for ~24 ingredients (flour, sugar, butter, honey…) using average densities. Units: cup, tbsp, tsp, fl-oz, ml, l, g, kg, oz, lb. Densities are averages — weigh for baking precision.
contrast_ratioContrast ratio between two colors (#RGB/#RRGGBB) with WCAG AA/AAA pass-fail for normal and large text.
gradeWeighted grade from scored items, plus letter grade on a configurable scale.
slugifyTurn text into a URL-safe slug (lowercase, accents stripped, hyphens).
text_statsWord count (CJK-aware), characters with/without spaces, sentences, paragraphs, lines.
transform_textCase and cleanup transforms: title_case, camel, pascal, snake, kebab, dedupe_lines, sort_lines, reverse, clean (collapse spaces/trim), remove_extra_spaces.
parse_csvParse RFC-4180 CSV (quoted fields, embedded newlines, ,/;/tab delimiter auto-detect) into an array of row objects using the first row as header.
json_to_xmlConvert a JSON object to XML. Arrays become repeated elements; '@'-prefixed keys become attributes; '#text' becomes text content. Mixed content is not representable.
overtime_payWeekly and annualized pay with overtime: hourly rate, overtime hours and a multiplier (US FLSA standard is 1.5× over 40 h/week).
rent_affordabilityMaximum rent by an income-share rule (default 30% of monthly income), with debt payments deducted and the resulting debt-to-income share reported.
apyEffective annual yield (APY) from a nominal rate and compounding frequency: APY = (1 + r/n)^n − 1. Also returns the reverse (APY → nominal APR).
gpaGPA from courses with credits and letter grades (A…F quality points). Invalid courses are dropped and reported.
heart_rate_zonesFive training zones via Karvonen's heart-rate-reserve method. Max HR defaults to the Tanaka formula (206.9 − 0.67 × age). BPM ranges per zone.
shoe_sizeConvert an adult shoe size between US/UK/EU/JP systems for men or women, anchored to foot length in cm. Brands vary ±half size.
json_to_typescriptGenerate TypeScript interfaces from a JSON object: nested objects become named interfaces, arrays of objects merge into one shape, mixed arrays become unions.
json_diffCompare two JSON documents path by path: added, removed and changed keys with full paths like $.user.name. Arrays compared by index.
json_queryExtract a value from JSON by path: $.a.b, $.items[0].id, $['quoted key']. Returns found/value or a plain-language reason.

需要 Node.js 18+。服务器通过 stdio 在本地运行;只有你发起的工具调用会在本机计算。