Dad Jokes MCP Server
A professional Model Context Protocol (MCP) server that brings the joy of dad jokes to your development workflow. Perfect for lightening the mood during code reviews, team meetings, or when you need a quick laugh break.
π― Features
Multiple Joke Styles: Classic, punny, wholesome, and groan-worthy variants
Topic-Based Generation: Generate jokes about specific subjects
Random Joke Generation: Get random jokes when you need inspiration
Joke Rating System: Rate and get feedback on dad jokes
Category Browser: Explore available joke categories
Fun Statistics: Get interesting dad joke statistics
Type-Safe: Built with TypeScript for robust development
Professional Architecture: Clean, maintainable code structure
π Quick Start
Prerequisites
Node.js >= 18.0.0
npm or yarn
TypeScript knowledge (optional but helpful)
Installation
Development Setup
π Available Prompts
generate-dad-joke
Generate a dad joke on a specific topic with optional style.
Parameters:
topic(string): The subject for the jokestyle(optional string): "classic", "punny", "wholesome", or "groan-worthy"
Example:
Sample Output:
"Why do programmers prefer dark mode? Because light attracts bugs!"
random-dad-joke
Generate random dad jokes.
Parameters:
count(optional string): Number of jokes to generate ("1" to "5")
Example:
rate-dad-joke
Get a professional rating and feedback for a dad joke.
Parameters:
joke(string): The joke to evaluate
Example:
π οΈ Available Tools
get-joke-categories
Retrieve all available joke categories.
Parameters: None
Returns: List of 15 joke categories including Animals, Food, Technology, Sports, etc.
joke-stats
Get fun statistics about dad jokes.
Parameters: None
Returns: Entertaining statistics like success rates, average groan time, and more!
π§ Integration with MCP Clients
Claude Desktop Integration
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Other MCP Clients
For other MCP-compatible clients, use the stdio transport:
ποΈ Architecture
The server is built with a clean, object-oriented architecture:
Key Components
DadJokesMcpServer: Main server class handling MCP protocol
Prompt Management: Organized prompt definitions with proper validation
Tool Integration: Extensible tool system for additional functionality
Error Handling: Comprehensive error handling and logging
Type Safety: Full TypeScript coverage with strict configuration
π Usage Examples
Example Workflow
Start your day with humor:
Prompt: random-dad-joke Count: 1Generate topic-specific jokes:
Prompt: generate-dad-joke Topic: "TypeScript" Style: "punny"Rate team jokes:
Prompt: rate-dad-joke Joke: "Why do developers wear glasses? Because they can't C#!"Browse categories for inspiration:
Tool: get-joke-categories
Integration Ideas
Code Review Comments: Add dad jokes to lighten PR reviews
Team Standup: Start meetings with a daily dad joke
Error Messages: Soften build failures with humor
Documentation: Add personality to technical docs
Slack Bots: Integrate with team communication tools
π§ͺ Testing
The project includes a basic test structure:
Manual Testing
Test the server manually:
π§ Configuration
Environment Variables
Customization
Modify the joke categories, styles, or statistics by editing the arrays in src/index.ts:
π¦ Publishing
To publish to npm:
π€ Contributing
We welcome contributions! Here's how to get started:
Quick Start for Contributors
Fork the repository on GitHub
Clone your fork:
git clone https://github.com/YOUR-USERNAME/dad-jokes-mcp-server.git cd dad-jokes-mcp-serverCreate a feature branch:
git checkout -b feature/amazing-featureMake your changes and test them
Commit your changes:
git commit -m "Add amazing feature"Push to your branch:
git push origin feature/amazing-featureOpen a Pull Request on GitHub
Development Guidelines
Follow TypeScript best practices
Add tests for new features
Update documentation for API changes
Run
npm run lintbefore committingKeep jokes family-friendly and inclusive
Ideas for Contributions
π New joke categories (Science, Gaming, etc.)
π οΈ Additional tools (joke history, favorites)
π¨ Joke formatting (ASCII art, emojis)
π§ͺ Test coverage improvements
π Documentation enhancements
π Performance optimizations
π Troubleshooting
Common Issues
Build Errors:
# Clear cache and rebuild npm run clean && npm install && npm run buildMCP Connection Issues:
Verify Node.js version >= 18.0.0
Check file paths in MCP client configuration
Ensure the built files exist in
dist/
TypeScript Errors:
Run
npm run lintto check for issuesVerify all dependencies are installed
Getting Help
Issues: GitHub Issues
Discussions: GitHub Discussions
Documentation: Check the README and code comments
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Why Dad Jokes?
Dad jokes are more than just humorβthey're:
Ice breakers for team meetings
Stress relievers during intense coding sessions
Conversation starters in code reviews
Morale boosters for development teams
Universal language that transcends technical barriers
Confidence builders (if you can survive a dad joke, you can handle any code review)
π Roadmap
Future enhancements we're considering:
π― Joke persistence (save favorites)
π Multi-language support
π€ AI-powered joke generation improvements
π Analytics (most popular jokes, usage stats)
π¨ Rich formatting (markdown, emojis)
π More integrations (Slack, Discord, etc.)
π Acknowledgments
Model Context Protocol team for the excellent framework
The dad joke community for endless inspiration
All contributors who help make this project better
Every developer who appreciates a good (bad) pun
π Project Stats
Language: TypeScript
Runtime: Node.js
Protocol: Model Context Protocol (MCP)
License: MIT
Maintainer: OrenGrinker
Remember: A day without laughter is a day wasted, but a day with dad jokes is a day where everyone groans together. π
Fun Fact: This README contains exactly 42 dad joke references. That's not a coincidence β it's the answer to life, the universe, and everything... including why developers love terrible puns! π€