MCP.so
登录

Hello World MCP Server

@MCP-Mirror

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

MCP-Mirror

关于 Hello World MCP Server

Mirror of

Hello World MCP Server 配置

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

{
  "mcpServers": {
    "jageenshukla_hello-world-mcp-server": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/inspector",
        "./dist/server.js"
      ]
    }
  }
}

Hello World MCP Server 工具

工具列表暂未提供

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

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Hello World MCP Server?

It is a demonstration MCP (Model Context Protocol) server built with TypeScript using the MCP SDK and Express. It shows how to integrate MCP tools, prompts, and server-sent events (SSE) endpoints. Designed for developers learning to build MCP servers for existing services.

How to use Hello World MCP Server?

Clone the repository, install dependencies (npm install), configure the .env file (default port 4000), build the project (npm run build), and start the server (npm start). For testing, use the MCP Inspector: npx @modelcontextprotocol/inspector ./dist/server.js. Development mode with live reloading is available via npm run dev.

Key features of Hello World MCP Server

  • MCP SDK integration with tools and prompts
  • Express framework for SSE and message communication
  • Environment configuration via .env files
  • Fully typed TypeScript codebase

Use cases of Hello World MCP Server

  • Learning how to build an MCP server from scratch
  • Creating a bridge between existing services and AI agents
  • Prototyping MCP-based applications for proof-of-concepts
  • Integrating with local LLM chatbots using external tools

常见问题

1

What are the runtime requirements for Hello World MCP Server?

Node.js v16 or higher and npm or yarn are required.

2

How can I test the tools and prompts of Hello World MCP Server?

Use the MCP Inspector by running `npx @modelcontextprotocol/inspector ./dist/server.js`.

3

How do I change the default port?

Edit the `PORT` variable in the `.env` file (default is 4000).

4

What should I do if the port is already in use?

Update the `PORT` variable in the `.env` file to an available port.

5

Does Hello World MCP Server support live reloading during development?

Yes, use `npm run dev` to start the server with live reloading and detailed logs.

评论

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