Archestra Apps HackathonJoin now
Back to Catalog

mcp-remote-call-ping-pong

kimtth/mcp-remote-call-ping-pong
๐Ÿ”— Latest commit:b014428
๐Ÿ•’ Updated:Sep 9, 2025, 01:06 PM
HTML
Development

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

MCP Trust Score
Based on our comprehensive evaluation criteria
๐Ÿค– Evaluated by gemini-2.5-flashFix
Trust Score45/100
GitHub Metrics
Repository statistics and activity
โญ GitHub Stars:1
๐Ÿ‘ฅ Contributors:1
๐Ÿ“‹ Total Issues:0
๐Ÿ“ฆ Has Releases:No
๐Ÿ”ง Has CI/CD Pipeline:No
Configuration
Configuration example extracted from README.md for Claude Desktop and other clients.
๐Ÿค– Evaluated by gemini-2.5-flashFix
{
  "mcp-api-server": {
    "command": "python",
    "args": [
      "mcp-api-server.py"
    ],
    "env": {}
  },
  "mcp-sse-server": {
    "command": "python",
    "args": [
      "mcp-sse-server.py"
    ],
    "env": {}
  }
}
MCP Protocol Support
Implemented MCP protocol features
๐Ÿค– Evaluated by gemini-2.5-flashFix
Tools:โœ“
Prompts:โœ“
Resources:โœ—
Sampling:โœ—
Roots:โœ—
Logging:โœ—
STDIO Transport:โœ—
HTTP Transport:โœ“
OAuth2 Auth:โœ—
Dependencies
2 dependencies
Libraries and frameworks used by this MCP server
๐Ÿค– Evaluated by gemini-2.5-flashFix
Add Quality Badge
Show your MCP trust score in your README
Trust Score Badge
[![Trust Score](https://archestra.ai/mcp-catalog/api/badge/quality/kimtth/mcp-remote-call-ping-pong)](https://archestra.ai/mcp-catalog/kimtth__mcp-remote-call-ping-pong)
README.md

๐Ÿ“ 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 with:

python mcp-api-server.py

The server will start at http://localhost:8080.

UI

Open mcp-api-client.html in a browser to interact with the UI.

ui

API Endpoints

  • GET /ping-pong?prompt_name=<prompt_name>: Retrieves the specified prompt.
  • POST /ping-pong: Invokes MCP tool commands (ping, pong, count).

2. Call MCP Tool through SSE transport

The following example demonstrates using Server-Sent Events (SSE) for communication with the MCP server.

Run the SSE Server

python mcp-sse-server.py

Run the SSE Client

python mcp-sse-client.py

Sample Output

Type a command (e.g., 'ping', 'pong', 'count') or 'exit' to quit:
>>> ping
Sending command: ping
Result: pong
>>> pong
Sending command: pong
Result: ping
>>> count
Sending command: count
Result: 2

References

๐Ÿ“„ License

MIT