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_mcpMCP Inspectorでのテスト
サーバーを対話的にテストするには、公式のMCP Inspectorを使用します:
npx @modelcontextprotocol/inspector python -m joke_mcpこれにより、このサーバーが提供するツールを呼び出せるローカルWebインターフェースが起動します。
Smitheryへのデプロイ
このプロジェクトには、Smitheryマーケットプレイスへの簡単なデプロイのためのsmithery.yaml設定ファイルが含まれています。
コードが公開のGitHubリポジトリでホストされていることを確認してください。
Smitheryにアクセスし、「Add Server」をクリックします。
リポジトリのURLを入力します。Smitheryが
smithery.yamlを読み取り、ビルドを自動的に設定します。
学習成果
mcpPython SDKを使用してツールを作成する方法を実演しました。標準的なPythonパッケージ構造をセットアップしました。
MCPマーケットプレイスを通じた公開共有の準備をしました。
This server cannot be deployed
Maintenance
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)
Get a random dad joke or search by keyword to fit any moment. Retrieve specific jokes by ID for re…
Related MCP Servers
- 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
- AlicenseNot gradedqualityDmaintenanceFetches jokes from multiple APIs including Chuck Norris, Dad jokes, and Yo Mama jokes, providing humor-focused content through standardized MCP tools.MIT