Documentation Index
Fetch the complete documentation index at: https://docs.tinyfn.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
MCP Integration
TinyFn exposes its 500+ utility functions as MCP (Model Context Protocol) tools, allowing AI assistants like Claude to call TinyFn functions directly for accurate results.Why Use MCP?
LLMs often hallucinate when doing:- Math: Large number arithmetic, floating point operations, decimal comparisons
- Conversions: Unit conversions (UK vs US gallons, temperature)
- Encoding: Base64, URL encoding, hash generation
- Dates: Date calculations, timezone conversions
- Counting: Character counting (how many ‘r’ in ‘strawberry’)
Available Servers
TinyFn provides category-based MCP servers to avoid overwhelming LLMs with 500+ tools:| Server | URL | Tools | Description |
|---|---|---|---|
| Math | /mcp/math/ | 52 | Arithmetic, comparisons, trigonometry |
| Convert | /mcp/convert/ | 42 | Unit conversions (temperature, length, weight) |
| Validate | /mcp/validate/ | 15 | Email, URL, phone validation |
| String | /mcp/string/ | 33 | String manipulation, character counting |
| Hash | /mcp/hash/ | 18 | MD5, SHA256, etc. |
| Encode | /mcp/encode/ | 20 | Base64, URL, HTML encoding |
| DateTime | /mcp/datetime/ | 24 | Timestamps, formatting, relative time |
| Time | /mcp/time/ | 12 | Timezone conversions, DST handling |
| Stats | /mcp/stats/ | 16 | Mean, median, mode, variance, percentiles |
| All | /mcp/all/ | 500+ | All tools combined |
Platform Tool Limits
Different AI platforms have different limits on how many MCP tools they can handle:| Platform | Tool Limit | Recommendation |
|---|---|---|
| Cursor | 40 tools max | Use validate (15), hash (18), encode (20), or string (33). Avoid math (52) and convert (42) which exceed the limit. |
| Claude Desktop | ~100 tools | Use 2-3 category servers |
| Claude Code | Context-based | Can use /mcp/all/ with Tool Search |
| Windsurf | ~40-50 tools | Same as Cursor recommendations |
Quick Start
1. Get an API Key
Sign up at tinyfn.io to get your API key.2. Configure Your Client
- Claude Desktop
- Cursor / Windsurf
- Continue.dev
Add to
~/Library/Application Support/Claude/claude_desktop_config.json:3. Use It
Ask your AI assistant to do math, conversions, or other tasks. It will automatically use TinyFn tools when appropriate. Example:Rate Limits
MCP requests count against your normal TinyFn rate limits:| Plan | Requests/Month | Requests/Minute |
|---|---|---|
| Free | 100 | 10 |
| Starter | 10,000 | 100 |
| Pro | 100,000 | 1,000 |
Authentication Errors
If you see auth errors, verify:- Your API key starts with
tf_live_ - The
X-API-Keyheader is included - Your key hasn’t been revoked