mcp-remote-call-ping-pong
๐ An experimental and educational script for Ping-pong server demonstrating remote MCP (Model Context Protocol) calls
claude mcp add --transport stdio kimtth-mcp-remote-call-ping-pong python mcp-api-server.py
How to use
This MCP server implements a Ping-Pong interaction via MCP calls using a FastAPI backend. It exposes two ways to interact: a standard API endpoint and a Server-Sent Events (SSE) transport. The API lets clients retrieve prompts and invoke MCP tool commands such as ping, pong, and count through HTTP requests. The SSE variant provides a streaming, event-driven channel suitable for interactive sessions or long-running conversations. Use the UI file mcp-api-client.html to interact with the API in a browser, or run the SSE client script to exchange commands over SSE. The server runs by default at http://localhost:8080, and uses the Python scripts mcp-api-server.py and mcp-sse-server.py to handle requests and sessions.
How to install
Prerequisites:
- Python 3.8+ installed on your system
- Poetry (optional but recommended for dependency management)
Install and run (API server):
# Using Poetry (recommended)
poetry install
poetry run python mcp-api-server.py
# Or without Poetry
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python mcp-api-server.py
Access the API at http://localhost:8080. The UI file mcp-api-client.html can be opened in a browser to interact with the API.
Install and run (SSE server):
# Using Poetry
poetry install
poetry run python mcp-sse-server.py
# Or without Poetry
python mcp-sse-server.py
This will start the SSE server for interactive command sessions.
Additional notes
Tips and notes:
- The API provides endpoints like GET /ping-pong?prompt_name=<prompt_name> and POST /ping-pong to execute commands such as ping, pong, and count.
- SSE mode offers a real-time, streaming interface for MCP interactions; you can run mcp-sse-client.py to connect and issue commands.
- The default port is 8080 unless otherwise configured in the server scripts.
- Ensure that dependencies are installed (e.g., FastAPI, uvicorn) when running the API server. If using Poetry, use poetry install to fetch dependencies.
- If you modify prompts or endpoints, verify that the UI or client scripts point to the correct server URL.
- Session management is described as thread-safe in the features; for production, consider appropriate deployment considerations for Python web services.
- The repository references external MCP guides and related projects for inspiration on MCP transport and UI integration.
Related MCP Servers
zin -client
MCP Client which serves as bridge between mcp servers and local LLMs running on Ollama, Created for MCP Servers Developed by Me, However other MCP Servers may run as well
pluggedin-app
The Crossroads for AI Data Exchanges. A unified, self-hostable web interface for discovering, configuring, and managing Model Context Protocol (MCP) serversโbringing together AI tools, workspaces, prompts, and logs from multiple MCP sources (Claude, Cursor, etc.) under one roof.
supermcp
๐ SuperMCP - Create multiple isolated MCP servers using a single connector. Build powerful Model Context Protocol integrations for databases (PostgreSQL, MSSQL) with FastAPI backend, React dashboard, and token-based auth. Perfect for multi-tenant apps and AI assistants.
mcp-demo
URL MCP is a proof of concept stateless MCP server builder that allows users to build MCP servers without writing or hosting code. It's intended for protocol and security experimentation rather than for building real world MCP integrations.
MCPlex-AI-v1.0
๐ ๐ผ๐ฑ๐ฒ๐น ๐๐ผ๐ป๐๐ฒ๐ ๐ ๐ฃ๐ฟ๐ผ๐๐ผ๐ฐ๐ผ๐น (๐ ๐๐ฃ) ๐๐ฎ๐๐ฒ๐ฑ ๐๐๐ ๐๐ | ๐ง๐ผ๐ผ๐น ๐๐ป๐๐ฒ๐ด๐ฟ๐ฎ๐๐ถ๐ผ๐ป | ๐๐ฒ๐บ๐ถ๐ป๐ถ ๐ฎ.๐ฌ
simple
A python implementation of the Model Context Protocol (MCP) server with fastmcp, fastapi and streamablehttp.