hello-world-mcp-server

hello-world-mcp-server

5

The Hello World MCP Server is a project demonstrating the setup of a server using the Model Context Protocol SDK. It features integration with the MCP, usage of the Express framework, and a fully typed TypeScript codebase. It is designed to handle server-sent events and message communication.

Hello World MCP Server

Welcome to the Hello World MCP Server! This project demonstrates setting up a server using the MCP SDK. It includes tools, prompts, and endpoints for server-sent events (SSE) and messages.

Features

  • MCP Integration: Uses the MCP SDK.
  • Express Framework: Handles HTTP endpoints for SSE and communication.
  • Environment Configuration: Uses .env files.
  • TypeScript Support: Fully typed codebase.

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn

Getting Started

  1. Clone the repository.
  2. Install dependencies with npm or yarn.
  3. Configure environment variables using .env.
  4. Build the project.
  5. Run the server.

Testing the Server

Use the MCP Inspector tool to test and inspect your MCP server.

Project Structure

An overview of the project files and directories.

Troubleshooting

Common issues include port usage and TypeScript errors. Use npm run dev for debugging.

Related Projects

Contributing

Contributions are welcome.

License

MIT License.