dev-diary-mcp
dev-diary-mcp
Markdownファイルのプレーンなフォルダを、LLMが読み書きできる検索可能な作業日誌に変えるModel Context Protocolサーバーです。
データベースもアプリも不要。あなたの作業ログは単なるdiary/2026-08-22.md — 人間が読めて、diffも取れて、gitとも相性抜群 — そしてAIアシスタントには4つのツールが提供されます:
ツール | 機能 |
| 今日のファイルにタイムスタンプ付きのエントリ(タグ付き)を追記 |
| 全エントリの全文検索、タグによるフィルタリングも可能 |
| 指定した日のログをすべて要約 |
| 合計、アクティブ日数、現在の連続記録、トップタグ |
なぜ作ったのか
「今日やったこと」を記録するのは、誰もが1週間で挫折するタスクです。しかし、あなたのAIアシスタントは、あなたがやったことをすでに知っています。Markdownフォルダに対してツールを提供すれば、作業日誌の記録はAIと一緒に働くことの副産物になります。
デモを実行する
このリポジトリには実際の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 installed
Maintenance
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
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Securely search and manage workspace context files for AI agents and teams.
Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/rogeriolaa/dev-diary-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server