home / mcp / template mcp server
Provides a simple string reversal tool with multi-transport support and a placeholder TypeScript implementation.
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.
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.
Prerequisites: you need Node.js (v14 or higher) and npm installed on your system.
# Install dependencies
npm installTo 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.shIf 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- 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.
Takes a string input and returns it reversed.