MCP-JS-Server-Template
This project provides a user-friendly template for creating Model Context Protocol (MCP) servers in JavaScript, specifically designed for integration with Claude Desktop. It offers a minimalistic approach for developers to quickly set up MCP servers and extend them with custom functionalities using the provided SDK.
Overview
This project is a simplified template for creating Model Context Protocol (MCP) servers using JavaScript to integrate with Claude Desktop. It provides a basic structure, implementing standard MCP server initialization with minimal boilerplate code. Key features include two basic tools, compliance with MCP protocol version 2024-11-05, and the use of the @modelcontextprotocol/sdk
. It requires Node.js, Claude Desktop, and the @modelcontextprotocol/sdk
npm package. The template supports extension to develop custom MCP servers.
Features
- Implements standard MCP server initialization
- Provides basic tools: about and hello
- Follows MCP protocol v2024-11-05
- Comprehensive logging and error handling
Installation
- Clone the repository
- Install dependencies
Available Tools
about
: Returns information about the MCP server.hello
: Provides a greeting with an optional name parameter.