Remote Call Ping-Pong
Createdkimtth
Demonstrates remote Model Context Protocol (MCP) calls using a Ping-Pong server implemented with FastAPI.
About
This experimental Ping-Pong server showcases remote MCP (Model Context Protocol) calls via a FastAPI backend. It offers a practical demonstration of integrating MCP for command handling through API endpoints or Server-Sent Events (SSE), complete with thread-safe session management. The project provides both an API-based interaction using a simple HTML UI and an SSE-based interaction for real-time communication, serving as an educational resource for understanding and implementing MCP in different server architectures.
Key Features
- FastAPI/FastMCP backend for remote MCP calls via API or SSE
- Thread-safe session management
- SSE-based communication example
- MCP integration for command handling (ping, pong, count)
- Example API client (HTML)
- 1 GitHub stars
Use Cases
- Implementing command handling via API endpoints
- Learning and experimenting with MCP integration in web applications
- Demonstrating real-time communication using Server-Sent Events