drio
Open app

Template for MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

MCP Server Template is a starting point for creating your own MCP server, allowing developers to quickly set up a server environment with essential features.

To use the MCP Server Template, clone the repository and run the provided commands to set up your own server instance.

  • Simple string reversal tool - Support for both stdio and SSE transports - TypeScript implementation with a full build process
  1. Quickly setting up a new server for development purposes.
  2. Learning TypeScript through practical implementation.
  3. Creating custom server applications based on the template.

Add to your AI client

Use these steps to connect Template for MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-template-bladnman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-bladnman"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-template-bladnman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-bladnman"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-template-bladnman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-bladnman"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-template-bladnman": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-bladnman"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-template-bladnman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-bladnman"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-template-bladnman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-bladnman"
      ]
    }
  }
}

FAQ

What are the prerequisites for using this template?

You need Node.js (v14 or higher) and npm installed.

Can I modify the template?

Yes! The template is designed for you to duplicate and modify as needed.

How do I run the server?

You can run the server using the provided bash scripts for stdio or SSE transport.