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
- Clone the repository.
- Install dependencies with
npm
oryarn
. - Configure environment variables using
.env
. - Build the project.
- 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
- Ollama Pydantic Project: Project integrating MCP Server with a local LLM chatbot.
Contributing
Contributions are welcome.
License
MIT License.