Skip to main content

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’)
With TinyFn MCP, LLMs can call verified functions instead of guessing.

Available Servers

TinyFn provides category-based MCP servers to avoid overwhelming LLMs with 500+ tools: View all categories →
Trailing Slash RequiredURLs must end with / or you’ll get 404 errors:
  • https://api.tinyfn.io/mcp/math/
  • https://api.tinyfn.io/mcp/math

Platform Tool Limits

Different AI platforms have different limits on how many MCP tools they can handle:
For best results, add only the category servers you need rather than using /mcp/all/. This keeps the tool list manageable and helps the AI select the right tool.

Quick Start

1. Get an API Key

Sign up at tinyfn.io to get your API key.

2. Configure Your Client

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:

Authentication Errors

If you see auth errors, verify:
  1. Your API key starts with tf_live_
  2. The X-API-Key header is included
  3. Your key hasn’t been revoked

Example Tools

Math Tools

String Tools

Conversion Tools