MCP Test Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Test Server
A tiny local MCP server to test MCP clients and tunnels against.
Four read-only tools, Streamable HTTP on 127.0.0.1 only, no keys, no account, no cloud.
Tool | Returns |
|
|
| the |
| name, version, |
| a fresh |
It reads no file, makes no outbound network call, and never returns environment variables,
headers, client addresses, keys or tokens. diagnostics describes the application only: it cannot
tell you whether a tunnel in front of it is healthy (ask the tunnel client for that).
Built on the official MCP Python SDK (mcp==2.3.0). It answers both 2025 clients (initialize
handshake) and 2026-07-28 clients, statelessly.
Quickstart
Needs Python 3.12 or later and git.
Linux / WSL
git clone https://github.com/sonixz/mcp-test-server.git && cd mcp-test-server
python3 -m venv .venv
.venv/bin/pip install --require-hashes -r requirements.txt && .venv/bin/pip install --no-deps -e .
.venv/bin/mcp-test-server # serves http://127.0.0.1:8711/mcpWindows (PowerShell)
git clone https://github.com/sonixz/mcp-test-server.git; cd mcp-test-server
py -3.12 -m venv .venv
.venv\Scripts\pip install --require-hashes -r requirements.txt; .venv\Scripts\pip install --no-deps -e .
.venv\Scripts\mcp-test-server # serves http://127.0.0.1:8711/mcpOr let a script do the same: scripts/run.sh (Linux/WSL) or scripts\run.ps1 (Windows). Both
create .venv on first run and pass their arguments on, e.g. scripts/run.sh --port 9000.
The server prints:
mcp-test-server 0.1.0 serving MCP on http://127.0.0.1:8711/mcp
liveness (not an MCP test): http://127.0.0.1:8711/healthz
MCP smoke test: mcp-test-server smoke --port 8711Port: --port N or MCP_TEST_SERVER_PORT=N (default 8711). If the port is taken, it says so
and exits with code 2. Host: fixed to 127.0.0.1; there is no option to change it.
Keep it running in the background (Linux / WSL, needs tmux):
scripts/background.sh start # 127.0.0.1:8711, survives the terminal that started it
scripts/background.sh status # pid, uptime, listener owner, /healthz
scripts/background.sh stopIt uses a tmux server of its own (socket mcp-test-server, session mcp-test-server-8711) and
keeps its PID and log in ~/.local/state/mcp-test-server/, outside the repository. It refuses to
start a duplicate when the port is already taken. It does not survive a reboot or wsl --shutdown.
WSL and Windows are two sides. Run the server and whatever connects to it (the smoke test, a
tunnel client) on the same side. Windows can usually reach a WSL 127.0.0.1 port, but do not
build a test on that.
Related MCP server: mcp_example
Smoke test (the real MCP check)
In a second terminal, with the server running:
.venv/bin/mcp-test-server smoke # Windows: .venv\Scripts\mcp-test-server smokeIt connects with the official MCP client twice, once per protocol era, lists the tools and calls each one. Expected output (ids and uptimes differ):
MCP smoke test against http://127.0.0.1:8711/mcp (correlation_id=smoke-1a2b3c4d5e6f)
[legacy] PASS tools/list diagnostics, echo, ping, status
[legacy] PASS ping correlation_id=smoke-1a2b3c4d5e6f call_id=…32 hex…
[legacy] PASS echo 'hello from mcp-test-server smoke'
[legacy] PASS status version=0.1.0 uptime=4.5s
[legacy] PASS diagnostics request_id=…32 hex… protocol=2025-11-25
[modern] PASS tools/list diagnostics, echo, ping, status
[modern] PASS ping …
[modern] PASS echo …
[modern] PASS status …
[modern] PASS diagnostics request_id=…32 hex… protocol=2026-07-28
RESULT okExit code 0 means every check passed, 1 means at least one failed. Options: --port, --url,
--mode legacy|modern|both, --correlation-id ID.
The server log shows the same ids, so a call can be matched end to end:
… INFO mcp_test_server tool=ping call_id=… correlation_id=smoke-1a2b3c4d5e6fWhat is not an MCP test
curl http://127.0.0.1:8711/mcp(an HTTP GET) answers 405 on purpose. MCP talks by POSTing JSON-RPC messages; a GET proves only that something listens.GET /healthzanswers{"status":"ok"}: the HTTP listener is up. It says nothing about MCP.
Only the smoke test (or another real MCP client calling the tools) proves the server works.
Use it as a tunnel target: MCP Tunnel Manager → OpenAI tunnel → ChatGPT
NOT YET E2E VALIDATED. Nothing below has been run end to end with ChatGPT. The steps that need OpenAI need the owner's own OpenAI account and keys and a real test later. This repository invents no OpenAI screen, URL, field name or token.
The full, checkable procedure, with what to expect and what to capture at each step, is in docs/E2E-CHATGPT.md. In short:
Local (validated): start this server and run the smoke test until
RESULT ok.Tunnel (not validated): point OpenAI's official tunnel client (or MCP Tunnel Manager, which drives it) at the MCP server URL
http://127.0.0.1:8711/mcp(Streamable HTTP). The tunnel client's own health page says whether the tunnel is up;diagnosticshere says only that the application is up.ChatGPT (not validated): add the tunnel as a custom MCP server the way OpenAI's current documentation says, then ask ChatGPT to call
pingwith a correlation id you choose and look for that id in this server's log.
Agents working on MCP Tunnel Manager: see docs/FOR-MCP-TUNNEL-MANAGER.md.
Develop
.venv/bin/pip install --require-hashes -r requirements-dev.txt && .venv/bin/pip install --no-deps -e .
.venv/bin/ruff check . && .venv/bin/ruff format --check .
.venv/bin/mypy --strict src
.venv/bin/pytestTests cover the four tools and their schemas (in-process client) and the real CLI in a subprocess,
reached over Streamable HTTP by the official client on both protocol eras, plus the refusals: a
foreign Host (421), a foreign Origin (403), GET /mcp (405), and no listener beyond loopback.
Dependencies are pinned in pyproject.toml and locked with hashes in requirements*.txt
(regenerate with uv pip compile, see CONTRIBUTING.md).
Project
Architecture · Decisions · Status · Backlog · Security · Devlog · work happens in loops (LOOP.md).
License: MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP compatibility and transport verification server.
MCP compatibility and transport verification server.
MCP compatibility and transport verification server.
MCP compatibility and transport verification server.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA minimal MCP server for homelab environments, providing demo tools like ping and echo over Streamable HTTP for testing client-server integration.-
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server over Streamable HTTP demonstrating the MCP protocol with tools for health checks, echo, and text reversal.-
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to reach many local STDIO and Streamable HTTP servers through one loopback aggregate endpoint, with an optional authenticated WebSocket uplink that exposes those local tools to a remote registry.11 npm1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceRuns the MCP initialize handshake and validates tools/list JSON schemas on any public MCP server, and inspects x402 payment endpoints. Ships as a stdio MCP server the agent calls directly, plus a CLI and a GitHub Action. Read-only, no API key needed.63 npmMIT