mcp-server-template

bladnman/mcp-server-template

3.1

If you are the rightful owner of mcp-server-template and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A starting point for an MCP Server template that can be customized and extended.

The MCP Server template provides a foundational setup for creating a Model Context Protocol server. It includes a simple string reversal tool and supports both stdio and Server-Sent Events (SSE) transports. The server is implemented in TypeScript, ensuring a robust and type-safe development process. The template is designed to be easily duplicated and customized, allowing developers to create their own MCP server instances with minimal setup. It also includes a full build process, making it easy to transition from development to production.

Features

  • Simple string reversal tool
  • Support for both stdio and SSE transports
  • TypeScript implementation with full build process

Usages

usage with stdio

bash
bash run-server.sh

usage with sse

bash
TRANSPORT_TYPE=sse npm run start

usage with mcp inspector

bash
npx fastmcp inspect server.ts

Tools

  1. reverse

    Takes a string input and returns it reversed.