MCP.so
ログイン

Hello World MCP Server

@MCP-Mirror

Hello World MCP Server について

Mirror of

基本情報

カテゴリ

その他

ライセンス

MIT license

ランタイム

node

トランスポート

stdio

公開者

MCP-Mirror

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

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

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

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

FAQ from Hello World MCP Server

What are the runtime requirements for Hello World MCP Server?

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

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.

How do I change the default port?

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

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

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

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.

コメント

「その他」の他のコンテンツ