mcp-remote-call-ping-pong

mcp-remote-call-ping-pong

3.5

This project is a Ping-Pong server that illustrates the use of the Model Context Protocol (MCP) with FastAPI. It focuses on experimental and educational purposes, offering features like command handling and thread-safe session management.

Top Comments

🏓 MCP Ping-Pong Server by Remote Call

An experimental and educational Ping-Pong server demonstrating MCP (Model Context Protocol) calls via FastAPI.

Features

  • FastAPI/FastMCP backend for remote MCP calls through API endpoints or SSE
  • MCP integration for command handling
  • Thread-safe session management

Quick Start

Installation

To install the dependencies, run poetry install.

1. Call MCP Tool through API

Run the Server

Start the FastAPI server and interact through the UI.

API Endpoints
  • Retrieves prompts and invokes MCP tool commands like ping, pong, and count.

2. Call MCP Tool through SSE transport

Demonstrates using Server-Sent Events for communication with the MCP server.