About Get Joke
Get Joke is a minimal Node.js MCP server that returns a random programming joke through a single tool. It fits use in MCP clients that need a joke tool.
Key features
- 01Provides the get_joke tool
- 02Returns a random programming joke
- 03Returns the result as JSON
Use cases
- 01Get a programming joke in a conversation
- 02Check tool calls from an MCP client
MCP support
As an MCP server, it exposes the get_joke tool to clients for retrieving a random programming joke.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEGet Joke MCP Server
Minimal Model Context Protocol (MCP) server (Node.js) that exposes one tool: get_joke.
Setup
npm install
Run
node index.js
Or:
npm start
Test (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:mcp
Tool 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 public
- Publish metadata to the MCP Registry:
brew install mcp-publisher
mcp-publisher login github
mcp-publisher publish
Notes:
package.jsonincludesmcpNameandserver.jsonuses the samename(required for verification).- If you change the version, bump it in both
package.jsonandserver.json(and republish to npm).
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.