is_even
Check if a number is even.
number必填
io.tinyfn由 tinyfn.io 发布官方发布者v1.0.2更新于 Oct 24, 2026
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
TinyFn 是一个远程 MCP 服务器,为助手提供 500 多个确定性工具,涵盖数学、单位换算、校验、哈希、编码、日期和统计。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.tinyfn%2Ftinyfn/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"tinyfn": {
"type": "http",
"url": "https://api.tinyfn.io/mcp/all/",
"headers": {
"X-API-Key": "<YOUR_API_KEY>"
}
}
}
}
🧮 Give your AI agent 500+ deterministic tools
Stop hallucinating math. Start getting correct answers.
Quick Start • Servers • Examples • Pricing • Docs • Support
LLMs are great at reasoning. They're terrible at math.
Ask any AI assistant to compute 17% of 4,847 and you'll get a confident, wrong answer. Ask it to validate an email with regex, generate a SHA-256 hash, or convert timezones — same story. LLMs hallucinate on deterministic tasks.
TinyFn is a Model Context Protocol (MCP) server that gives your AI assistant 500+ tools that always return the correct answer. Math, conversions, validations, hashing, date arithmetic — the boring stuff, done right.
TinyFn runs as a remote MCP server — no npx, no Docker, no local install. Just add the URL to your config.
💡 Why category servers? Most AI clients limit the number of tools. TinyFn splits 500+ tools across 12 focused servers so you can pick exactly what you need.
Once connected, just ask your AI assistant in plain language:
Math & Numbers
Conversions
Validation
Encoding & Hashing
Date & Time
Generators
1. Get your free API key at tinyfn.io (takes 10 seconds)
2. Add TinyFn to your MCP client:
Claude Code supports Tool Search, so you can use the full server with all 500+ tools:
Add this to ~/.claude/settings.json or use claude mcp add.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Tip: Claude Desktop supports ~100 tools. Add 2–3 category servers based on your workflow.
These platforms have a ~40 tool limit. Pick 1–2 focused servers:
Recommended for Cursor/Windsurf: validate (15 tools), hash (18 tools), encode (20 tools), convert (42 tools).
3. Start asking questions. Your AI now has deterministic tools for math, conversions, validation, and more.
All servers use base URL https://api.tinyfn.io. Pick the categories you need:
⚠️ Important: All URLs must end with a trailing
/or requests will return 404 errors.
All plans include access to every tool. Sign up free →
All MCP server URLs must end with a trailing slash /.
tf_live_X-API-Key header (not Authorization)Your MCP client has a tool limit. Instead of /mcp/all/, use category-specific servers:
See the full server list for all options.
You've hit your plan's rate limit. Options:
llms.txt for AI-readable documentationMIT License — see LICENSE for details.
来源:README.md,提交 e9f2d8e
Check if a number is even.
number必填Check if a number is odd.
number必填Check if a number is prime.
number必填Check if a number is positive.
number必填Check if a number is negative.
number必填Check if a number is zero.
number必填Check if a number is an integer.
number必填Check if a number is divisible by another number.
number必填divisor必填Check if a number is a perfect square.
number必填Check if a number is a Fibonacci number.
number必填Calculate the factorial of a number.
number必填Get the nth Fibonacci number.
n必填Calculate the greatest common divisor.
a必填b必填Calculate the least common multiple.
a必填b必填Get the absolute value of a number.
number必填Calculate the square root of a number.
number必填Calculate base raised to the power of exponent.
base必填exponent必填Calculate what percentage value is of total.
total必填value必填Calculate the average of a list of numbers.
numbers必填Round a number to specified decimal places.
number必填decimalsClamp a number within a range.
number必填maximum必填minimum必填Calculate Euclidean distance between two points.
x1必填x2必填y1必填y2必填Calculate the sine of an angle.
angle必填Calculate the cosine of an angle.
angle必填Calculate the tangent of an angle.
angle必填Convert degrees to radians.
degrees必填Convert radians to degrees.
radians必填Add two or more numbers together.
numbers必填Subtract b from a.
a必填b必填Multiply two or more numbers together.
numbers必填Divide a by b.
a必填b必填Calculate a modulo b (remainder of a divided by b).
a必填b必填Calculate logarithm. Natural log if no base specified.
basenumber必填Calculate base-10 logarithm.
number必填Calculate base-2 logarithm.
number必填Calculate e raised to the power of number.
number必填Round down to nearest integer.
number必填Round up to nearest integer.
number必填Find the minimum value.
numbers必填Find the maximum value.
numbers必填Calculate the sum of numbers.
numbers必填Get the sign of a number (-1, 0, or 1).
number必填Truncate to integer (remove decimal part).
number必填Calculate the hypotenuse of a right triangle.
a必填b必填Calculate the cube of a number.
number必填Calculate the cube root of a number.
number必填Calculate the square of a number.
number必填Calculate the nth root of a number.
n必填number必填Compare two numbers (e.g., is 0.9 greater than 0.11?).
a必填b必填Compare decimal numbers with detailed explanation (handles 0.9 vs 0.11 correctly).
a必填b必填Rank a list of numbers from largest to smallest (or vice versa).
ordernumbers必填Check if a number is between two bounds.
lower必填upper必填number必填inclusiveReverse a string.
text必填Convert text to uppercase.
text必填Convert text to lowercase.
text必填Capitalize the first letter of each word.
text必填Convert text to title case.
text必填Convert text to sentence case.
text必填Convert text to camelCase.
text必填Convert text to snake_case.
text必填Convert text to kebab-case.
text必填Convert text to PascalCase.
text必填Get the length of a string.
text必填Count words in text.
text必填Trim whitespace from text.
text必填Truncate text to a specified length.
text必填lengthsuffixPad text to a specified length.
charsidetext必填length必填Repeat text a specified number of times.
text必填times必填separatorReplace occurrences in text.
text必填search必填replacementCheck if text contains a substring.
text必填search必填case_sensitiveCheck if text starts with a prefix.
text必填prefix必填Check if text ends with a suffix.
text必填suffix必填Split text by delimiter.
text必填delimiterJoin items with a delimiter.
items必填delimiterConvert text to URL-friendly slug.
text必填Check if text is a palindrome.
text必填ignore_caseignore_spacesCount occurrences of a character (e.g., how many 'r' in 'strawberry').
char必填text必填case_sensitiveCount occurrences of a substring.
text必填substring必填overlappingcase_sensitiveCount occurrences of each character in text.
text必填Remove all whitespace from text.
text必填Normalize whitespace (multiple spaces to single).
text必填Check if text is empty or whitespace only.
textExtract all numbers from text.
text必填Extract all email addresses from text.
text必填Extract all URLs from text.
text必填Convert Celsius to Fahrenheit.
celsius必填Convert Fahrenheit to Celsius.
fahrenheit必填Convert Celsius to Kelvin.
celsius必填Convert Kelvin to Celsius.
kelvin必填Convert meters to feet.
meters必填Convert feet to meters.
feet必填Convert kilometers to miles.
kilometers必填Convert miles to kilometers.
miles必填Convert inches to centimeters.
inches必填Convert centimeters to inches.
centimeters必填Convert kilograms to pounds.
kilograms必填Convert pounds to kilograms.
pounds必填Convert ounces to grams.
ounces必填Convert grams to ounces.
grams必填Convert stone to kilograms.
stone必填Convert liters to US gallons.
liters必填Convert US gallons to liters.
gallons必填Convert liters to UK gallons. Because a UK gallon isn't a US gallon.
liters必填Convert UK gallons to liters.
gallons必填Convert milliliters to US fluid ounces.
milliliters必填Convert US cups to milliliters.
cups必填Convert milliliters to US cups.
milliliters必填Convert square meters to square feet.
square_meters必填Convert square feet to square meters.
square_feet必填Convert acres to hectares.
acres必填Convert miles per hour to kilometers per hour.
mph必填Convert kilometers per hour to miles per hour.
kph必填Convert meters per second to miles per hour.
mps必填Convert knots to kilometers per hour.
knots必填Convert bytes to human-readable format.
bytes_val必填Convert kilobytes to megabytes.
kilobytes必填Convert megabytes to gigabytes.
megabytes必填Convert decimal to binary.
number必填Convert binary to decimal.
binary必填Convert decimal to hexadecimal.
number必填Convert hexadecimal to decimal.
hexadecimal必填Convert decimal to octal.
number必填Convert hex color to RGB.
hex_color必填Convert RGB to hex color.
b必填g必填r必填Convert hours to minutes.
hours必填Convert minutes to seconds.
minutes必填Convert seconds to hours:minutes:seconds.
seconds必填Generate UUID(s).
countversionGenerate UUID v7 (time-ordered).
countGenerate random integer(s).
countmax_valmin_valGenerate random float(s).
countmax_valmin_valdecimalsGenerate random string(s).
countlengthcharsetGenerate secure password(s).
countlengthnumberssymbolslowercaseuppercaseexclude_ambiguousGenerate cryptographically secure token.
formatlengthGenerate hash of text.
text必填algorithmGenerate lorem ipsum text using Faker.
paragraphssentences_per_paragraphGenerate random color(s).
countformatRoll dice.
countsidesFlip a coin.
countShuffle a list of items.
items必填Pick random item(s) from a list.
countitems必填Generate a number sequence.
endstepstartValidate an email address.
email必填Validate a URL.
url必填Validate a phone number.
phone必填countryValidate a credit card number using Luhn algorithm.
number必填Validate a UUID.
uuid_str必填Validate an IP address (v4 or v6).
ip必填Validate a MAC address.
mac必填Validate JSON syntax.
json_str必填Validate a hexadecimal string.
hex_str必填Validate a base64 string.
base64_str必填Check if text is alphanumeric.
text必填Check password strength.
password必填Validate a date string.
formatdate_str必填Validate a domain name.
domain必填Validate a semantic version string.
version必填Get current date and time.
tzConvert Unix timestamp to date.
timestamp必填Convert Unix timestamp (milliseconds) to date.
timestamp_ms必填Convert date to Unix timestamp.
date必填Format a date string.
date必填formatParse a date string.
date必填formatAdd time to a date.
date必填dayshoursweeksminutessecondsSubtract time from a date.
date必填dayshoursweeksminutessecondsCalculate difference between two dates.
date1必填date2必填Check if a year is a leap year.
year必填Get the number of days in a month.
year必填month必填Get the ISO week number of a date.
date必填Get the day of year for a date.
date必填Check if a date is a weekend.
date必填Calculate age from birthdate.
birthdate必填Get relative time description (e.g., '2 days ago').
date必填Get current time in specified timezone.
timezone_nameConvert datetime between timezones.
to_tzfrom_tzdatetime_str必填Calculate difference between two datetimes.
datetime1必填datetime2必填Add time to a datetime.
dayshoursminutessecondsdatetime_str必填Subtract time from a datetime.
dayshoursminutessecondsdatetime_str必填Get the start of a time period.
perioddatetime_str必填Get the end of a time period.
perioddatetime_str必填Check if a year is a leap year.
year必填Get the number of days in a month.
year必填month必填Get the ISO week number for a date.
datetime_str必填Get the quarter for a date.
datetime_str必填Count business days between two dates (excluding weekends).
end_date必填start_date必填Add business days to a date.
days必填start_date必填Calculate age from birthdate.
as_ofbirthdate必填List all available timezone abbreviations.
无需输入参数。
Convert Unix timestamp to datetime.
timestamp必填timezone_nameConvert datetime to Unix timestamp.
datetime_str必填Encode text to base64. Properly handles Unicode.
text必填Decode base64 to text.
encoded必填URL encode text.
text必填URL decode text.
encoded必填HTML encode text (escape special characters).
text必填HTML decode text (unescape special characters).
encoded必填Encode text to hexadecimal.
text必填Decode hexadecimal to text.
encoded必填Encode text to binary.
text必填Decode binary to text.
binary必填已满足适用检查项的 100%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
{ "mcpServers": { "tinyfn": { "url": "https://api.tinyfn.io/mcp/all/", "headers": { "X-API-Key": "tf_live_YOUR_KEY_HERE" } } }}{ "mcpServers": { "tinyfn-math": { "url": "https://api.tinyfn.io/mcp/math/", "headers": { "X-API-Key": "tf_live_YOUR_KEY_HERE" } }, "tinyfn-validate": { "url": "https://api.tinyfn.io/mcp/validate/", "headers": { "X-API-Key": "tf_live_YOUR_KEY_HERE" } } }}{ "mcpServers": { "tinyfn-validate": { "url": "https://api.tinyfn.io/mcp/validate/", "headers": { "X-API-Key": "tf_live_YOUR_KEY_HERE" } } }}{ "experimental": { "mcpServers": [ { "name": "tinyfn-math", "url": "https://api.tinyfn.io/mcp/math/", "headers": { "X-API-Key": "tf_live_YOUR_KEY_HERE" } } ] }}✅ https://api.tinyfn.io/mcp/math/❌ https://api.tinyfn.io/mcp/math{ "headers": { "X-API-Key": "tf_live_YOUR_KEY_HERE" }}