Skip to main content
Glama
nextcloud-note-mcp

nextcloud-note-mcp

by nattoujam

nextcloud-note-mcp

Nextcloud の Notes アプリのノートを、Claude などの MCP クライアントから読み書きする stdio MCP サーバー。 検索はマッチした行と前後の数行だけを返す。本文の編集は、置き換える文字列だけを送れる。

依存

  • Node.js 20 以上

  • Notes アプリを入れた Nextcloud(Notes API 1.2 以上。Notes アプリ 4.1 以上)

Related MCP server: mcp-snippetbox

セットアップ

git clone https://github.com/nattoujam/nextcloud-note-mcp.git
cd nextcloud-note-mcp && npm ci && npm run build

サーバーは次の環境変数で Nextcloud に接続する。

変数

値

NC_NOTES_URL

Nextcloud の URL(例: https://cloud.example.com)

NC_NOTES_USER

ユーザー名

NC_NOTES_PASSWORD

パスワード。アプリパスワードを推奨

Claude Code

claude mcp add --scope user nc-notes -e NC_NOTES_URL=https://cloud.example.com -e NC_NOTES_USER=your-user -e NC_NOTES_PASSWORD=your-app-password -- node /path/to/nextcloud-note-mcp/dist/index.js

Claude Desktop

claude_desktop_config.json に追加する。ファイルの場所と開き方は公式ドキュメントを参照。

{
  "mcpServers": {
    "nc-notes": {
      "command": "node",
      "args": ["/path/to/nextcloud-note-mcp/dist/index.js"],
      "env": {
        "NC_NOTES_URL": "https://cloud.example.com",
        "NC_NOTES_USER": "your-user",
        "NC_NOTES_PASSWORD": "your-app-password"
      }
    }
  }
}

パスワードをクライアントの設定に書かない場合

3 つの変数をファイルにまとめ、起動時に読み込ませる。NC_NOTES_URL=... の形で 1 行に 1 つ書き、chmod 600 にしておく。

"command": "bash",
"args": ["-c", "set -a; . /path/to/nc-notes.env; exec node /path/to/nextcloud-note-mcp/dist/index.js"]

Claude Code では claude mcp add の -- 以降に同じコマンドを渡す。

使い方

クライアントに頼むと、Claude が tool を選んで呼ぶ。

  • 「Notes から〇〇について書いたメモを探して」

  • 「この調査結果をノートとして保存して」

  • 「さっきのノートの結論の段落を書き直して」

書き込みは次のように振る舞う。

  • edit_note は指定した文字列を置き換える。文字列が見つからないとき、複数見つかるときは書き込まない。

  • update_note で本文をまるごと置き換えるときは、get_note で読んだ etag が要る。そのあと別の端末で編集されていたら、上書きせずにエラーを返す。

  • create_note のタイトルとカテゴリは、Nextcloud が記号を取り除いたり、同名のときに番号を付けたりする。返ってきた値が保存された名前になる。

制限

  • Notes API にはサーバー側の全文検索が無い。search_notes は呼ぶたびに全ノートの本文を取得するので、ノートが多いと遅くなる。

  • 添付ファイル(画像など)は扱わない。

  • stdio で動くので、同じマシンで動く MCP クライアントからしか使えない。claude.ai の web 版やモバイルアプリからは使えない。

  • delete_note で消したノートは、Nextcloud の Deleted files アプリが有効ならゴミ箱から戻せる。

ライセンス

MIT。LICENSE を参照。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables managing notes through a simple MCP server, providing tools to add, retrieve, update, delete, and list notes for use with Claude Desktop.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP-compatible clients such as Claude to list, retrieve, create, update, append to, and delete Nextcloud Notes, manage categories, and read or update app settings.
      12
      MIT