MCP.so
登录

MCP Ping-Pong Server by Remote Call

@kimtth

基本信息

分类

其他

传输方式

stdio

作者

kimtth

关于 MCP Ping-Pong Server by Remote Call

🏓 An experimental and educational script for Ping-pong server demonstrating remote MCP (Model Context Protocol) calls

MCP Ping-Pong Server by Remote Call 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-remote-call-ping-pong": {
      "command": "python",
      "args": [
        "mcp-api-server.py"
      ]
    }
  }
}

MCP Ping-Pong Server by Remote Call 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Ping-Pong Server by Remote Call?

An experimental, educational Ping-Pong server that demonstrates remote Model Context Protocol (MCP) calls via FastAPI. It provides API endpoints and Server-Sent Events (SSE) for invoking MCP tool commands like ping, pong, and count.

How to use MCP Ping-Pong Server by Remote Call?

After installing dependencies (poetry install), start the FastAPI server with python mcp-api-server.py (runs on http://localhost:8080). Use the web UI (mcp-api-client.html) or call GET /ping-pong?prompt_name=<name> / POST /ping-pong directly. Alternatively, run the SSE server (mcp-sse-server.py) and client (mcp-sse-client.py) for SSE-based communication.

Key features of MCP Ping-Pong Server by Remote Call

  • FastAPI/FastMCP backend for remote MCP calls.
  • Support for both API endpoints and SSE transport.
  • Implements ping, pong, and count commands.
  • Thread-safe session management.
  • Includes a browser-based UI client.

Use cases of MCP Ping-Pong Server by Remote Call

  • Learning how to integrate MCP with FastAPI.
  • Testing remote MCP tool invocations via HTTP or SSE.
  • Experimenting with command handling and session management.
  • Demonstrating a minimal MCP server-client interaction.

常见问题

1

What is this server for?

It is an experimental tool to learn and demonstrate how to make MCP calls remotely using FastAPI. It simulates a simple Ping-Pong exchange.

2

How do I start the server?

Run `python mcp-api-server.py` for the API mode, or `python mcp-sse-server.py` for SSE mode.

3

What commands does it support?

The MCP tool accepts three commands: `ping` (returns `pong`), `pong` (returns `ping`), and `count` (returns the number of interactions).

4

Does it require any external services or authentication?

No. The server runs locally and requires only Python and the dependencies installed via `poetry install`. No authentication or external data stores are mentioned.

5

What transports are available?

Two transports: direct HTTP API endpoints (`GET`/`POST`) and Server-Sent Events (SSE) for streaming communication.

评论

其他 分类下的更多 MCP 服务器