drio
Open app

MCP JS Server Template

Source

Simplified MCP Server Template for Node.js

Catalog onlyCatalog onlySTDIO

Overview

MCP JS Server Template is a simplified template for creating Model Context Protocol (MCP) servers in JavaScript, designed for integration with Claude Desktop. It provides a basic structure for developing custom MCP servers with minimal boilerplate code.

To use the MCP JS Server Template, clone the repository, install the necessary dependencies, and configure it in your Claude Desktop configuration file. You can then run the server and utilize the provided tools.

  • Implements standard MCP server initialization - Provides two basic tools: about and hello - Follows MCP protocol version 2024-11-05 - Uses @modelcontextprotocol/sdk for server implementation - Includes error handling and logging
  1. Creating custom MCP servers for various applications.
  2. Integrating with Claude Desktop for enhanced functionality.
  3. Rapid prototyping of server implementations with minimal setup.

Add to your AI client

Use these steps to connect MCP JS 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-js-server-template-ryaker": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-js-server-template-ryaker"
      ]
    }
  }
}

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

Claude Code

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

.mcp.json (project root)

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

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

What are the prerequisites for using this template?

You need Node.js (v16 or later) and the `@modelcontextprotocol/sdk` npm package.

Can I extend this template for my own MCP server?

Yes! You can copy the template, modify the tools, and implement custom handlers.

Is there any support for advanced features?

This template is minimal and does not include advanced security features or extensive error handling.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2761,"uuid":"2dc995df-fae0-4006-81cf-6aa0022fe5df","name":"MCP-JS-Server-Template","title":"MCP JS Server Template","description":"Simplified MCP Server Template for Node.js","avatar_url":"https://avatars.githubusercontent.com/u/947669?v=4","created_at":"2025-03-14T01:03:27.411Z","updated_at":"2025-03-14T01:37:50.975Z","status":"created","author_name":"ryaker","author_avatar_url":"https://avatars.githubusercontent.com/u/947669?v=4","tags":"mcp,nodejs,server-template","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/ryaker/MCP-JS-Server-Template","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-13 12:09:47\"}","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"}]]}]