MCPSERV.CLUB
madhukarkumar

Hello World MCP Server

MCP Server

A minimal, TypeScript-powered MCP demo with SSE and STDIO support

Stale(65)
5stars
2views
Updated Sep 2, 2025

About

This lightweight server showcases core Model Context Protocol features—static and dynamic resources, sample prompts, and echo/debug tools—using both HTTP/SSE for browsers and STDIO for command-line integration.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

MCP Inspector HTTP Mode

Overview

The Mcp Ts Starter is a lightweight, TypeScript‑based implementation of the Model Context Protocol (MCP) designed to help developers prototype and understand how MCP servers expose resources, prompts, and tools to AI assistants. It solves the problem of quickly creating a fully functional MCP server without diving into low‑level protocol details, allowing teams to focus on building AI‑centric features rather than infrastructure. By providing both HTTP/SSE and STDIO transports, the server caters to web browsers, command‑line workflows, and any environment that can communicate over standard input/output, making it versatile for testing and integration.

At its core, the server exposes a small but representative set of MCP capabilities: static and dynamic resources (, ), a simple echo tool that prepends “Hello” to user messages, and a debug tool that lists available methods. These examples illustrate how resources can be served via URLs, tools can perform logic and return structured responses, and prompts can guide assistant behavior. The inclusion of a sample prompt () demonstrates how assistants can be instructed to adopt specific tones or styles, which is essential for tailoring interactions in production systems.

Key features include:

  • Dual transport support: SSE endpoints for real‑time browser interactions and a STDIO mode for CLI or embedded usage.
  • Resource handling: Both static content and dynamic parameters showcase how to map URLs to data or logic.
  • Tool invocation: The echo and debug tools illustrate the JSON‑RPC style of tool calls, a pattern common in MCP deployments.
  • Prompt integration: Built‑in prompts provide a starting point for crafting assistant personalities without external files.
  • Debugging utilities: The debug tool exposes introspection capabilities, enabling developers to discover available tools and resources on the fly.

Real‑world use cases span from rapid prototyping of AI assistants in internal tooling to educational demos that teach new developers how MCP works. For instance, a customer support bot could use the echo tool to confirm receipt of user input before routing it to more complex logic, while a data‑analysis assistant might expose dynamic resources that query live databases. By integrating with MCP Inspector or custom frontends, developers can interactively explore the server’s capabilities, making it an ideal playground for testing new AI workflows before scaling to production.

Unique advantages of this starter server lie in its simplicity and extensibility. The codebase is intentionally minimal, yet it follows best practices for TypeScript development, ensuring type safety and easy maintenance. The modular design means adding new resources or tools is as simple as registering a handler, and the built‑in debug tool eliminates the need for external logging utilities during early development. This combination of clarity, flexibility, and immediate visual feedback makes the Mcp Ts Starter a valuable asset for any team looking to experiment with or deploy Model Context Protocol services.