Skip to main content
Glama
M5 Petit Notes

M5 Petit Notes

by PetitOnes

M5 Petit Notes

English Page

M5 Petit(や、その他のClaudeベースのエージェント)のためのメモ帳MCPサーバーです。

記憶は「思い出す」もの。メモ帳は「見返す」もの。検索して呼び出す長期記憶とは違い、開けばすぐ見える場所にmarkdownファイルとして残る、永続的なノートを提供します。参照表・リスト・調べもののまとめなど、記憶を検索し直さずにいつでも見返したいものに向いています。

Related MCP server: MCP Notes Server

機能

  • ノート一覧 — 保存されているノートの名前とサイズを一覧表示

  • ノート読み取り — 名前を指定してノートの全文を取得

  • ノート作成・上書き — markdown形式でノートを新規作成、または既存ノートを丸ごと更新

  • 追記 — 既存ノートの末尾にテキストを追加(なければ新規作成)

  • ノート削除 — 名前を指定してノートを削除

  • ファイル単位の永続化 — 1ノート=1つの.mdファイル。バックアップも人間による直接編集も簡単

必要環境

  • Python 3.10+

  • uv

セットアップ

uvが未インストールの場合は先にインストールします。

curl -LsSf https://astral.sh/uv/install.sh | sh
git clone https://github.com/PetitOnes/m5-petit-notes.git
cd m5-petit-notes
uv sync
uv run notes-mcp

環境変数

変数名

デフォルト

説明

PETIT_DATA_DIR

~/petit_data

データディレクトリのルート(m5-petit-appと共有)

CHARACTER_ID

default

キャラクターID。ノート保存先のパス決定に使う

NOTES_DIR

$PETIT_DATA_DIR/characters/<character_id>/notes

ノートファイル(.md)を保存するディレクトリ

Claude Code連携

.mcp.json(または~/.claude/settings.json)に追加します。

{
  "mcpServers": {
    "notes": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/m5-petit-notes", "notes-mcp"],
      "env": {
        "CHARACTER_ID": "petit"
      }
    }
  }
}

ツール一覧

list_notes

保存されているノートを一覧表示します(名前とサイズ)。

read_note

ノートを名前で読み取ります。

{ "name": "light_values" }

write_note

ノートを新規作成、または上書きします。markdown形式を想定しています。

{
  "name": "favorite_sounds",
  "content": "# 好きな音\n\n- 雨の音\n- 風鈴"
}

append_note

既存ノートの末尾にテキストを追記します。ノートが存在しなければ新規作成します。

{
  "name": "log",
  "content": "今日見つけたこと: ..."
}

delete_note

ノートを名前で削除します。

{ "name": "old_draft" }

開発

# 開発依存をインストール
uv sync --all-extras

# テスト実行
uv run pytest

# lint
uv run ruff check .

アーキテクチャ

m5-petit-notes/
├── src/notes_mcp/
│   ├── server.py       # MCPサーバー(list/read/write/append/delete)
│   └── __init__.py
└── tests/

License

Apache License 2.0

Available Tools

5 tools
append_noteA

Append text to an existing note. If the note doesn't exist, creates it. Use this to add entries to a list or log without rewriting the whole note.

Inputs: name (required), content (required).

delete_noteB

Delete a note by name.

Inputs: name (required).

list_notesA

List all notes in the notebook. Returns note names and their sizes. Use this to see what notes you have.

Inputs: no named parameters.

read_noteA

Read a note by name. Returns the full content. Use this to look back at something you wrote down.

Inputs: name (required).

write_noteA

Write or update a note. Creates a new note or overwrites an existing one. Use markdown format. Good for reference tables, lists, research summaries, anything you want to look back at without searching memories.

Inputs: name (required), content (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a distinct operation (append, delete, list, read, write) with no overlap. Agents can clearly differentiate them.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case (e.g., append_note, delete_note), making them predictable.

    Tool Count5/5

    5 tools is an ideal count for a notes server, covering all essential operations without being too sparse or bloated.

    Completeness5/5

    The tool set provides full CRUD operations plus listing and appending. No obvious gaps for basic note management.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A beginner-friendly MCP server for managing personal notes. Enables Claude to create, list, read, search, update, and delete notes saved as Markdown files.
      6
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      A Python-based MCP server for Claude Desktop that enables you to save, append, read, and list local text notes, including appending Claude's responses.
      5
      -
    • F
      license
      A
      quality
      D
      maintenance
      MCP server for saving, reading, and listing Markdown notes in the filesystem. Enables agents to persistently store reports or notes as plain Markdown files.
      3
      -