MCP.so
ログイン

[Template] MCP Server

@larryhudson

基本情報

カテゴリ

開発者ツール

ライセンス

MIT

トランスポート

stdio

作者

larryhudson

[Template] MCP Server について

A template for making an MCP server with TypeScript

[Template] MCP Server の設定

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

{
  "mcpServers": {
    "mcp-server-template-larryhudson": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/inspector",
        "npx",
        "tsx",
        "src/index.ts"
      ]
    }
  }
}

[Template] MCP Server のツール

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

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

上のボタンで一時的なサンドボックスでこのサーバーを実行し、ツール一覧を取得できます。

概要

What is [Template] MCP Server?

A starter template for building MCP (Model Context Protocol) servers using TypeScript. It provides a scaffold for defining tools, managing environment variables, and publishing the server to npm.

How to use [Template] MCP Server?

Add tool definitions in src/index.ts, update the README and placeholder info in package.json, then build with npm run build. To use the server in an MCP client, set an API key as an environment variable and add the provided JSON configuration to your client’s settings.

Key features of [Template] MCP Server

  • Built with Model Context Protocol and TypeScript
  • Ready‑to‑edit tool definition file (src/index.ts)
  • Example configurations for VS Code and Claude
  • Environment‑variable‑based API key setup
  • Test and debug with MCP Inspector

Use cases of [Template] MCP Server

  • Quickly prototyping a new MCP server with custom tools
  • Packaging an MCP server for npm distribution
  • Experimenting with MCP tool definitions before production

よくある質問

1

What runtime does it require?

Node.js (for npm/npx commands) and TypeScript.

2

How do I set up the API key?

Create an API key, then set it as the environment variable `API_KEY_ENV_VAR` (or replace with your own variable name).

3

Where do I add tool definitions?

In the `src/index.ts` file.

4

How can I test the server locally?

Run `npx @modelcontextprotocol/inspector npx tsx src/index.ts` to launch the MCP Inspector.

5

Are there any known limitations?

The README does not list any limitations; all placeholder sections are intentionally left for the user to fill.

コメント

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