Get a random dad joke or search by keyword to fit any moment. Retrieve specific jokes by ID for re…
A lightweight Model Context Protocol (MCP) server that provides dad jokes from icanhazdadjoke.com.
get_random_joke_toolGet a random dad joke.
Example:
{}search_jokes_toolSearch for dad jokes containing a specific term.
Parameters:
term (string, required): Search term to find jokeslimit (integer, optional): Number of jokes to return (default: 5, max: 30)Example:
{
"term": "pizza",
"limit": 3
}get_joke_by_id_toolRetrieve a specific joke by its ID.
Parameters:
joke_id (string, required): The ID of the joke to retrieveExample:
{
"joke_id": "R7UfaahVfFd"
}git clone https://github.com/aamangeldi/dad-jokes-mcp.git
cd dad-jokes-mcppython3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install fastmcp smithery httpxfastmcp run server.pyThe server uses:
runtime: python in smithery.yaml@smithery.server() decorator for configurationThe server requires no authentication or configuration. It uses the free icanhazdadjoke.com API with the following defaults:
https://icanhazdadjoke.comDad jokes provided by icanhazdadjoke.com
MIT License - see LICENSE file for details