drio
Open app

MCP Server Template 🛠️

Source

Minimal typescript template to build an mcp server

Catalog onlyCatalog onlySTDIO

Overview

MCP Server Template is a starter template designed for building your own Model Context Protocol (MCP) server, providing the essential structure and setup needed to create custom MCPs for use with Cursor or Claude Desktop.

To use the MCP Server Template, clone the repository, install the dependencies, and build the project to generate the compiled MCP server script. Then, configure it with Cursor or Claude Desktop as per the provided instructions.

  • Basic MCP server setup with TypeScript - Sample tool implementation included - Ready-to-use project structure for easy customization - Built with the @modelcontextprotocol/sdk for seamless integration
  1. Creating custom MCP servers for various applications.
  2. Integrating with Cursor for enhanced functionality.
  3. Developing tools that can be utilized within Claude Desktop.

Add to your AI client

Use these steps to connect MCP Server Template 🛠️ 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-jatinsandilya": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-jatinsandilya"
      ]
    }
  }
}

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-jatinsandilya": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-jatinsandilya"
      ]
    }
  }
}

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-jatinsandilya": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-jatinsandilya"
      ]
    }
  }
}

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-jatinsandilya": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-jatinsandilya"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

What is the purpose of this template?

The template serves as a foundational setup for developers to create their own MCP servers easily.

Is prior knowledge of TypeScript required?

While familiarity with TypeScript is beneficial, the template is structured to guide users through the setup process.

Can I contribute to this project?

Yes! Contributions in the form of issues and enhancement requests are welcome.