Joke Generator MCP
Joke Generator MCP
一个使用 Python 构建的简单 Model Context Protocol (MCP) 服务器,提供开发者和编程笑话。
目标
本项目是 MCP 学习工作流的一部分,旨在理解 MCP 服务器如何构建、测试和部署。
Related MCP server: Jokes MCP Server
功能
工具:
get_random_joke:返回一个随机的开发者笑话。get_joke_by_topic:根据特定的编程主题(例如 Python、JavaScript、CSS)返回一个笑话。
设置与安装
克隆或下载仓库
安装依赖: 确保已安装 Python 3.10+。在本地安装该包:
pip install -e .
使用(本地测试)
您可以使用 stdio 直接运行 MCP 服务器:
python -m joke_mcp使用 MCP Inspector 进行测试
要以交互方式测试服务器,请使用官方的 MCP Inspector:
npx @modelcontextprotocol/inspector python -m joke_mcp这将启动一个本地 Web 界面,您可以在其中调用此服务器提供的工具。
部署到 Smithery
本项目包含一个 smithery.yaml 配置文件,便于部署到 Smithery 市场。
确保您的代码托管在公共 GitHub 仓库中。
前往 Smithery 并点击"添加服务器"。
提供您的仓库 URL。Smithery 将读取
smithery.yaml并自动配置构建。
学习成果
演示了如何使用
mcpPython SDK 创建工具。设置了标准的 Python 包结构。
为通过 MCP 市场进行公开分享做好了准备。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides jokes on demand, allowing users to request different types of jokes (Chuck Norris, Dad jokes, etc.) through natural language in both GitHub Copilot and Microsoft Copilot Studio.MIT
- AlicenseNot gradedqualityDmaintenanceEnables users to fetch jokes from various categories including Chuck Norris and dad jokes through a standardized MCP interface. Demonstrates integration between Microsoft Copilot Studio and MCP servers for humor-based interactions.MIT
- AlicenseNot gradedqualityDmaintenanceEnables users to fetch various types of jokes including Chuck Norris and Dad jokes through an MCP server that integrates with Microsoft Copilot Studio and GitHub Copilot.MIT
- AlicenseNot gradedqualityDmaintenanceEnables users to fetch jokes from various categories including Chuck Norris jokes and Dad jokes through a standardized MCP interface. Provides integration with Microsoft Copilot Studio and GitHub Copilot for AI-powered humor delivery.MIT
Related MCP Connectors
Jokes MCP — wraps JokeAPI v2 (free, no auth)
Dad Jokes MCP — wraps icanhazdadjoke.com (free, no auth)
Chuck Norris MCP — wraps chucknorris.io (free, no auth)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/aidevshakil/mcp-learning'
If you have feedback or need assistance with the MCP directory API, please join our Discord server