MCP.so
ログイン
M

MCP Template

@davini-dev

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

davini-dev

投稿者

Iotbrlabs

MCP Template について

MCP Server Template

MCP Template の設定

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

{
  "mcpServers": {
    "my-mcp-stdio": {
      "command": "npm",
      "args": [
        "start"
      ],
      "env": {
        "NODE_ENV": "development"
      }
    },
    "my-mcp-sse": {
      "url": "http://localhost:3001/sse"
    }
  }
}

MCP Template のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

上のボタンでサーバーのエンドポイントに接続し、ツール一覧を取得できます。

概要

What is MCP Template?

MCP Template is a CLI tool that generates a starter project for building MCP (Model Context Protocol) servers using the FastMCP framework. It provides a preconfigured TypeScript project with dual transport support (stdio and HTTP), sample definitions for tools, resources, and prompts, and development scripts. It is intended for developers who want to quickly create their own MCP servers.

How to use MCP Template?

Run npx @mcpdotdirect/create-mcp-server or npm init @mcpdotdirect/mcp-server to scaffold a new project. Then install dependencies with your preferred package manager and start the server using npm start (stdio mode) or npm run start:http (HTTP mode). Development modes with auto‑reload are available via npm run dev and npm run dev:http.

Key features of MCP Template

  • Built using the FastMCP framework
  • Dual transport: stdio and HTTP (SSE)
  • Full TypeScript support for type safety
  • Extensible with custom tools, resources, prompts

Use cases of MCP Template

  • Building personal CLI‑based MCP tools for local development
  • Creating shared MCP servers for team collaboration over HTTP
  • Rapid prototyping of new MCP servers with a ready‑to‑use structure

よくある質問

1

What transport methods does MCP Template support?

It supports two transports: stdio (local, command‑line mode) and SSE over HTTP (can run locally or remotely and be shared across machines).

2

How do I connect my MCP Server to Cursor?

In Cursor go to Settings > Features > MCP Servers, add a new server. For stdio, choose type `command` and enter `npm start`. For SSE, choose type `url` and enter `http://localhost:3001/sse`.

3

How do I change the HTTP port?

Set the `PORT` environment variable before starting the HTTP server, for example: `PORT=8080 npm run start:http`.

4

How do I test the server during development?

Use FastMCP’s built‑in tools: `npx fastmcp dev server.js` or `npx fastmcp inspect server.ts`.

5

Can I use Node.js instead of Bun?

Yes. The default scripts use Bun, but you can modify the `package.json` scripts to use Node.js or another runtime of your choice.

コメント

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