Joke MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Joke MCP ServerTell me a random joke"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š Joke MCP Server
A simple yet powerful Model Context Protocol (MCP) server that brings humor to AI interactions. This MCP exposes random joke generation as tools that can be seamlessly integrated with Claude and other MCP-compatible clients.
⨠Features
get_random_joke- Get a random joke with setup and punchlinecount_jokes- Get the total number of available jokes in the databaseSimple & Lightweight - Minimal dependencies, fast execution
Easy Integration - Works with Claude Desktop and other MCP clients
Well-Documented - Clear schemas and usage examples
Related MCP server: Jokes MCP Server
š Quick Start
Prerequisites
Python 3.11 or higher
pip package manager
Installation
# Clone the repository
git clone https://github.com/tehrimaly/mcp-joke.git
cd mcp-joke
# Create virtual environment
python -m venv venv
# Activate virtual environment
# On Windows:
venv\Scripts\Activate.ps1
# On macOS/Linux:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txtRunning the Server
python joke-mcp.pyYou should see:
š Joke MCP Server starting...š Usage
With Claude Desktop
Add this to your Claude Desktop configuration file:
macOS/Linux: ~/.config/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"joke-mcp": {
"command": "python",
"args": ["/path/to/joke-mcp.py"]
}
}
}Then restart Claude Desktop and you can ask Claude to tell jokes!
API Reference
get_random_joke
Returns a random joke with setup and punchline.
Input: None
Output:
Setup: Why don't scientists trust atoms?
Punchline: Because they make up everything!count_jokes
Returns the total number of jokes available in the database.
Input: None
Output:
Total jokes: 5šļø Project Structure
mcp-joke/
āāā joke-mcp.py # Main MCP server implementation
āāā requirements.txt # Python dependencies
āāā README.md # This file
āāā .gitignore # Git configuration
āāā LICENSE # MIT Licenseš§ Technical Details
Built With
Python 3.11+ - Programming language
MCP SDK v1.0.0 - Model Context Protocol library
Asyncio - Asynchronous programming
How It Works
The Joke MCP Server:
Starts an MCP server listening on stdio
Registers available tools with their schemas
Handles incoming requests from MCP clients
Returns formatted responses with joke data
# Tool registration example
@server.list_tools()
async def list_tools():
return [
Tool(
name="get_random_joke",
description="Get a random joke",
inputSchema={...}
)
]
# Tool execution
@server.call_tool()
async def call_tool(name: str, arguments: dict):
if name == "get_random_joke":
# Return random jokeš¦ Dependencies
mcp==1.0.0- Model Context Protocol SDK
See requirements.txt for complete dependency list.
šÆ Current Features
ā 5 built-in jokes ā Async/await support ā Clean error handling ā Simple schema-based tool definition ā Stdout logging
š® Future Enhancements
Add joke categories (dad jokes, puns, dark humor)
Implement difficulty levels
Add joke ratings/feedback
Connect to external joke APIs
Persist user favorites
Multi-language support
Web UI for joke management
š¤ Contributing
Feel free to:
Add more jokes to the database
Improve documentation
Report bugs
Suggest new features
š License
This project is licensed under the MIT License - see LICENSE file for details.
š Links
MCP Specification: https://spec.modelcontextprotocol.io/
Anthropic MCP Docs: https://modelcontextprotocol.io/
š” Example Use Cases
AI Assistant Integration - Add humor to Claude interactions
Slack Bot - Integrate jokes into team communication
Learning Tool - Understand MCP implementation basics
Template - Use as a starting point for your own MCP servers
š Troubleshooting
Issue: Module not found error
pip install -r requirements.txtIssue: Port already in use The server uses stdio, not a port. This shouldn't occur.
Issue: Server won't start
Check Python version (3.11+)
Verify all dependencies installed
Check for syntax errors
š§ Support
For issues, questions, or suggestions, please open a GitHub issue.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that fetches jokes from multiple sources (Chuck Norris, Dad jokes, and Yo Mama jokes) and integrates with Microsoft Copilot Studio to create a humor-focused conversational experience.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server implementation that delivers various joke types (Chuck Norris, Dad jokes, etc.) to Microsoft Copilot Studio and GitHub Copilot through the Model Context Protocol.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides jokes on demand, allowing users to request different types of jokes (Chuck Norris, Dad jokes, etc.) through natural language in both GitHub Copilot and Microsoft Copilot Studio.MIT
- AlicenseNot gradedqualityDmaintenanceFetches jokes from multiple APIs including Chuck Norris, Dad jokes, and Yo Mama jokes, providing humor-focused content through standardized MCP tools.MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
Manage feature requests, votes, roadmaps, and changelogs from any MCP client.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tehrimaly/mcp-guide'
If you have feedback or need assistance with the MCP directory API, please join our Discord server