drio
Open app

MCP Server - JavaScript SDK

Source

An unofficial JavaScript SDK for Model Context Protocol

Catalog onlyCatalog onlySTDIO

Overview

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

To use MCP Server, install the package via npm, define your server's prompts, resources, and tools in separate files, and then create a server instance using the MCP class.

  • Easy integration with JavaScript projects via npm. - Customizable prompts, resources, and tools for tailored server functionality. - Logging capabilities for debugging server operations.
  1. Building interactive AI applications that respond to user prompts.
  2. Creating custom APIs that utilize the Model Context Protocol.
  3. Developing tools that require server-side processing of user inputs.

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

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

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

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

Is MCP Server officially supported by the Model Context Protocol?

No, MCP Server is an unofficial SDK created by a community developer.

Can I customize the prompts and tools?

Yes! You can define your own prompts and tools in the provided structure.

How do I debug the server?

Logs can be found in your user system logs directory, depending on your operating system.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":960,"uuid":"2a0208b3-6cf8-410a-8c55-85358e5e6f00","name":"mcp-js-server","title":"MCP Server - JavaScript SDK","description":"An unofficial JavaScript SDK for Model Context Protocol","avatar_url":"https://avatars.githubusercontent.com/u/1110600?v=4","created_at":"2025-01-28T02:20:52.101Z","updated_at":"2025-02-23T07:19:19.060Z","status":"created","author_name":"davlgd","author_avatar_url":"https://avatars.githubusercontent.com/u/1110600?v=4","tags":"ai,mcp,stdio","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/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"}]]}]