Repository Public MIT
1# echo-mcp-server23A local Model Context Protocol server in one file with no dependencies. It exposes one tool,4`echo`, which returns the text it receives. Use it to check that an MCP client is configured5correctly before connecting real servers.67This listing is not a hosted service. The server runs on your machine, started by your MCP client.8It makes no network requests and does not touch the filesystem.910## Requirements1112Node.js 18 or later.1314## Set up1516Download and extract the release, then point your client at `server.mjs`:1718```bash19skills download @spboucher/echo-mcp-server --extract ./echo-mcp-server20```2122Claude Code:2324```bash25claude mcp add --transport stdio echo-mcp-server -- node /absolute/path/to/echo-mcp-server/server.mjs26```2728Codex (`~/.codex/config.toml`):2930```toml31[mcp_servers.echo-mcp-server]32command = "node"33args = ["/absolute/path/to/echo-mcp-server/server.mjs"]34```3536Cursor (`.cursor/mcp.json`):3738```json39{ "mcpServers": { "echo-mcp-server": { "type": "stdio", "command": "node", "args": ["/absolute/path/to/echo-mcp-server/server.mjs"] } } }40```4142## Tool4344| Name | Input | Output |45|---|---|---|46| `echo` | `{ "text": string }` | One text content block containing the same string |4748## Protocol4950- Transport: stdio, newline-delimited JSON-RPC 2.0.51- Methods: `initialize`, `ping`, `tools/list`, `tools/call`. Notifications are accepted and ignored.52- Protocol revisions answered in `initialize`: `2025-06-18`, `2025-03-26`, `2024-11-05`. A client53 that requests another revision is offered `2025-06-18`.54- Not implemented: resources, prompts, sampling, batching, and the handshake-free request mode of55 later revisions.5657## Try it by hand5859```bash60printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"manual","version":"0"}}}' '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"echo","arguments":{"text":"hello"}}}' | node server.mjs61```62