MCP.so
ログイン

MCP Server Template 🛠️

@MCP-Mirror

MCP Server Template 🛠️ について

Mirror of

基本情報

カテゴリ

開発者ツール

ランタイム

node

トランスポート

stdio

公開者

MCP-Mirror

設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

ツール

ツールは検出されませんでした

ツールは 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

FAQ from MCP Server Template 🛠️

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.

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.

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"].

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.

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.

コメント

「開発者ツール」の他のコンテンツ