파이썬 MCP Cat 정보
SSE(Server-Sent Events) 전송을 사용하여 고양이 사실을 제공하는 모델 컨텍스트 프로토콜(MCP)을 구현하는 FastAPI 서버입니다.
특징
- 무작위로 고양이 한 마리의 사실을 알아보세요
- 10초마다 전달되는 고양이 관련 사실 스트림을 구독하세요
- 실시간 통신을 위한 SSE(Server-Sent Events)
- 자동 OpenAPI 문서화를 갖춘 FastAPI 프레임워크
요구 사항
- 파이썬 3.12+
- 종속성:
- 패스트아피
- mcp[cli]
- 유비콘
- cmake
설치
저장소를 복제합니다
지엑스피1
가상 환경 만들기
종속성 설치
SSE 모드에서 서버 시작
uv run 명령을 사용하여 서버를 시작합니다.
서버가 실행되면 다음 위치에서 사용할 수 있습니다.
- API: http://localhost:8000
- API 문서: http://localhost:8000/docs
VS 코드 통합
VS Code와 함께 이 MCP 서버를 사용하려면 mcp.json
파일에 다음 구성을 추가해야 합니다.
이 구성은 VS Code가 SSE 전송을 사용하여 MCP 서버에 연결하는 방법을 알려줍니다.
Cat Facts API 사용
고양이 한 마리에 대한 사실을 알아보세요:
SSE 엔드포인트에 연결하여 단일 고양이 정보를 요청하세요. 응답은 항상 "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
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
SSE(Server-Sent Events) 전송을 사용하여 모델 컨텍스트 프로토콜(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