MCP.so
ログイン

MCP Server TypeScript Template

@MCP-Mirror

MCP Server TypeScript Template について

Mirror of

基本情報

カテゴリ

開発者ツール

ランタイム

node

トランスポート

stdio

公開者

MCP-Mirror

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "example": {
      "command": "node",
      "args": [
        "/path/to/mcp-server-typescript-template/dist/index.js"
      ]
    }
  }
}

ツール

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

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP Server TypeScript Template?

MCP Server TypeScript Template is a starter project for building Model Context Protocol (MCP) servers using TypeScript. It demonstrates a basic server implementation with custom tools, such as an example operation and an addition tool, and is intended for developers who want to create their own MCP servers.

How to use MCP Server TypeScript Template?

Clone the repository, run npm install, then npm run build and npm run start. To use with Claude Desktop, add the server to claude_desktop_config.json with the command node and the path to dist/index.js.

Key features of MCP Server TypeScript Template?

  • TypeScript-based MCP server template
  • Example tool implementations (addition, example operation)
  • Integration with the MCP SDK
  • Error handling and utility modules
  • Ready for Claude Desktop configuration

Use cases of MCP Server TypeScript Template?

  • Building a custom MCP server from a working foundation
  • Learning how to implement MCP tools in TypeScript
  • Rapid prototyping of MCP-based integrations
  • Teaching or demonstrating the Model Context Protocol

FAQ from MCP Server TypeScript Template

What are the prerequisites for using this template?

Node.js version 16 or higher and npm or yarn are required.

How do I build and start the server?

Run npm install, then npm run build and npm run start in the project directory.

How can I use this server with Claude Desktop?

Edit your claude_desktop_config.json to add an entry with the command node and the argument pointing to the built dist/index.js file.

What tools does the template include?

The server includes two example tools: an example operation and a tool that adds two numbers.

What is the project structure?

The project contains a common/ folder with constants, types, error handling, and utilities; an operations/ folder with example operations; and an index.ts entry point.

コメント

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