io.github.Hamzaaamin/get-joke

Official registry Developer tools

Minimal MCP server that returns a random programming joke.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package @hamzaamin221/get-joke-mcp
Claude Code
claude mcp add get-joke -- npx -y @hamzaamin221/get-joke-mcp@0.1.1
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "get-joke": {
            "command": "npx",
            "args": [
                "-y",
                "@hamzaamin221/get-joke-mcp@0.1.1"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Get Joke MCP Server
  2. Setup
  3. Run
  4. Test (without Inspector)
  5. Tool response shape
  6. Publish to the MCP Registry (official)

Get 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.

  1. Publish to npm (once):
npm adduser
npm publish --access public
  1. Publish metadata to the MCP Registry:
brew install mcp-publisher
mcp-publisher login github
mcp-publisher publish

Notes:

  • package.json includes mcpName and server.json uses the same name (required for verification).
  • If you change the version, bump it in both package.json and server.json (and republish to npm).

Frequently asked questions

What is io.github.Hamzaaamin/get-joke?

Minimal MCP server that returns a random programming joke.

How do I install io.github.Hamzaaamin/get-joke?

It runs on your machine. In Claude Code: claude mcp add get-joke -- npx -y @hamzaamin221/get-joke-mcp@0.1.1. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.Hamzaaamin/get-joke need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is io.github.Hamzaaamin/get-joke open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains io.github.Hamzaaamin/get-joke?

It is published by Hamzaaamin. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.