Skip to main content
Glama
jhon2c

MCP Boilerplate

by jhon2c

MCPバナー

🚀 MCP ボイラープレート

Bun ⚡によって提供

モデルコンテキストプロトコル(MCP)アプリケーション用の最新の超高速ボイラープレート

Node.js パン ライセンス タイプスクリプト


🔥 機能

  • Bun 搭載の超高速 MCP

  • モダンなTypeScriptファーストアーキテクチャ

  • すぐに使用可能な MCP SDK 統合 ( @modelcontextprotocol/sdk )

  • 適切な TypeScript サポートを備えた Express 5.x サーバー

  • Zodスキーマを使用した堅牢な検証

  • Morganによるスマートログ

  • 環境設定サポート

  • CLI対応実装


Related MCP server: MCP Server Starter (TypeScript)

🛠️ 前提条件


⚡ クイックスタート

# Clone repository
git clone https://github.com/jhon2c/mcp-boilerplate.git
cd mcp-boilerplate

# Install dependencies (with Bun) [Recommended]
bun install

# OR with npm
npm install

# Start development server
bun run dev

🚄 開発スクリプト

指示

説明

bun run dev

ホットリロードで開発サーバーを起動する

bun run build

TypeScriptをコンパイルする

mcp-boilerplate

コンパイルされたCLIを実行する


🌐 環境設定

.env ファイルを作成します:

PORT=3000 
MCP_API_KEY=your_api_key_here
DEBUG=mcp:*

✨ カーソルにMCPサーバーをセットアップする

  1. サーバーをインストールして実行する

  2. カーソルMCP設定Files > Preferences > Cursor Settings > MCPに移動します。

  3. 新しい MCP サーバーを追加+ Add new global MCP server

  4. セットアップJSONを貼り付けます

{
    "mcpServers": {
        "mcp-boilerplate": {
            "url": "http://localhost:3001/sse"
        }
    }
}

📂 プロジェクト構造

mcp-boilerplate/
├── src/
│ ├── index.ts
│ ├── config/
│ ├── services/
│ └── types/
└── build/

📦 主要な依存関係

ランタイム:

開発者:


🤝 フォークリポジトリへの貢献

  1. 機能ブランチを作成する

  2. 変更をコミットする

  3. ブランチをプッシュ

  4. オープンPR

📄 ライセンス MIT - LICENSE を参照

コーディングを楽しんでください!

Related MCP Connectors

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    A production-ready template for building Model Context Protocol servers in TypeScript, offering fast development with Bun, Biome linting, and automated version management.
    1
    37 npm
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A minimal, production-ready TypeScript starter template for building Model Context Protocol (MCP) servers with auto-loading architecture for tools, resources, and prompts. Provides boilerplate code, generators, and examples to quickly create MCP servers that can connect AI applications to any data source or tool.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server template designed for building structured tools, prompts, and resources with built-in support for HTTP and STDIO transports. It provides a standardized framework for developers to create and deploy AI-driven services using TypeScript and Zod schema validation.
    8 npm
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    A production-ready template for building Model Context Protocol servers using TypeScript and Bun runtime, including schema validation, structured logging, and retry utilities.
    9 npm
    MIT