Get the FREE Ultimate OpenClaw Setup Guide โ†’

mcp-remote-call-ping-pong

๐Ÿ“ An experimental and educational script for Ping-pong server demonstrating remote MCP (Model Context Protocol) calls

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
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

99

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

93

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

53

๐Ÿš€ 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

10

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

7

๐— ๐—ผ๐—ฑ๐—ฒ๐—น ๐—–๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜ ๐—ฃ๐—ฟ๐—ผ๐˜๐—ผ๐—ฐ๐—ผ๐—น (๐— ๐—–๐—ฃ) ๐—•๐—ฎ๐˜€๐—ฒ๐—ฑ ๐—–๐—Ÿ๐—œ ๐—”๐—œ | ๐—ง๐—ผ๐—ผ๐—น ๐—œ๐—ป๐˜๐—ฒ๐—ด๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป | ๐—š๐—ฒ๐—บ๐—ถ๐—ป๐—ถ ๐Ÿฎ.๐Ÿฌ

simple

7

A python implementation of the Model Context Protocol (MCP) server with fastmcp, fastapi and streamablehttp.

Sponsor this space

Reach thousands of developers โ†—