FAQ (answers come from our records)
How do I install it?
We did not find an install command for this repository (our install coverage is only about 4%). Check its README or releases page.
Who is it for?
We filed it under these tags: MCP ๆๅก. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-10-14๏ผlast seen 2026-10-16ใThere is no official certification or quality rating here โ we record sources and dates only.
MCP Hello World - MCP Server Mock for Testing
ไปฅไธๆๅฝ่ช่ฏฅไปๅบ็ README๏ผ็ๆฎต๏ผ ยท ๅจ GitHub ่ฏปๅฎๆด README โ
[![][npm-release-shield]][npm-release-link]
[![][npm-downloads-shield]][npm-downloads-link]
[![][github-action-test-shield]][github-action-test-link]
[![][github-action-release-shield]][github-action-release-link]
[github-action-release-link]: https://github.com/lobehub/mcp-hello-world/actions/workflows/release.yml
[github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/mcp-hello-world/release.yml?label=Release&logo=githubactions&logoColor=white&style=flat-square
[github-action-test-link]: https://github.com/lobehub/mcp-hello-world/actions/workflows/test.yml
[github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/mcp-hello-world/test.yml?label=Test&logo=githubactions&logoColor=white&style=flat-square
[npm-downloads-link]: https://www.npmjs.com/package/mcp-hello-world
[npm-downloads-shield]: https://img.shields.io/npm/dt/mcp-hello-world?label=Downloads&logo=npm&style=flat-square
[npm-release-link]: https://www.npmjs.com/package/mcp-hello-world
[npm-release-shield]: https://img.shields.io/npm/v/mcp-hello-world?logo=npm&style=flat-square
This is a **minimal Model Context Protocol (MCP) server** implemented in TypeScript, primarily intended to serve as a **Test Double / Mock Server**.
**Core Purpose**: To provide a lightweight, controllable, and predictable MCP server environment for **unit testing** or **integration testing** client code that needs to interact with an MCP server.
**Note:** This project is **not suitable for production environments** or deployment as a general-purpose MCP server.
Why Use mcp-hello-world in Tests?
When testing code related to MCP clients, you usually don't want to depend on a real, potentially complex, and unpredictably responsive AI backend service. Using mcp-hello-world as a test double offers several advantages:
1. **Isolation**: Focus your tests on client logic without worrying about network issues or the availability of the real server.
2. **Predictability**: The provided echo and debug tools have simple, fixed behaviors, making it easy to write assertions.
3. **Speed**: Fast startup and response times, suitable for frequent use in unit tests.
4. **Lightweight**: Few dependencies, easy to integrate into test environments.
5. **Protocol Coverage**: Supports both STDIO and HTTP/SSE MCP transport protocols, allowing you to test client behavior under different connection methods.
Installation
Add this package as a **dev dependency** to your project:
Manual Execution (for Debugging Tests)
You might want to run the server manually sometimes to debug your tests or client behavior.
STDIO Mode
This is the simplest way to run, especially during local development and debugging.
The server will listen on standard input and output MCP responses to standard output. You can use tools like MCP Inspector to connect to the process.
To configure this server in your MCP client, add the following to your configuration:
HTTP/SSE Mode
If you need to debug via a network interface or test HTTP-based MCP clients.