Python MCP Cat Facts
Python MCP Cat の豆知識
Server-Sent Events (SSE) トランスポートを使用してモデル コンテキスト プロトコル (MCP) を実装し、cat ファクトを提供する FastAPI サーバー。
特徴
ランダムに猫の豆知識を1つ入手
10秒ごとに配信される猫の豆知識のストリームを購読してください
リアルタイム通信のためのSSE(サーバー送信イベント)
自動 OpenAPI ドキュメントを備えた FastAPI フレームワーク
Related MCP server: Skemati.ca MCP SSE Server
要件
Python 3.12以上
依存関係:
ファスタピ
mcp[cli]
ウビコーン
cmake
インストール
リポジトリをクローンする
git clone <repository-url>
cd python-mcp仮想環境を作成する
python -m venv venv
source venv/bin/activate # On Windows, use: venv\Scripts\activate依存関係をインストールする
pip install -e .SSEモードでサーバーを起動する
uv run コマンドを使用してサーバーを起動します。
uv run startサーバーが稼働すると、次の場所で利用できるようになります:
APIドキュメント: http://localhost:8000/docs
VSコード統合
この MCP サーバーを VS Code で使用するには、 mcp.jsonファイルに次の構成を追加する必要があります。
{
"servers": {
"mcp-sse": {
"type": "sse",
"url": "http://0.0.0.0:8000/sse"
}
}
}この構成は、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 deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A Model Context Protocol server for Wix AI tools
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA 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.51MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol (MCP) server implementation that uses Server-Sent Events (SSE) to enable real-time, server-pushed updates between AI models and tools over HTTP connections.1-
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server implementation built with FastAPI that enables AI agent interactions. Provides a structured foundation for building AI-powered applications with proper data validation and modern Python tooling.-
- AlicenseNot gradedqualityDmaintenanceA FastAPI MCP server that uses Server-Sent Events as a transport layer, providing echo functionality through tools, resources, and prompts.12MIT