Get Joke

io.github.HamzaaaminPublished by GitHub account Hamzaaaminv0.1.1Updated Oct 24, 2026

Minimal MCP server that returns a random programming joke.

VerifiedSTDIODesktop only

Overview

AI-generated overview

A minimal local MCP server that gives an assistant one tool, get_joke, returning a random programming joke.

What you can do
Return a random programming joke as a JSON object with a joke field.
When to use it
Only for demos, testing an MCP client setup, or adding a light touch of humor; it offers no real work capability.
Requirements
A local Node.js runtime to run the npm package over stdio; no accounts, keys or network access are declared.
Before you install
Nothing sensitive is requested and it does not write data; treat the returned joke text as untrusted content.

Installation

In SourceWeft

  1. Open Get Joke in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

Get Joke MCP Server

Minimal Model Context Protocol (MCP) server (Node.js) that exposes one tool: get_joke.

Setup

bash
npm install

Run

bash
node index.js

Or:

bash
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:

bash
npm run test:mcp

Tool response shape

The get_joke tool returns JSON like:

json
{  "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):
bash
npm addusernpm publish --access public
  1. Publish metadata to the MCP Registry:
bash
brew install mcp-publishermcp-publisher login githubmcp-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).

Source: README.md at commit befeaa1

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts