Public MCP test servers
Free, deterministic MCP servers you can point any client at: an echo server, a bearer-auth server, an errors server, a slow server and a schemas server. No sign-up, no API key, and the same answer every time.
Use them to check that an MCP client, SDK or proxy connects, lists tools and handles failures before you test against a real server. Each endpoint speaks Streamable HTTP and supports both the stateless 2026 and the stateful 2025 protocol revisions.
| Server | Endpoint | Use it to test |
|---|---|---|
| Echo | https://mcptest.io/fixtures/echo/mcp | A no-auth MCP server with tools, a resource and a prompt: the quickest way to check that a client connects, lists and calls tools. |
| Bearer auth | https://mcptest.io/fixtures/auth-bearer/mcp | The echo tools behind a fixed bearer token, for testing how a client sends static headers and handles a 401. |
| Errors | https://mcptest.io/fixtures/errors/mcp | Every tool fails in a different, fixed way, for testing how a client reports protocol errors, tool errors and HTTP failures. |
| Slow | https://mcptest.io/fixtures/slow/mcp | Bounded delays and progress notifications, for testing client timeouts and progress display. |
| Schemas | https://mcptest.io/fixtures/schemas/mcp | Tools with nested objects, enums, arrays, patterns and optional fields, plus outputSchema and structuredContent, for testing input forms and output validation. |
The test servers
Echo
A no-auth MCP server with tools, a resource and a prompt: the quickest way to check that a client connects, lists and calls tools.
https://mcptest.io/fixtures/echo/mcpTools
echo: Returns the message argument unchanged (at most 1,000 characters).add: Adds the numbers a and b and returns the sum as text and as structuredContent { sum }.whoami: Returns the negotiated protocol version, stateless or stateful era, client info and selected request headers.headers: Lists the request header names the server received. Credentials and cookies are never echoed.
Resource: mcptest://fixtures/readme. Prompt: greeting.
Expected behavior
- Connects without credentials over Streamable HTTP.
- echo returns exactly the text you send; add {"a": 2, "b": 3} returns 5 with structuredContent {"sum": 5}.
- whoami shows which protocol revision your client negotiated, so you can see whether it used the stateless or the stateful flow.
- resources/read on mcptest://fixtures/readme returns a fixed text file; prompts/get greeting returns one user message.
Bearer auth
The echo tools behind a fixed bearer token, for testing how a client sends static headers and handles a 401.
https://mcptest.io/fixtures/auth-bearer/mcpTest in mcptest.io The tester reports the 401 first; enter mcptest-public-token as the bearer token and connect again.
Tools
echo: Returns the message argument unchanged (at most 1,000 characters).add: Adds the numbers a and b and returns the sum as text and as structuredContent { sum }.whoami: Returns the negotiated protocol version, stateless or stateful era, client info and selected request headers.headers: Lists the request header names the server received. Credentials and cookies are never echoed.
Resource: mcptest://fixtures/readme. Prompt: greeting.
Expected behavior
- Send Authorization: Bearer mcptest-public-token. The token is public and documented here; it protects nothing.
- Without the header the server answers 401 with WWW-Authenticate: Bearer realm="mcptest.io fixtures".
- A wrong token gets 401 with error="invalid_token" in the challenge.
- There is no OAuth metadata, so a client that only supports OAuth sign-in cannot connect.
Errors
Every tool fails in a different, fixed way, for testing how a client reports protocol errors, tool errors and HTTP failures.
https://mcptest.io/fixtures/errors/mcpTools
protocol_error: Answers with a JSON-RPC error response, code -32603, instead of a result.tool_error: Returns a normal tool result with isError: true and an error message as text.invalid_params: Answers with a JSON-RPC invalid params error, code -32602.http_500: Answers the HTTP request with status 500 and a JSON-RPC internal error body.
Expected behavior
- Connecting and tools/list succeed; only tools/call fails.
- A good client shows tool_error as a failed tool result the model can read, and the other three as errors.
- The connection stays usable after each failure.
Slow
Bounded delays and progress notifications, for testing client timeouts and progress display.
https://mcptest.io/fixtures/slow/mcpTools
sleep: Waits ms milliseconds (capped at 10,000) and returns requestedMs, sleptMs and capped.progress: Streams one notifications/progress per step over SSE when the request has a progressToken (1 to 10 steps, default 3).
Expected behavior
- sleep {"ms": 2000} returns after about two seconds; values above 10000 ms are capped and reported as capped: true.
- progress answers with Content-Type: text/event-stream when the client accepts it, sending each progress notification before the result.
- Set your client timeout below the delay to check that it gives up cleanly.
Schemas
Tools with nested objects, enums, arrays, patterns and optional fields, plus outputSchema and structuredContent, for testing input forms and output validation.
https://mcptest.io/fixtures/schemas/mcpTools
create_order: Validates a nested order (customer, items, optional shipping address) and returns a deterministic quote. Nothing is stored.classify: Counts the JSON types in a list of mixed values, optionally listing the type of each one.
Expected behavior
- Arguments that break the input schema get a JSON-RPC -32602 error listing the failing paths.
- Valid calls return structuredContent that matches the advertised outputSchema, plus the same JSON as text.
- The same input always produces the same quote, so results can be compared in tests.
Connect a client
These snippets add the echo server; swap in any URL above. The formats are the ones each client documents, as covered in the client setup guides. Building a client? Test your MCP client lists what it should do against each server, with the expected requests and responses.
Claude Code
Run in a terminal. Add --scope project to share it through .mcp.json, or --scope user for every project.
claude mcp add --transport http mcptest-echo https://mcptest.io/fixtures/echo/mcpThe bearer-auth fixture, with its public token as a header:
claude mcp add --transport http mcptest-auth https://mcptest.io/fixtures/auth-bearer/mcp \
--header 'Authorization: Bearer mcptest-public-token'claude.ai and Claude Desktop
Custom connectors are added in claude.ai and appear in Claude Desktop for the same account.
- Open Customize > Connectors (claude.ai/customize/connectors).
- Click + Add, then Add custom connector.
- Enter the MCP server URL https://mcptest.io/fixtures/echo/mcp.
- Under Authentication, choose No sign-in, then save.
The connector form takes no fixed headers, so use a fixture without auth. Do not put a remote URL in claude_desktop_config.json; that file is for local servers.
Cursor
.cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Remote entries need only url.
{
"mcpServers": {
"mcptest-echo": {
"url": "https://mcptest.io/fixtures/echo/mcp"
}
}
}The bearer-auth fixture:
{
"mcpServers": {
"mcptest-auth": {
"url": "https://mcptest.io/fixtures/auth-bearer/mcp",
"headers": {
"Authorization": "Bearer mcptest-public-token"
}
}
}
}VS Code
.vscode/mcp.json, or run MCP: Open User Configuration for every workspace. Note the servers key and type: "http".
{
"servers": {
"mcptest-echo": {
"type": "http",
"url": "https://mcptest.io/fixtures/echo/mcp"
}
}
}The bearer-auth fixture:
{
"servers": {
"mcptest-auth": {
"type": "http",
"url": "https://mcptest.io/fixtures/auth-bearer/mcp",
"headers": {
"Authorization": "Bearer mcptest-public-token"
}
}
}
}Windsurf (Devin Desktop)
~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Remote entries use serverUrl.
{
"mcpServers": {
"mcptest-echo": {
"serverUrl": "https://mcptest.io/fixtures/echo/mcp"
}
}
}Codex
Run in a terminal; Codex writes the entry to ~/.codex/config.toml.
codex mcp add mcptest-echo --url https://mcptest.io/fixtures/echo/mcpChatGPT
On the web, on plans that allow custom MCP servers (Pro with read and fetch only; Business, Enterprise and Edu). Developer mode is no longer required.
- Open Plugins (chatgpt.com/plugins), select the plus button, then Add custom MCP server.
- Enter a name such as mcptest echo.
- Under Connection, enter https://mcptest.io/fixtures/echo/mcp.
- Choose No authentication, confirm the risk warning, and select Create as a plugin.
ChatGPT connects from OpenAI’s servers, so it reaches these public endpoints directly.
Test with curl
Raw JSON-RPC over HTTP, for checking a proxy, a firewall or your own client code. The stateful flow is initialize, then tools/list and tools/call with the session ID.
initialize (stateful 2025-11-25)
Keep -i: the response headers carry the Mcp-Session-Id that every later stateful request must send.
curl -i https://mcptest.io/fixtures/echo/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {},
"clientInfo": { "name": "curl-check", "version": "1.0.0" }
}
}'Expected: HTTP 200 with headers Mcp-Session-Id: mcptest-fx-… and MCP-Protocol-Version: 2025-11-25, and a result naming the server mcptest-fixture-echo with tools, resources and prompts capabilities.
tools/list
Copy the session ID from the initialize response. The initialized notification gets an empty 202.
SESSION_ID=paste-the-Mcp-Session-Id-here
curl -i https://mcptest.io/fixtures/echo/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2025-11-25" \
-H "Mcp-Session-Id: $SESSION_ID" \
-d '{"jsonrpc":"2.0","method":"notifications/initialized"}'
curl https://mcptest.io/fixtures/echo/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2025-11-25" \
-H "Mcp-Session-Id: $SESSION_ID" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'Expected: The echo, add, whoami and headers tools with their input schemas. Without the session header the server answers 400; with an ID it did not issue, 404.
tools/call
In the same session, call echo:
curl https://mcptest.io/fixtures/echo/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2025-11-25" \
-H "Mcp-Session-Id: $SESSION_ID" \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"echo","arguments":{"message":"hello"}}}'Expected: {"jsonrpc":"2.0","id":3,"result":{"content":[{"type":"text","text":"hello"}]}}
tools/call without a session (stateless 2026-07-28)
The 2026 revision needs no initialize and no session. Every request carries the protocol version in _meta, and the MCP-Protocol-Version, Mcp-Method and Mcp-Name headers must match the body.
curl https://mcptest.io/fixtures/echo/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2026-07-28" \
-H "Mcp-Method: tools/call" \
-H "Mcp-Name: add" \
-d '{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "add",
"arguments": { "a": 2, "b": 3 },
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}'Expected: A result with content text "5", structuredContent {"sum": 5} and resultType "complete". A header that disagrees with the body gets error -32020.
The bearer-auth fixture
Add the public token to any of the requests above, with the auth-bearer URL:
curl -i https://mcptest.io/fixtures/auth-bearer/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Authorization: Bearer mcptest-public-token" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl-check","version":"1.0.0"}}}'Expected: HTTP 200 and a session ID. Leave out the Authorization header and the answer is 401 with WWW-Authenticate: Bearer realm="mcptest.io fixtures".
FAQ
Are the MCP test servers free?
Yes. They are free and need no account or API key. The bearer-auth fixture uses the public token mcptest-public-token, which is published on this page and protects nothing.
Is there a rate limit?
The fixtures enforce no per-client quota, but every request is bounded: bodies are capped at 16 KiB, JSON-RPC batches are rejected and delays stop at 10 seconds. They are shared endpoints on Cloudflare Workers, so use them for functional tests, not load tests.
Do the test servers store anything?
No. The fixture code has no database or key-value storage and makes no outbound requests. Session IDs are checked by their signature rather than looked up, and the whoami and headers tools never echo Authorization, Cookie or other credential values.
Which MCP protocol versions do they support?
Each endpoint supports the stateless 2026-07-28 revision (server/discover, no session) and the stateful 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 revisions (initialize plus an Mcp-Session-Id), over Streamable HTTP. There is no deprecated HTTP+SSE endpoint; GET and DELETE answer 405.
Can I use them in CI?
Yes. Every tool returns the same result for the same input, so they make stable smoke-test targets for an MCP client or SDK: echo for the happy path, errors for error handling and slow for timeouts. They are public internet endpoints, so assert on results rather than latency, and keep a local fixture if your pipeline must run offline.