# tinyfn

tinyfn — a remote MCP server that hands arithmetic, number checks and conversions to a deterministic tool instead of letting the model guess.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 517 installs
- Author: alex-jacobs08
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/alex-jacobs08/tinyfn
- Updated: 2026-06-19
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/alex-jacobs08-tinyfn

## What it does

tinyfn lives at `https://tinyfn--alex-jacobs08.run.tools` and speaks HTTP, so the client calls it and gets a value back. Nothing is installed on the machine.

The tool list is mostly number work: checks such as `is_prime`, `is_odd`, `is_divisible`, `is_perfect_square` and `is_fibonacci`; arithmetic like `factorial`, `gcd`, `lcm`, `power`, `percentage`, `average`; rounding and bounds through `round_number`, `clamp`, `floor`, `ceil`; trigonometry with `sin`, `cos`, `deg_to_rad`, `rad_to_deg`; logs via `log`, `log10`, `log2`, `exp`. There is also `minimum`, `maximum` and `distance`.

Because the endpoint sits outside your machine, every call needs a live connection to it. Setup is one terminal line for Claude and a small JSON block for Cursor or GitHub Copilot.

## Requirements
- Remote server: `https://tinyfn--alex-jacobs08.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http tinyfn https://tinyfn--alex-jacobs08.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add alex-jacobs08-tinyfn --url https://tinyfn--alex-jacobs08.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "alex-jacobs08-tinyfn": {
            "url": "https://tinyfn--alex-jacobs08.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "alex-jacobs08-tinyfn": {
            "type": "http",
            "url": "https://tinyfn--alex-jacobs08.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http alex-jacobs08-tinyfn https://tinyfn--alex-jacobs08.run.tools
```

## When to use it
- check whether a number is prime without trusting the model
- get the GCD of several numbers in one call
- convert degrees to radians for a geometry step
- round a computed value to a fixed number of decimals
- keep a value inside an allowed range

## Example prompts
- Use `tinyfn` to compute the factorial of 20 and show me the result.
- Ask `tinyfn` whether 1024 is a perfect square.
- Convert 45 degrees to radians with `deg_to_rad` from `tinyfn`.

## Similar
- [calculator](https://affpapa.org/en/nevibecode/skills/calculator.md) — skill · 1 install
- [atomic-decomposition](https://affpapa.org/en/nevibecode/skills/atomic-decomposition.md) — skill · 1700 installs
- [decimal-scaled](https://affpapa.org/en/nevibecode/plugins/decimal-scaled.md) — plugin · ★ 9 repo stars
- [Jacobian](https://affpapa.org/en/nevibecode/mcp/jacobian.md) — MCP server · ★ 375 repo stars
- [math-tools](https://affpapa.org/en/nevibecode/skills/math-tools.md) — skill · 1 install
- [manimce-best-practices](https://affpapa.org/en/nevibecode/skills/manimce-best-practices.md) — skill · 4800 installs

## Other versions with the same name
- [TinyFn · tinyfn-io](https://affpapa.org/en/nevibecode/mcp/tinyfn.md) — ★ 1 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
