home / mcp / template mcp server

Template MCP Server

Provides a simple string reversal tool with multi-transport support and a placeholder TypeScript implementation.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "bladnman-mcp-server-template": {
      "command": "bash",
      "args": [
        "run-server.sh"
      ],
      "env": {
        "NODE_ENV": "development"
      }
    }
  }
}

You run a lightweight MCP server that exposes a simple string reversal tool and supports multiple transports. It’s designed to be a starter you can customize, build, and run locally to explore MCP workflows and client interactions with a minimal, practical example.

How to use

Launch the server locally and connect with an MCP client to send a string and receive its reversal. You can test different transports and observe how the server processes inputs and returns results. The built-in reverse tool is accessible as a functional endpoint you can call from your client, and you can switch transports to compare performance and behavior.

How to install

Prerequisites: you need Node.js (v14 or higher) and npm installed on your system.

# Install dependencies
npm install

Additional setup notes

To run the server in stdio mode locally, use the following command. This starts the local MCP server process that you can interact with via its standard input/output streams.

bash run-server.sh

Running with SSE transport

If you want to run the server using the SSE transport, set the transport type and start the server accordingly.

TRANSPORT_TYPE=sse npm run start

Testing and usage tips

- Test the reverse function by sending a string input and verifying that the output is the reversed string. - Access the server locally and observe the response timing across transports to understand throughput and latency characteristics. - Use the built-in inspection workflow to observe transit between client and server during development.

Available tools

reverse

Takes a string input and returns it reversed.