dev-diary-mcp
dev-diary-mcp
Markdownファイルのプレーンなフォルダを、LLMが読み書きできる検索可能な作業日誌に変えるModel Context Protocolサーバーです。
データベースもアプリも不要。あなたの作業ログは単なるdiary/2026-08-22.md — 人間が読めて、diffも取れて、gitとも相性抜群 — そしてAIアシスタントには4つのツールが提供されます:
ツール | 機能 |
| 今日のファイルにタイムスタンプ付きのエントリ(タグ付き)を追記 |
| 全エントリの全文検索、タグによるフィルタリングも可能 |
| 指定した日のログをすべて要約 |
| 合計、アクティブ日数、現在の連続記録、トップタグ |
なぜ作ったのか
「今日やったこと」を記録するのは、誰もが1週間で挫折するタスクです。しかし、あなたのAIアシスタントは、あなたがやったことをすでに知っています。Markdownフォルダに対してツールを提供すれば、作業日誌の記録はAIと一緒に働くことの副産物になります。
Related MCP server: Stoa
デモを実行する
このリポジトリには実際のMCPクライアントが同梱されており、サーバーをエンドツーエンドで駆動します(ハンドシェイク → ツール呼び出し)。エディタなしですべてを検証できます:
npm install
npm run build
npm run demo出力:
=== 1. listTools ===
• log_work — Append a timestamped entry...
• search_diary — Full-text search across every entry...
• daily_summary — Everything logged on a given date...
• stats — Totals, active days, streaks, top tags...
=== 2. log_work x3 ===
Logged to 2026-08-22.md at 19:05 (tags: bugfix, websocket)
...
=== 5. stats ===
📊 1 entries across 2 day(s)
🔥 Streak: 2 consecutive day(s)
🏷️ Top tags: #bugfix (1), #websocket (1)その後、diary/*.md を確認してください — それがあなたのデータです。プレーンなMarkdownです。
エディタ / エージェントに接続する
Claude Desktop / Cursor / その他のMCPクライアント
{
"mcpServers": {
"dev-diary": {
"command": "node",
"args": ["/absolute/path/to/dev-diary-mcp/dist/server.js"],
"env": { "DIARY_DIR": "/absolute/path/to/your/diary" }
}
}
}Hermes Agent
hermes mcp add dev-diary --command node --args /path/to/dist/server.js対話的に検査する
npx @modelcontextprotocol/inspector node dist/server.jsストレージ形式
1日1ファイル(diary/YYYY-MM-DD.md)、エントリはH2見出しにタグを埋め込んだ形式です:
## 14:32 #bugfix #websocket
Fixed the race condition in the WebSocket broadcast queue
## 16:10 #testing
Wrote E2E test covering two-client sync単なるファイルなので、grepも、バックアップも、手動編集も、コミットも自由自在。サーバーは呼び出しのたびにディスク上のデータを読み取るため、キャッシュの無効化を考える必要はありません。
仕組み(約190行のTypeScript)
公式の@modelcontextprotocol/serverSDK(2026-07-28仕様)で構築:
McpServer+registerTool(name, { description, inputSchema }, handler)— スキーマはStandard Schema準拠。このプロジェクトではZod v4を使用StdioServerTransport— エディタがプロセスを起動し、stdin/stdoutでJSON-RPC通信を行うツールハンドラは
DIARY_DIR(デフォルト:./diary)配下のMarkdownを読み書き
関連記事:「私がMCPサーバーで作業日誌を管理する方法 — 学んだすべてのこと」(このリポジトリ内にドラフトあり)
ライセンス
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Personal context for every AI: search, read, and write back to your private Markdown library.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Markdown notes in folders, with files, that your AI assistant can read, write and organise.
Markdown notes in folders, with files, that your AI assistant can read, write and organise.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceTransforms a folder of Markdown files into a structured, version-controlled knowledge base with semantic search and safe AI editing via draft branches.MIT
- AlicenseNot gradedqualityCmaintenancePersistent shared memory for AI coding agents that turns a folder of markdown files into searchable memory across sessions, repos, and machines.12 npmFunctional Source , Version 1.1, MIT Future
- AlicenseNot gradedqualityDmaintenanceGives AI agents full-text search over any Markdown/MDX documentation folder.14 npmMIT
- AlicenseNot gradedqualityCmaintenanceTurns any folder of Markdown files into a searchable, structured knowledge base for Claude Code, enabling persistent memory across sessions via tools like list, read, write, edit, search, and summarize.MIT