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.
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"
}
}
}
}
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.
Returns a JSON response with the fortune message as a string. Each request generates a different inspirational or philosophical quote.
Yes, it's deterministic and reliable. Great for welcome messages, daily quotes in apps, or adding personality to chatbots and user interfaces.
All fortune cookie messages are positive, inspirational, and appropriate for any audience. No offensive or controversial content.
Uses proper randomization to select from a curated collection of fortune cookie sayings. You won't get the same message repeatedly in normal usage.
Get your free API key and start using Fortune Cookie in seconds.
Get Free API Key