Sample MCP Server

by wudongjie
106
  • Apple

sample-mcp-server MCP サーバー

モデルコンテキストプロトコルサーバー

これは、シンプルなメモシステムを実装したTypeScriptベースのMCPサーバーです。以下の機能を提供することで、MCPのコアコンセプトを実証しています。

  • URIとメタデータを含むテキストメモを表すリソース
  • 新しいノートを作成するためのツール
  • メモの要約を生成するためのプロンプト

特徴

リソース

  • note:// URI 経由でメモの一覧表示とアクセスを行う
  • 各ノートにはタイトル、内容、メタデータがあります
  • シンプルなコンテンツアクセスのためのプレーンテキスト MIME タイプ

ツール

  • create_note - 新しいテキストノートを作成する
    • タイトルとコンテンツを必須パラメータとして受け取ります
    • メモをサーバー状態に保存する

プロンプト

  • summarize_notes - 保存されているすべてのメモの要約を生成する
    • すべてのノートの内容を埋め込みリソースとして含めます
    • LLM要約のための構造化されたプロンプトを返す

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "sample-mcp-server": { "command": "/path/to/sample-mcp-server/build/index.js" } } }

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

You must be authenticated.

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

Tools

ユーザーがテキスト ノートの作成、アクセス、要約の生成を行えるシンプルなノート システムを実装する TypeScript ベースの MCP サーバーです。

  1. Features
    1. Resources
    2. Tools
    3. Prompts
  2. Development
    1. Installation
      1. Debugging

    Related MCP Servers

    • A
      security
      F
      license
      A
      quality
      A TypeScript-based MCP server that implements a simple notes system, enabling users to manage text notes with creation and summarization functionalities through structured prompts.
      Last updated -
      1
      289
      JavaScript
      • Apple
    • A
      security
      F
      license
      A
      quality
      A simple TypeScript-based MCP server that implements a notes system, allowing users to create, list, and generate summaries of text notes via Claude.
      Last updated -
      1
      JavaScript
    • A
      security
      F
      license
      A
      quality
      A TypeScript-based MCP server that implements a simple notes system, allowing users to create, access, and generate summaries of text notes.
      Last updated -
      12
      1
      TypeScript
      • Apple
    • -
      security
      F
      license
      -
      quality
      A TypeScript-based MCP server that implements a simple notes system, allowing users to create, access, and generate summaries of text notes through Claude Desktop.
      Last updated -
      JavaScript
      • Apple

    View all related MCP servers

    ID: 6649g9cjdh