TinyFn MCP Server
Official
The Problem
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.
🖥️ Works With Your Tools
TinyFn runs as a remote MCP server — no npx, no Docker, no local install. Just add the URL to your config.
Platform | Tool Limit | Recommended Setup | Config Location |
Claude Code | 500+ (Tool Search) |
|
|
Claude Desktop | ~100 tools | 2–3 category servers |
|
Cursor | ~40 tools | 1–2 focused servers | Cursor MCP settings |
Windsurf | ~40 tools | 1–2 focused servers | Windsurf MCP settings |
Continue.dev | Varies | Category servers |
|
Any MCP Client | Varies | Match to your tool limit | Client-specific |
💡 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.
✅ Example Queries That Just Work
Once connected, just ask your AI assistant in plain language:
Math & Numbers
✅ "Is 7919 a prime number?"
✅ "What's 17% of 4,847?"
✅ "Calculate the factorial of 12"
Conversions
✅ "Convert 72°F to Celsius"
✅ "How many miles is 100 kilometers?"
✅ "Convert #3B82F6 to RGB values"
Validation
✅ "Is user@example.com a valid email address?"
✅ "Validate this credit card number: 4111111111111111"
✅ "Is 550e8400-e29b-41d4-a716-446655440000 a valid UUID?"
Encoding & Hashing
✅ "Base64 encode 'Hello, World!'"
✅ "Generate a SHA-256 hash of 'my-secret-string'"
✅ "URL encode 'hello world & goodbye'"
Date & Time
✅ "How many days between January 15 and March 22?"
✅ "What's the current Unix timestamp?"
✅ "Is 2024 a leap year?"
Generators
✅ "Generate a UUID"
✅ "Create a secure 20-character password"
✅ "Roll 3 six-sided dice"
⚡ Quick Start
1. Get your free API key at tinyfn.io (takes 10 seconds)
2. Add TinyFn to your MCP client:
Claude Code
Claude Code supports Tool Search, so you can use the full server with all 500+ tools:
{
"mcpServers": {
"tinyfn": {
"url": "https://api.tinyfn.io/mcp/all/",
"headers": {
"X-API-Key": "tf_live_YOUR_KEY_HERE"
}
}
}
}Add this to ~/.claude/settings.json or use claude mcp add.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"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"
}
}
}
}Tip: Claude Desktop supports ~100 tools. Add 2–3 category servers based on your workflow.
Cursor & Windsurf
These platforms have a ~40 tool limit. Pick 1–2 focused servers:
{
"mcpServers": {
"tinyfn-validate": {
"url": "https://api.tinyfn.io/mcp/validate/",
"headers": {
"X-API-Key": "tf_live_YOUR_KEY_HERE"
}
}
}
}Recommended for Cursor/Windsurf: validate (15 tools), hash (18 tools), encode (20 tools), convert (42 tools).
Continue.dev
{
"experimental": {
"mcpServers": [
{
"name": "tinyfn-math",
"url": "https://api.tinyfn.io/mcp/math/",
"headers": {
"X-API-Key": "tf_live_YOUR_KEY_HERE"
}
}
]
}
}3. Start asking questions. Your AI now has deterministic tools for math, conversions, validation, and more.
📡 Available MCP Servers
All servers use base URL https://api.tinyfn.io. Pick the categories you need:
Server | Endpoint | Tools | What It Does |
All |
| 500+ | Everything — best for Claude Code |
Math |
| 52 | Arithmetic, trig, primes, factorials, comparisons |
Convert |
| 42 | Temperature, length, weight, volume, speed, data sizes |
String |
| 33 | Case conversion, slugify, trim, word count, extraction |
Datetime |
| 24 | Date parsing, formatting, diffs, timezones, leap years |
Encode |
| 20 | Base64, URL, HTML, hex, ROT13, morse, JWT decode |
Hash |
| 18 | MD5, SHA-256, SHA-512, HMAC, bcrypt, CRC32 |
Color |
| 30 | HEX/RGB/HSL conversion, gradients, contrast, palettes |
Stats |
| 16 | Mean, median, mode, std dev, percentiles, correlation |
Validate |
| 15 | Email, URL, phone, credit card, UUID, IP, JSON, dates |
Finance |
| 15 | Interest, loans, mortgage, ROI, margin, tip calculator |
Generate |
| 15 | UUIDs, passwords, random numbers, lorem ipsum, dice |
⚠️ Important: All URLs must end with a trailing
/or requests will return 404 errors.
🛠️ Tool Categories
Tool | Description | Example |
| Basic arithmetic |
|
| Percentage calculation |
|
| Primality testing |
|
| Factorial calculation |
|
| Nth Fibonacci number |
|
| GCD and LCM |
|
| Exponentiation |
|
| Trigonometric functions |
|
| Logarithms |
|
| Rounding |
|
| Number properties |
|
| Range & geometry |
|
Tool | Description | Example |
| Reverse text |
|
| Case conversion |
|
| Naming conventions |
|
| URL-safe slugs |
|
| Whitespace handling |
|
| Text metrics |
|
| String matching |
|
| Array operations |
|
| Content extraction | Extract emails from text blocks |
| Palindrome check |
|
| Character counting |
|
Tool | Description | Example |
| Email format validation |
|
| URL format validation |
|
| Phone number validation |
|
| Luhn algorithm check |
|
| UUID format validation |
|
| IPv4/IPv6 validation |
|
| JSON syntax validation |
|
| Date format validation |
|
| Hex string validation |
|
| Base64 validation |
|
Tool | Description | Example |
| Temperature |
|
| Distance |
|
| Weight |
|
| Volume |
|
| Color |
|
| Base conversion |
|
| File sizes |
|
| Speed |
|
| Length |
|
| Time |
|
Tool | Description | Example |
| MD5 hash |
|
| SHA-256 hash |
|
| SHA-512 hash | Full 128-char hex digest |
| HMAC signature | Keyed hash authentication |
| SHA-3 family | Modern hash algorithms |
| BLAKE2 | High-performance hashing |
| CRC32 checksum | Error detection codes |
| Timing-safe compare | Constant-time hash comparison |
| Hash identification | Detect hash algorithm from string |
Tool | Description | Example |
| Base64 |
|
| URL encoding |
|
| HTML entities |
|
| Hex encoding |
|
| JWT parsing | Decode JWT payload (no verification) |
| ROT13 cipher |
|
| Morse code |
|
| JSON formatting | Minify or pretty-print JSON |
Tool | Description | Example |
| Current timestamp | ISO 8601 timestamp |
| Date formatting | Parse and format dates |
| Days between dates |
|
| Date arithmetic | Add/subtract days, hours, minutes |
| Timezone conversion | Convert between any IANA timezones |
| Leap year check |
|
| Age from birthdate | Calculate exact age |
| Relative formatting |
|
| Month length |
|
| Weekend check | Check if a date falls on Sat/Sun |
Tool | Description | Example |
| UUID v4 |
|
| UUID v7 (time-sortable) | Timestamp-based UUIDs |
| Secure passwords | Configurable length and character sets |
| Random integers |
|
| Random strings | Configurable length and charset |
| API tokens | Cryptographically secure tokens |
| Lorem ipsum | Generate placeholder text |
| Random colors | Random hex color codes |
| Dice rolling |
|
| Coin flip |
|
| Shuffle arrays | Randomize array order |
Tool | Description | Example |
| Color space conversion | Convert between formats |
| RGB conversion |
|
| Brightness adjustment | Lighten/darken by percentage |
| Complementary colors | Get the opposite color |
| Color harmonies | Generate color schemes |
| WCAG contrast | Check accessibility compliance |
| Gradient generation | Generate color stops between two colors |
| Shade/tint ramps | Create monochromatic palettes |
| Color inversion | Invert any hex color |
| Color blending | Mix two colors together |
Tool | Description | Example |
| Arithmetic mean |
|
| Median value |
|
| Most frequent value |
|
| Population variance | Statistical variance |
| Standard deviation | Statistical spread |
| Percentile calculation |
|
| Q1, Q2, Q3 | Quartile boundaries |
| Pearson correlation | Correlation coefficient between datasets |
| Z-score | Standard score calculation |
| Summary statistics | Full statistical description of a dataset |
Tool | Description | Example |
| Compound interest | Calculate future value with compounding |
| Simple interest | Basic interest calculation |
| Loan payments | Monthly payment calculator |
| Mortgage | Monthly mortgage with amortization |
| Tip calculator |
|
| Growth/decline |
|
| Pricing | Markup and margin calculations |
| Discounts | Price after discount |
| ROI | Investment return percentage |
| Doubling time | Years to double an investment |
| Break-even analysis | Units needed to break even |
Tool | Description | Example |
| Body Mass Index |
|
| Basal Metabolic Rate | Daily calorie baseline |
| Ideal weight range | Based on height and frame |
| Training zones | Fat burn, cardio, peak zones |
| Body fat estimate | Navy method estimation |
| Water recommendation | Based on weight and activity |
| Exercise calories | Calories for activity type and duration |
| Macro split | Protein/carb/fat breakdown |
| Sleep optimization | Optimal wake times based on cycles |
Tool | Description | Example |
| Magic 8-Ball | Random mystical answers |
| Dad jokes | Guaranteed groan |
| Fortune cookies | Random fortune messages |
| Compliments | Brighten someone's day |
| Excuses | Creative excuse generator |
| Would You Rather | Random dilemmas |
| Friendly roasts | Light-hearted roasts |
| Trivia | Random trivia facts |
| Yes/No oracle | Random yes or no |
🎯 Perfect For
AI-Assisted Development — Cursor and Windsurf users who need reliable math in their coding workflow
Data Analysis — Statistics, percentiles, and financial calculations without second-guessing
Content Creation — Word counts, slugification, and encoding when building with AI
DevOps & Security — Hash generation, UUID creation, and input validation
Education — Teach with tools that demonstrate correct mathematical results
API Development — Validate inputs, generate test data, and compute values during development
💰 Pricing
🔧 Troubleshooting
All MCP server URLs must end with a trailing slash /.
✅ https://api.tinyfn.io/mcp/math/
❌ https://api.tinyfn.io/mcp/mathVerify your API key starts with
tf_live_Check that you're using the
X-API-Keyheader (notAuthorization)Make sure your key is active at tinyfn.io/dashboard
{
"headers": {
"X-API-Key": "tf_live_YOUR_KEY_HERE"
}
}Your MCP client has a tool limit. Instead of /mcp/all/, use category-specific servers:
If you need... | Use server | Tools |
Validation only |
| 15 |
Hashing only |
| 18 |
Encoding only |
| 20 |
Math only |
| 52 |
See the full server list for all options.
You've hit your plan's rate limit. Options:
Free tier: 10 requests/minute, 100/month — upgrade at tinyfn.io
Starter: 100 requests/minute, 10,000/month
Check your current usage at tinyfn.io/dashboard
📚 Documentation & Resources
MCP Overview — Setup guide for all supported platforms
API Reference — REST API docs for direct HTTP usage
MCP Categories — Detailed breakdown of each server
Authentication — API key setup and management
Rate Limits — Quotas and limits per plan
LLM Context —
llms.txtfor AI-readable documentation
🤝 Support
📧 Email: support@tinyfn.io
🐛 Issues: GitHub Issues
💬 Sales: sales@tinyfn.io
📄 License
MIT License — see LICENSE for details.