Fun Utilities

Fortune Cookie

Returns a random fortune cookie message via GET /v1/fun/fortune. Perfect for adding whimsical touches to applications or breaking the ice in chatbots. AI agents in Cursor and Windsurf can fetch inspirational quotes on demand. Each call delivers a different motivational phrase, just like cracking open a real fortune cookie.

API Endpoint

GET /v1/fun/fortune

Code Examples

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's fun tools:

{
  "mcpServers": {
    "tinyfn-fun": {
      "url": "https://tinyfn.io/mcp/fun",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I get a fortune cookie message using MCP?

Use the fortune cookie tool in MCP-enabled editors like Cursor or Claude Code. The agent will call the tool and return a random fortune message instantly.

What format does the fortune cookie API return?

Returns a JSON response with the fortune message as a string. Each request generates a different inspirational or philosophical quote.

Can I use fortune cookies in production applications?

Yes, it's deterministic and reliable. Great for welcome messages, daily quotes in apps, or adding personality to chatbots and user interfaces.

Are the fortune messages family-friendly?

All fortune cookie messages are positive, inspirational, and appropriate for any audience. No offensive or controversial content.

How random are the fortune cookie messages?

Uses proper randomization to select from a curated collection of fortune cookie sayings. You won't get the same message repeatedly in normal usage.

Try Fortune Cookie Now

Get your free API key and start using Fortune Cookie in seconds.

Get Free API Key