dad-jokes

dad-jokes

3.5

The Dad Jokes MCP Server is a service providing a vast collection of dad jokes, categorized and accessible for entertainment or application integration.

The Dad Jokes MCP Server is a comprehensive service that delivers an unlimited collection of dad jokes, categorized by type and accessible via a set of intuitive tools. Whether you're a developer looking to add a touch of humor to your application or someone in need of a good laugh, this server has got you covered.

Features

  • Unlimited Jokes: Access a vast repository of dad jokes, ensuring you never run out of content.
  • Categorized Jokes: Jokes are organized by types such as General, Knock-Knock, and Programming, allowing for easy navigation and selection.
  • AI-Powered Jokes: Leverage AI technology to generate unique jokes on specified topics.

MCP Tools

  • Random Jokes: Retrieve a random dad joke, complete with a setup, punchline, type, and ID.
  • Joke Count: Get the total number of jokes stored in the server.
  • AI Jokes: Generate jokes powered by AI based on specific topics.
  • JokeByType: Search for a joke based on its type.
  • Search: Enter a search term to find jokes that match your query.
  • JokeByID: Fetch a specific joke using its unique ID.

Usage with Different Platforms

python

python
import requests

response = requests.get('https://dadjokes.example.com/api/random')
if response.status_code == 200:
    joke = response.json()
    print(f"{joke['setup']} - {joke['punchline']}")
else:
    print('Failed to retrieve a joke')

javascript

javascript
fetch('https://dadjokes.example.com/api/random')
  .then(response => response.json())
  .then(joke => console.log(`${joke.setup} - ${joke.punchline}`))
  .catch(error => console.error('Error fetching joke:', error));