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).
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
- 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/Hamzaaamin/Get-Joke'
If you have feedback or need assistance with the MCP directory API, please join our Discord server