@dennisk2025/random-food-joke
v1.0.0
Published
Fetches a random food-related joke to delight users with funny culinary humor.
Readme
random-food-joke
Fetches a random food-related joke to delight users with funny culinary humor. This is a production-ready MCP server providing a simple API for deliciously funny food jokes.
Installation
Using npx (recommended):
npx @dennisk2025/random-food-jokeOr install locally:
npm install @dennisk2025/random-food-jokeYou can then run it with:
npx random-food-jokeAdding to Claude Desktop
To use this MCP server with Claude Desktop, add the following to your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
%APPDATA%\Claude\claude_desktop_config.json (Windows)Add this JSON under the "mcpServers" section (create the section if it doesn't exist):
{
"mcpServers": {
"foodjoke": {
"command": "npx",
"args": ["@dennisk2025/random-food-joke"]
}
}
}Usage Example
Available Tools
- get-random-food-joke
- Description: Returns a random joke related to food, including the joke text and, if available, its source.
- Parameters: None
Example Tool Call
Call the tool with no parameters:
{
"name": "get-random-food-joke",
"arguments": {}
}Example Response
{
"joke": "Why did the tomato turn red? Because it saw the salad dressing!",
"source": "Foodish API"
}Tool Reference
get-random-food-joke
- Description: Returns a random joke related to food, including the joke text and, if available, its source.
- Input Schema:
{
"type": "object",
"properties": {},
"required": []
}- Returns: Object with fields:
joke: string (the joke text)source: string (optional; the author or API source)
Support
Please use the foodish-api.com joke endpoint for API jokes. If there are network issues or you encounter an error, please try again. This MCP server is production-ready and suitable for both fun and development use!
