drio
Open app

MCP Server - JavaScript SDK

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

MCP Server - JavaScript SDK is an unofficial SDK designed for the Model Context Protocol, allowing developers to create and manage server instances with custom prompts, resources, and tools.

To use the SDK, define your server's prompts, resources, and tools in separate JavaScript files, and then create a server instance using the MCP class.

  • Easy setup for server prompts, resources, and tools. - Supports custom tool handlers for complex operations. - Provides a structured way to manage server configurations.
  1. Building interactive chatbots that respond to user prompts.
  2. Creating APIs that utilize custom tools for data processing.
  3. Developing applications that require a structured server-client interaction model.

Add to your AI client

Use these steps to connect MCP Server - JavaScript SDK 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": {
    "davlgd-mcp-js-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-davlgd-mcp-js-server-mcp-mirror"
      ]
    }
  }
}

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

Claude Code

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

.mcp.json (project root)

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

VS Code (Copilot)

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

.vscode/mcp.json

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

Is this SDK official?

No, this is an unofficial SDK for the Model Context Protocol.

Can I customize the prompts and tools?

Yes! You can define your own prompts and tools as per your requirements.

Where can I find the logs for debugging?

Logs can be found in your user system logs directory based on your operating system.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1018,"uuid":"9bd30af4-d93c-4f70-9863-ac420aa1eafd","name":"davlgd_mcp-js-server","title":"MCP Server - JavaScript SDK","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2025-01-28T02:26:55.851Z","updated_at":"2025-02-23T07:19:42.820Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"mcp,javascript-sdk,model-context-protocol","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/davlgd_mcp-js-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"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"}]]}]