Integrations
Python MCP Cat の豆知識
Server-Sent Events (SSE) トランスポートを使用してモデル コンテキスト プロトコル (MCP) を実装し、cat ファクトを提供する FastAPI サーバー。
特徴
- ランダムに猫の豆知識を1つ入手
- 10秒ごとに配信される猫の豆知識のストリームを購読してください
- リアルタイム通信のためのSSE(サーバー送信イベント)
- 自動 OpenAPI ドキュメントを備えた FastAPI フレームワーク
要件
- Python 3.12以上
- 依存関係:
- ファスタピ
- mcp[cli]
- ウビコーン
- cmake
インストール
リポジトリをクローンする
Copy
仮想環境を作成する
Copy
依存関係をインストールする
Copy
SSEモードでサーバーを起動する
uv run コマンドを使用してサーバーを起動します。
Copy
サーバーが稼働すると、次の場所で利用できるようになります:
- API: http://localhost:8000
- APIドキュメント: http://localhost:8000/docs
VSコード統合
この MCP サーバーを VS Code で使用するには、 mcp.json
ファイルに次の構成を追加する必要があります。
Copy
この構成は、SSE トランスポートを使用して MCP サーバーに接続する方法を VS Code に指示します。
Cat Facts APIの使用
猫に関する事実:
SSEエンドポイントに接続し、猫に関する情報を1つリクエストします。レスポンスは常に「Hi!」で始まります。
APIエンドポイント
GET /
: ホームページGET /about
: アプリケーションに関する情報GET /status
: 現在のサーバーステータスGET /sse
: MCP通信用のSSEエンドポイントGET /docs
: API ドキュメント (Swagger UI)GET /redoc
: 代替 API ドキュメント (ReDoc)
ライセンス
This server cannot be installed
Server-Sent Events (SSE) トランスポートを使用してモデル コンテキスト プロトコル (MCP) を実装し、オンデマンドまたは継続的なストリームとしてランダムな猫の情報を提供する FastAPI サーバー。
Related MCP Servers
- -securityAlicense-qualityA high-performance FastAPI server supporting Model Context Protocol (MCP) for seamless integration with Large Language Models, featuring REST, GraphQL, and WebSocket APIs, along with real-time monitoring and vector search capabilities.Last updated -5PythonMIT License
- -securityAlicense-qualityA Server-Sent Events implementation using FastAPI framework that integrates Model Context Protocol (MCP), allowing AI models to access external tools and data sources like weather information.Last updated -9PythonMIT License
- -securityFlicense-qualityA simple application demonstrating Model Context Protocol (MCP) integration with FastAPI and Streamlit, allowing users to interact with LLMs through a clean interface.Last updated -3Python
- AsecurityFlicenseAqualityAn implementation of the Model Context Protocol (MCP) server using Server-Sent Events (SSE) for real-time communication, providing tools for calculations and dynamic resource templates.Last updated -1JavaScript