Skip to main content
Glama
gaurav-oberoi

mcp-knowledge-base

mcp-knowledge-base

Model Context Protocol (MCP) サーバーで、ノートのナレッジベースを MCP クライアント(Claude Desktop、IDE、または任意のエージェント)に公開します。MCP サーバーが提供する2つの機能、ツール(モデルが呼び出せるアクション)とリソース(モデルが読み取れるデータ)を示しています。TypeScript で書かれ、stdio 上で動作します。

mcp typescript

公開内容

ツール (src/server.ts):

ツール

目的

search_notes

ナレッジベース全体のキーワード検索(タイトル/タグ/本文を重み付け)

add_note

新しいノートを追加

get_note

ID で1件のノートを取得

リソース: 各ノートは note://{id} で読み取れ、一覧も提供されます。つまりクライアントはツールを呼び出すだけでなく、ナレッジベースをデータとして閲覧できます。

ドメインロジック(ノートストアと検索ランキング)は src/notes.ts にあり、プロトコル層から分離されています。

Related MCP server: approveit MCP Server

MCP クライアントで使う

ビルドしてから、クライアントをバイナリに向けます。たとえば Claude Desktop の claude_desktop_config.json では:

{
  "mcpServers": {
    "knowledge-base": { "command": "node", "args": ["/abs/path/to/dist/index.js"] }
  }
}
npm install && npm run build
node dist/index.js     # speaks MCP over stdio

テスト

npm test

2つの層があり、どちらもオフラインで動作します:

  • ユニット — ノートストアと検索ランキング。

  • 統合 — 実際の MCP Client がインメモリトランスポートを介してサーバーと通信します(stdio 経由のクライアントと同じ方法)。ツールの一覧表示、search_notes/add_note/get_note の呼び出し、note:// リソースの読み取りを行います。合計9テスト。

ライセンス

MIT

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • -
    license
    C
    quality
    D
    maintenance
    Enables creating and managing text notes through MCP resources and tools. Provides note creation capabilities and automatic summarization of all stored notes.
    1
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    A simple notes system that allows creating, storing, and accessing text notes through MCP resources and tools, with built-in prompt support for generating summaries of stored notes.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gaurav-oberoi/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server