Get Joke
Get Joke MCP Server
Minimal Model Context Protocol (MCP) server (Node.js) that exposes one tool: get_joke.
Setup
npm installRelated MCP server: Jokes MCP Server
Run
node index.jsOr:
npm startTest (without Inspector)
This repo includes a tiny SDK-based client that spawns the server over stdio, lists tools, and calls get_joke:
npm run test:mcpTool response shape
The get_joke tool returns JSON like:
{
"joke": "Why do programmers prefer dark mode? Because light attracts bugs."
}Publish to the MCP Registry (official)
The official MCP Registry stores metadata only, so you must publish the package to npm first.
Publish to npm (once):
npm adduser
npm publish --access publicPublish metadata to the MCP Registry:
brew install mcp-publisher
mcp-publisher login github
mcp-publisher publishNotes:
package.jsonincludesmcpNameandserver.jsonuses the samename(required for verification).If you change the version, bump it in both
package.jsonandserver.json(and republish to npm).
Available Tools
1 toolget_jokeB
Return a random programming joke as JSON.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'get_joke' has a clear and distinct purpose, making it impossible for an agent to misselect among non-existent alternatives.
The single tool name 'get_joke' follows a consistent verb_noun pattern (get + joke). Since there is only one tool, there is no inconsistency in naming conventions to evaluate, and it adheres to a predictable style.
A single tool is too few for most server purposes, as it limits functionality and scope. While it might suffice for a minimal joke service, it feels thin and lacks depth, potentially hindering more complex agent interactions or broader use cases.
Inferring the domain as joke retrieval, the tool 'get_joke' provides a basic operation. However, there are notable gaps: no ability to filter jokes by category, search for specific jokes, or manage a joke collection (e.g., create, update, delete), which limits the surface's utility for varied agent needs.
Maintenance
Related MCP Connectors
Get a random dad joke or search by keyword to fit any moment. Retrieve specific jokes by ID for re…
Jokes MCP — wraps JokeAPI v2 (free, no auth)
Dad Jokes MCP — wraps icanhazdadjoke.com (free, no auth)
Greet people warmly or roast them with playful banter. Explore the origin of 'Hello, World' for qu…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to fetch random jokes from multiple sources including Chuck Norris jokes, Dad jokes, and Yo Mama jokes through integration with popular joke APIs.MIT
- -licenseNot gradedqualityNot gradedmaintenanceEnables users to retrieve various types of jokes including Chuck Norris and Dad jokes through natural language requests. Demonstrates MCP integration with Microsoft Copilot Studio and GitHub Copilot for humor-focused AI interactions.-
- -licenseNot gradedqualityNot gradedmaintenanceEnables developers to retrieve short jokes in multiple categories and languages during task processing. Provides fast offline fallbacks and configurable joke providers for entertainment during development workflows.-
- AlicenseNot gradedqualityDmaintenanceEnables users to fetch jokes from various categories including Chuck Norris jokes and dad jokes. Provides a humor-focused experience through natural language requests integrated with Microsoft Copilot Studio.MIT