Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

Β© 2026 TrackMCP. All rights reserved.

Built with ❀️ by Krishna Goyal

    Mcp Remote Call Ping Pong

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

    1 stars
    HTML
    Updated Apr 9, 2025
    fastapi
    fastmcp
    mcp
    mcp-client
    mcp-server
    model-context-protocol
    sse

    Table of Contents

    • Features
    • Quick Start
    • Installation
    • 1. Call MCP Tool through API
    • Run the Server
    • UI
    • API Endpoints
    • 2. Call MCP Tool through SSE transport
    • Run the SSE Server
    • Run the SSE Client
    • Sample Output
    • References
    • πŸ“„ License

    Table of Contents

    • Features
    • Quick Start
    • Installation
    • 1. Call MCP Tool through API
    • Run the Server
    • UI
    • API Endpoints
    • 2. Call MCP Tool through SSE transport
    • Run the SSE Server
    • Run the SSE Client
    • Sample Output
    • References
    • πŸ“„ License

    Documentation

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

    bash
    poetry install

    1. Call MCP Tool through API

    Run the Server

    Start the FastAPI server with:

    bash
    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.

    API Endpoints

    • GET /ping-pong?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

    bash
    python mcp-sse-server.py

    Run the SSE Client

    bash
    python mcp-sse-client.py

    Sample Output

    bash
    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

    • FastAPI SSE MCP
    • MCP Weather SSE
    • MCP Chinese Getting Started Guide

    πŸ“„ License

    MIT

    Similar MCP

    Based on tags & features

    • MC

      Mcp Aoai Web Browsing

      PythonΒ·
      30
    • MC

      Mcpjungle

      GoΒ·
      617
    • MC

      Mcp Ipfs

      TypeScriptΒ·
      11
    • BI

      Biomcp

      PythonΒ·
      327

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScriptΒ·
      22.1k
    • SE

      Serena

      PythonΒ·
      14.5k
    • MC

      Mcp Playwright

      TypeScriptΒ·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScriptΒ·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • MC

      Mcp Aoai Web Browsing

      PythonΒ·
      30
    • MC

      Mcpjungle

      GoΒ·
      617
    • MC

      Mcp Ipfs

      TypeScriptΒ·
      11
    • BI

      Biomcp

      PythonΒ·
      327

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScriptΒ·
      22.1k
    • SE

      Serena

      PythonΒ·
      14.5k
    • MC

      Mcp Playwright

      TypeScriptΒ·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScriptΒ·
      3.0k