Skip to main content
Glama
minimind-org

MCP Server TypeScript Template

by minimind-org

MCP サーバー TypeScript テンプレート

TypeScriptを使用してモデルコンテキストプロトコル(MCP)サーバーを作成するためのテンプレートです。このプロジェクトでは、カスタムツールを使用してシンプルなMCPサーバーを実装する方法を示します。

概要

このテンプレートは、次のツールを提供する基本的な MCP サーバーを実装します。

  • 操作例: 簡単なデモ操作

  • 加算: 2つの数字を足すツール

サーバーは、モデル コンテキスト プロトコル SDK を使用して、AI モデルと外部ツール間の通信を処理します。

Related MCP server: MCP Server Starter

前提条件

  • Node.js (v16 以上)

  • npmまたはyarn

プロジェクト構造

プロジェクトは次のように構成されています。

mcp-server-typescript-template/
├── common/
│   ├── constant.ts     # Project constants
│   ├── errors.ts       # Error handling utilities
│   └── types.ts        # Type definitions
│   └── utils.ts        # Utility functions

├── operations/
│   └── example-operation.ts  # Implementation of example operations
├── index.ts            # Main server implementation
├── package.json
└── tsconfig.json

インストール

リポジトリをクローンし、依存関係をインストールします。

git clone <repository-url>
cd mcp-server-typescript-template
npm install
npm run test
npm run build
npm run start # this will start the server for testing

MCP クライアントの構成 (Claude デスクトップ)

claude_desktop_config.jsonファイルを編集して、以下を追加します。

{
  "mcpServers": {
    "example": {
      "command": "node",
      "args": [
        "/path/to/mcp-server-typescript-template/dist/index.js"
      ]
    }
  }
}
Install Server
F
license - not found
C
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A TypeScript template for building MCP servers with HTTP transport that provides a foundation for creating integrations between AI assistants and custom tools. Includes example implementations and development tooling to help developers create their own MCP servers.
    16
    ISC
  • A
    license
    Not graded
    quality
    D
    maintenance
    A TypeScript template for building Model Context Protocol (MCP) servers that enables developers to quickly create custom tools and integrate them with AI platforms like Claude, Cursor, Windsurf, and Cline.
    8
    34
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A boilerplate project for quickly developing Model Context Protocol (MCP) servers using TypeScript SDK, with example implementations of tools (calculator, greeting) and resources (server info).
    15
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A boilerplate project for quickly developing Model Context Protocol servers using TypeScript SDK, with example implementations of tools (calculator, greeting) and resources (server info).

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/minimind-org/mcp-server-typescript-template'

If you have feedback or need assistance with the MCP directory API, please join our Discord server