MCP.so
登录

MCP Server Template

@MCP-Mirror

基本信息

分类

开发工具

传输方式

stdio

作者

MCP-Mirror

关于 MCP Server Template

Mirror of

MCP Server Template 配置

暂无标准配置

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

代码仓库

MCP Server Template 工具

工具列表暂未提供

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

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

概览

What is MCP Server Template 🛠️?

MCP Server Template 🛠️ is a starter template for building custom Model Context Protocol (MCP) servers. It provides the basic TypeScript project structure and a sample tool implementation, designed for developers who want to create MCPs for use with Cursor or Claude Desktop.

How to use MCP Server Template 🛠️?

Clone the repository, install dependencies with pnpm install, and build with pnpm run build to generate /build/index.js. Then configure the compiled script as an MCP server in Cursor Settings (command type) or in the Claude Desktop MCP config JSON.

Key features of MCP Server Template 🛠️

  • Ready-to-use TypeScript project structure
  • Sample tool implementation to start from
  • Built with @modelcontextprotocol/sdk
  • Compiles to a single JavaScript file
  • Works with Cursor and Claude Desktop

Use cases of MCP Server Template 🛠️

  • Quickly scaffolding a new custom MCP server
  • Learning how to build MCP tools with TypeScript
  • Prototyping a tool that integrates with Claude Desktop
  • Providing a foundation for Cursor-based MCP extensions

常见问题

1

What does MCP Server Template 🛠️ contain?

It includes an `index.ts` main server file, a sample tool, `package.json`, `tsconfig.json`, and a `build/` output folder. The sample tool demonstrates how to define parameters and return text responses.

2

How do I configure it with Cursor?

In Cursor Settings → MCP → Add new MCP server, set Type to “command” and enter `node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js` as the command.

3

How do I configure it with Claude Desktop?

Add an entry to your Claude Desktop MCP configuration JSON with `"command": "node"` and `"args": ["ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js"]`.

4

What runtime or dependencies are required?

You need Node.js, pnpm (or npm), and TypeScript. The template uses the `@modelcontextprotocol/sdk` package, installed via `pnpm install`.

5

How do I add my own tools?

Edit `index.ts` and use the `server.tool()` method with a Zod schema for parameters. Then rebuild with `pnpm run build` and restart the MCP server.

评论

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