MCP.so
登录

MCP JS Server Template

@ryaker

基本信息

分类

开发工具

传输方式

stdio

作者

ryaker

关于 MCP JS Server Template

Simplified MCP Server Template for Node.js

MCP JS Server Template 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP JS Server Template 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP JS Server Template?

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.

How to use MCP JS Server Template?

Clone the repository, install the @modelcontextprotocol/sdk dependency, then add a configuration entry to Claude Desktop’s claude_desktop_config.json file pointing to the server script. The server exposes two tools: about and hello.

Key features of MCP JS Server Template

  • 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

Use cases of MCP JS Server Template

  • Creating a custom MCP server for Claude Desktop
  • Learning how to build MCP servers with minimal code
  • Prototyping new tools before full implementation

常见问题

1

What tools does MCP JS Server Template include?

It includes the `about` tool (returns server information) and the `hello` tool (provides a greeting with an optional name parameter).

2

What are the prerequisites?

Node.js v16 or later, Claude Desktop, and the `@modelcontextprotocol/sdk` npm package.

3

How do I configure it for Claude Desktop?

Add a configuration entry to `claude_desktop_config.json` with command `"node"` and args pointing to the full path of the server file. An example configuration is provided in the README.

4

Can I extend the template?

Yes. Copy it, modify the `TOOLS` array, implement custom handlers in `server.fallbackRequestHandler`, and update the server name and version.

5

What are the limitations?

Minimal error handling and no advanced security features. It is meant as a starting point for custom implementations.

评论

开发工具 分类下的更多 MCP 服务器