Simple TypeScript MCP Server

by jasonkneen

Integrations

  • Built with TypeScript for type-safe development, allowing creation of robust MCP tools with proper typing and improved code reliability.

  • Integrates with Vitest for testing the MCP server functionality, enabling test-driven development of the note management capabilities.

シンプルなTypeScript MCPサーバー

基本的なCRUD操作を備えたモデルコンテキストプロトコル(MCP)サーバーを構築するためのシンプルなTypeScriptテンプレートです。このテンプレートは、JSONレスポンスを返すMCPツールを作成するための基盤を提供します。

特徴

  • CRUD操作を備えたシンプルなノートAPI
  • インメモリデータストレージ
  • TypeScript実装
  • JSONレスポンス
  • Vitestでテスト準備完了

設定

npm install

サーバーの実行

npm run dev

生産のための構築

npm run build npm start

利用可能なツール

このテンプレートには、次の MCP ツールが含まれています。

  • getNote : IDでノートを取得する
  • getAllNotes : すべてのノートを取得する
  • createNote : 新しいノートを作成する
  • updateNote : 既存のメモを更新する
  • deleteNote : IDでノートを削除する

テスト

次のようにテストを実行します。

npm test

または視聴モード:

npm run test:watch

カスタマイズ

ニーズに合わせてsrc/server.ts内のツールを変更することで、このテンプレートを独自の MCP サーバーの開始点として使用できます。

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

JSON 応答による基本的なメモ作成 CRUD 操作を実装するモデル コンテキスト プロトコル サーバーを構築するための TypeScript テンプレート。

  1. 特徴
    1. 設定
      1. サーバーの実行
        1. 生産のための構築
          1. 利用可能なツール
            1. テスト
              1. カスタマイズ

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.
                  Last updated -
                  1
                  7
                  12
                  JavaScript
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  A production-ready template for building Model Context Protocol servers in TypeScript, offering fast development with Bun, Biome linting, and automated version management.
                  Last updated -
                  1
                  7
                  JavaScript
                  MIT License
                • A
                  security
                  F
                  license
                  A
                  quality
                  A TypeScript-based template for developing Model Context Protocol servers with features like dependency injection and service-based architecture, facilitating the creation and integration of custom data processing tools.
                  Last updated -
                  1
                  2
                  TypeScript
                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that extracts embedded data (such as i18n translations or key/value configurations) from TypeScript/JavaScript source code into structured JSON configuration files.
                  Last updated -
                  2
                  14
                  2
                  JavaScript
                  MIT License

                View all related MCP servers

                ID: h4hg5cqqpp