drio
Open app

MCP Server Template

Source

Catalog onlyCatalog onlySTDIO

Overview

MCP Server Template is a comprehensive template designed for building Model Context Protocol (MCP) servers using TypeScript and Node.js. It provides a standardized structure and best practices for developers.

To use the MCP Server Template, clone the repository, install the dependencies, build the project, and run the example server. You can also utilize AI assistants like Claude for task-specific assistance.

  • Standardized directory structure for easy navigation - TypeScript configuration with ES Modules - Error handling utilities and testing framework - Example implementations and comprehensive documentation - Integration with AI assistants for enhanced development
  1. Building custom MCP servers for various applications
  2. Integrating with external APIs like GitHub or weather services
  3. Developing tools and resources for specific tasks using AI assistance

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

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

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

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

Is the MCP Server Template free to use?

Yes! The MCP Server Template is open-source and free to use.

Can I contribute to the MCP Server Template?

Absolutely! Contributions are welcome, and guidelines can be found in the repository.

What programming language is used in the MCP Server Template?

The template is built using TypeScript.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1708,"uuid":"ae6cc55a-5afc-485f-bd0b-dedcbbc21684","name":"MCP-server-template","title":"MCP Server Template","description":"","avatar_url":"https://avatars.githubusercontent.com/u/146890666?v=4","created_at":"2025-03-05T04:58:32.268Z","updated_at":"2025-03-12T10:20:31.114Z","status":"created","author_name":"deachne","author_avatar_url":"https://avatars.githubusercontent.com/u/146890666?v=4","tags":"mcp,server-template,typescript,nodejs","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/deachne/MCP-server-template","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-04 21:00:42\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]