Python MCP Cat Facts

by akream
  • Linux
  • Apple

Integrations

  • Provides a FastAPI-based server implementation that exposes cat facts data through SSE transport, complete with automatic OpenAPI documentation.

  • Integrates with Swagger UI to provide interactive API documentation, allowing users to explore and test the cat facts endpoints.

파이썬 MCP Cat 정보

SSE(Server-Sent Events) 전송을 사용하여 고양이 사실을 제공하는 모델 컨텍스트 프로토콜(MCP)을 구현하는 FastAPI 서버입니다.

특징

  • 무작위로 고양이 한 마리의 사실을 알아보세요
  • 10초마다 전달되는 고양이 관련 사실 스트림을 구독하세요
  • 실시간 통신을 위한 SSE(Server-Sent Events)
  • 자동 OpenAPI 문서화를 갖춘 FastAPI 프레임워크

요구 사항

  • 파이썬 3.12+
  • 종속성:
    • 패스트아피
    • mcp[cli]
    • 유비콘
    • cmake

설치

저장소를 복제합니다

지엑스피1

가상 환경 만들기

python -m venv venv source venv/bin/activate # On Windows, use: venv\Scripts\activate

종속성 설치

pip install -e .

SSE 모드에서 서버 시작

uv run 명령을 사용하여 서버를 시작합니다.

uv run start

서버가 실행되면 다음 위치에서 사용할 수 있습니다.

VS 코드 통합

VS Code와 함께 이 MCP 서버를 사용하려면 mcp.json 파일에 다음 구성을 추가해야 합니다.

{ "servers": { "mcp-sse": { "type": "sse", "url": "http://0.0.0.0:8000/sse" } } }

이 구성은 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)

특허

MIT

-
security - not tested
F
license - not found
-
quality - not tested

SSE(Server-Sent Events) 전송을 사용하여 모델 컨텍스트 프로토콜(MCP)을 구현하는 FastAPI 서버로, 수요에 따라 또는 연속 스트림으로 무작위 고양이 사실을 제공합니다.

  1. 특징
    1. 요구 사항
      1. 설치
        1. 저장소를 복제합니다
        2. 가상 환경 만들기
        3. 종속성 설치
      2. SSE 모드에서 서버 시작
        1. VS 코드 통합
          1. Cat Facts API 사용
            1. 고양이 한 마리에 대한 사실을 알아보세요:
          2. API 엔드포인트
            1. 특허

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                A 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 -
                5
                Python
                MIT License
              • -
                security
                A
                license
                -
                quality
                A 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 -
                9
                Python
                MIT License
              • -
                security
                F
                license
                -
                quality
                A simple application demonstrating Model Context Protocol (MCP) integration with FastAPI and Streamlit, allowing users to interact with LLMs through a clean interface.
                Last updated -
                3
                Python
                • Linux
              • A
                security
                F
                license
                A
                quality
                An 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 -
                1
                JavaScript

              View all related MCP servers

              ID: 4sslfgnx26