drio
Open app

mcp-server-template-ts

Source

A starter template for building robust Model Context Protocol (MCP) servers using TypeScript. This template provides a structured foundation for creating servers that can effectively communicate with Large Language Models (LLMs) through the MCP standard.

Catalog onlyCatalog onlySTDIO

Overview

MCP Server Template is a starter template for building robust Model Context Protocol (MCP) servers using TypeScript. It provides a structured foundation for creating servers that can effectively communicate with Large Language Models (LLMs) through the MCP standard.

To use the MCP Server Template, clone the repository, install the dependencies, and run the server. You can also add new tools and resources by extending the base classes provided in the template.

  • Fully typed TypeScript implementation for better development experience. - Modular architecture that allows easy addition of new tools and capabilities. - Built on the official MCP TypeScript SDK, ensuring compliance with MCP standards. - Includes example tools and configuration for quick setup.
  1. Building custom MCP servers for specific applications.
  2. Integrating LLMs with external services for enhanced functionality.
  3. Developing tools that can perform actions and computations based on user input.

Add to your AI client

Use these steps to connect mcp-server-template-ts 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-using-typescript-duyquangnvx": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-using-typescript-duyquangnvx"
      ]
    }
  }
}

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

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

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

What are the prerequisites for using this template?

You need Node.js 18+ and npm or yarn to get started.

Can I add my own tools to the server?

Yes! You can create new classes that extend the BaseTool and register them in the server.

Is this template suitable for production use?

While it provides a solid foundation, further customization and testing are recommended for production environments.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3696,"uuid":"3a2b6e6d-aa62-42d2-b10d-caae0bb84066","name":"MCP-Server-Template-using-Typescript","title":"mcp-server-template-ts","description":"A starter template for building robust Model Context Protocol (MCP) servers using TypeScript. This template provides a structured foundation for creating servers that can effectively communicate with Large Language Models (LLMs) through the MCP standard.","avatar_url":"https://avatars.githubusercontent.com/u/57840799?v=4","created_at":"2025-03-21T04:36:28.118Z","updated_at":"2025-03-21T04:51:27.891Z","status":"created","author_name":"duyquangnvx","author_avatar_url":"https://avatars.githubusercontent.com/u/57840799?v=4","tags":"mcp-server,typescript,mcp-template","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/duyquangnvx/MCP-Server-Template-using-Typescript","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-21 11:30:16\"}","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"}]]}]

mcp-server-template-ts — MCP Registry