M5 Petit Notes
A note-taking MCP server for Claude-based agents that provides persistent markdown files for easily referable notes, supporting create, read, update, append, and delete operations.
README
M5 Petit Notes
English Page
M5 Petit(や、その他のClaudeベースのエージェント)のためのメモ帳MCPサーバーです。
記憶は「思い出す」もの。メモ帳は「見返す」もの。検索して呼び出す長期記憶とは違い、開けばすぐ見える場所にmarkdownファイルとして残る、永続的なノートを提供します。参照表・リスト・調べもののまとめなど、記憶を検索し直さずにいつでも見返したいものに向いています。
機能
- ノート一覧 — 保存されているノートの名前とサイズを一覧表示
- ノート読み取り — 名前を指定してノートの全文を取得
- ノート作成・上書き — 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.