mcp-devdiary
Collects the user's GitHub commits and pull requests via the GitHub REST API and exposes them as weekly commit statistics, combined activity reports, timelines, enriched weekly reports, resume bullet data, and pattern insights.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-devdiary
An MCP server that automatically collects your GitHub activity and AI agent sessions to generate structured weekly work logs.
Automatically collects commits, PRs, Claude Code sessions, and Codex entries
Generates weekly reports, timelines, and insights from your development activity
Produces resume-ready bullet points from accumulated work data
Free and open-source, runs locally on your machine
You can think of mcp-devdiary as a personal engineering diary that writes itself. It connects to your GitHub and local AI agent history, then serves structured data via MCP so that Claude can summarize your week, spot patterns, and draft resume bullets for you.
MCP Tools
mcp-devdiary exposes 7 tools through the Model Context Protocol:
Tool | Description |
| Fetch weekly GitHub commits with statistics |
| Combined weekly activity (commits + PRs + agent sessions) |
| Multi-week activity data for resume bullet generation |
| Claude Code and Codex session history |
| Unified chronological timeline of all activity |
| Full report data with few-shot examples and format guide |
| Pattern analysis with actionable suggestions |
Related MCP server: work-tracker
Quick Start
Prerequisites
Python 3.12+
uv (recommended) or pip
A GitHub Personal Access Token with
repoandread:userscopes
1. Install via uvx (Recommended)
uvx --from git+https://github.com/JaehaSS/mcp-devdiary.git mcp-devdiary2. Or clone and install manually
git clone https://github.com/JaehaSS/mcp-devdiary.git
cd mcp-devdiary
uv sync3. Configure environment
cp .env.example .envEdit .env and add your GitHub token:
GITHUB_TOKEN=ghp_your_token_here
GITHUB_USERNAME=your-github-username4. Run the server
uv run mcp-devdiaryIntegration with MCP Clients
Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"mcp-devdiary": {
"command": "uvx",
"args": ["--from", "git+https://github.com/JaehaSS/mcp-devdiary.git", "mcp-devdiary"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here",
"GITHUB_USERNAME": "your-username"
}
}
}
}Claude Code
Add to your Claude Code MCP settings (.claude/settings.json or project-level):
{
"mcpServers": {
"mcp-devdiary": {
"command": "uvx",
"args": ["--from", "git+https://github.com/JaehaSS/mcp-devdiary.git", "mcp-devdiary"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here",
"GITHUB_USERNAME": "your-username"
}
}
}
}Cursor
Add to your Cursor MCP configuration file:
Global:
~/.cursor/mcp.jsonProject-level:
.cursor/mcp.json
{
"mcpServers": {
"mcp-devdiary": {
"command": "uvx",
"args": ["--from", "git+https://github.com/JaehaSS/mcp-devdiary.git", "mcp-devdiary"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here",
"GITHUB_USERNAME": "your-username"
}
}
}
}Or go to Cursor Settings → Tools & Integrations → New MCP Server and add the command manually.
Windsurf
Add to your Windsurf MCP configuration file:
macOS/Linux:
~/.codeium/windsurf/mcp_config.jsonWindows:
%USERPROFILE%\.codeium\windsurf\mcp_config.json
{
"mcpServers": {
"mcp-devdiary": {
"command": "uvx",
"args": ["--from", "git+https://github.com/JaehaSS/mcp-devdiary.git", "mcp-devdiary"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here",
"GITHUB_USERNAME": "your-username"
}
}
}
}VS Code (GitHub Copilot)
Create or edit .vscode/mcp.json in your workspace root:
{
"servers": {
"mcp-devdiary": {
"command": "uvx",
"args": ["--from", "git+https://github.com/JaehaSS/mcp-devdiary.git", "mcp-devdiary"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here",
"GITHUB_USERNAME": "your-username"
}
}
}
}Or use the command palette: MCP: Open User Configuration to add the server globally.
Antigravity (Google)
Add to your Antigravity MCP configuration file:
macOS/Linux:
~/.gemini/antigravity/mcp_config.jsonWindows:
%USERPROFILE%\.gemini\antigravity\mcp_config.json
{
"mcpServers": {
"mcp-devdiary": {
"command": "uvx",
"args": ["--from", "git+https://github.com/JaehaSS/mcp-devdiary.git", "mcp-devdiary"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here",
"GITHUB_USERNAME": "your-username"
}
}
}
}Or open the Agent Panel → "…" dropdown → MCP Servers → Manage MCP Servers → View raw config to edit directly.
Zed
Add to your Zed settings (zed: open settings):
{
"context_servers": {
"mcp-devdiary": {
"source": "custom",
"command": {
"path": "uvx",
"args": ["--from", "git+https://github.com/JaehaSS/mcp-devdiary.git", "mcp-devdiary"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here",
"GITHUB_USERNAME": "your-username"
}
}
}
}
}Usage Examples
Once connected, you can ask Claude:
"Summarize my work this week" — Uses
get_enriched_weekly_reportto generate a structured weekly summary"What did I do last week?" — Uses
get_weekly_activitywithweek_offset=-1"Generate resume bullets for the past month" — Uses
get_activity_for_resumewithweeks_range=4"Show me my coding patterns" — Uses
get_weekly_insightsto analyze activity patterns"Show my timeline for this week" — Uses
get_weekly_timelinefor a chronological view
Data Sources
Source | What's collected | How |
GitHub | Commits, Pull Requests | GitHub REST API via PyGitHub |
Claude Code | Session history (prompts, messages, tool usage) | Local |
Codex | CLI interaction history | Local |
All data stays local. This server reads from your local machine and GitHub API only. No data is sent to any third-party service.
Environment Variables
Variable | Required | Description |
| Yes | GitHub Personal Access Token |
| No | Default GitHub username |
| No | Custom Claude Code sessions path (default: |
| No | Custom Codex history path (default: |
| No | Weekly report output directory (default: |
Project Structure
mcp-devdiary/
├── src/work_journal/
│ ├── server.py # MCP server & tool handlers
│ ├── github.py # GitHub API integration
│ ├── session_parser.py # Claude Code session parser
│ ├── codex_parser.py # Codex history parser
│ ├── timeline.py # Unified timeline builder
│ ├── insights.py # Pattern analysis & insights
│ ├── few_shot.py # Few-shot example loader
│ ├── formatter.py # Markdown output formatter
│ └── config.py # Configuration management
├── tests/ # Test suite (109 tests)
├── reports/ # Generated weekly reports
├── pyproject.toml
└── .env.exampleDevelopment
# Install dev dependencies
uv sync --group dev
# Run tests
uv run pytest
# Run tests with verbose output
uv run pytest -vTech Stack
FastMCP — MCP server framework
PyGitHub — GitHub API client
python-dotenv — Environment variable management
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
MCP-native notes and memory for ChatGPT, Claude, and other AI tools.
Private persistent memory for Claude, ChatGPT & Gemini via MCP - semantic search, zero-code setup.
Related MCP Servers
- AlicenseAqualityDmaintenanceTurns raw GitHub commit history into a categorized, human-readable changelog directly inside Claude or any MCP-compatible client.3MIT
- AlicenseNot gradedqualityCmaintenanceAutomatically tracks AI-assisted work sessions, code changes, and commands in Claude Code or Codex CLI, and provides daily stats, weekly reports, and data export through MCP tools.23 npmMIT
- FlicenseNot gradedqualityDmaintenanceProvides persistent local memory of Claude Code sessions with TODO management and searchable activity logs via MCP tools.-
- AlicenseNot gradedqualityBmaintenanceEnables Claude and any MCP client to store long-term memory as plain Markdown in the user's own private GitHub repo, with hybrid semantic search, a knowledge graph, auto-memory, and commit history. It also keeps working state alive across context compaction through core memory, hook-driven checkpoints, and a resume tool available in any client.1MIT