MCP-JS -Template
Simplified MCP Server Template for Node.js
claude mcp add --transport stdio ryaker-mcp-js-server-template node /full/path/to/simplified-template-mcp-server.js \ --env NODE_OPTIONS="--no-deprecation"
How to use
This MCP server template provides a minimal but functional MCP server built with JavaScript and the @modelcontextprotocol/sdk. It exposes two basic tools: about and hello. The about tool returns information about the MCP server, such as its name and version, while the hello tool greets a user and can take an optional name parameter. The server is designed to be extended: you can modify the TOOLS array to add more commands and implement custom tool handlers in server.fallbackRequestHandler. Claude Desktop can interact with the server through its configured tools, enabling you to leverage MCP primitives within your workflows. The server follows the MCP protocol version 2024-11-05 and uses the sdk to handle protocol details, error handling, and logging.
How to install
Prerequisites:
- Node.js (v16 or later)
- Claude Desktop
- npm (comes with Node.js)
Installation steps:
- Clone the repository to your local machine.
- Install dependencies:
npm install @modelcontextprotocol/sdk
- (Optional) verify your Node.js version:
node -v
- Replace the placeholder path in Claude Desktop configuration with the actual path to your server file (simplified-template-mcp-server.js) and adjust any environment options as needed.
Additional notes
Tips:
- The template is a starting point; consider adding proper error handling and input validation for production use.
- If you publish or share tools, document their input parameters and return formats clearly.
- Ensure the Node options (NODE_OPTIONS) in Claude Desktop configuration are appropriate for your environment to avoid deprecation warnings and to maintain compatibility.
- When extending, update the server name, version, and any tool handlers to reflect your custom implementation.
- Check MCP protocol compatibility with Claude Desktop updates and adjust your implementation if protocol revisions occur.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.