mcp-typescript-server-starter

mcp-typescript-server-starter

3.2

MCP TypeScript Server Starter is a project designed to help developers build Model Context Protocol (MCP) servers using TypeScript. It includes a simple echo server implementation to demonstrate core MCP features.

The MCP TypeScript Server Starter is a foundational project for creating Model Context Protocol (MCP) servers using TypeScript. It provides a basic echo server implementation to showcase the essential features of MCP, such as tools, resources, and prompts. The project supports both STDIO and SSE communication modes, making it suitable for local development and production deployments. With built-in support for TypeScript, hot reloading, and an inspector for testing and debugging, this starter project is ideal for developers looking to build robust MCP servers. The project also includes guidelines for deployment on platforms like Coolify, ensuring a smooth transition from development to production.

Features

  • Simple echo server implementation
  • Support for tools, resources, and prompts
  • TypeScript support
  • Development server with hot reloading
  • Built-in inspector for testing and debugging

MCP Tools

  • {'Echo Tool': 'A simple tool that echoes back the input message.'}

MCP Resources

  • {'Echo Resource': 'A resource that can be accessed via URI to echo messages.'}

Usage with Different Platforms

STDIO Mode

bash
pnpm build
node dist/index.cjs

SSE Mode

bash
pnpm dev

Connecting to Deployed Server

bash
npx -y mcp-remote https://subdomain.yourdomain.com/sse