longterm-planner-mcp
Links Git commits and branch names to planning tasks by parsing task references, enabling automatic commit-to-task association.
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.
longterm-planner-mcp
A Model Context Protocol (MCP) server for long-term planning management in Claude Code. Track plans, tasks, goals, and progress across coding sessions with persistent SQLite storage.
Features
Persistent Planning - SQLite database stores plans and tasks across sessions
Task Management - Full lifecycle: backlog → ready → in_progress → review → completed
State Machine - Enforced status transitions prevent invalid task states
Task Dependencies - Define blocking relationships with circular dependency detection
Plan Templates - 10 built-in templates for common project types (web apps, APIs, etc.)
Search & Filter - Find tasks across plans by text, status, priority, dates, tags, assignee
Task Tags - Categorize tasks with custom labels for organization
Task Comments - Add timestamped notes and updates to tasks
Bulk Operations - Update status, priority, tags, or delete multiple tasks at once
Progress Tracking - Track estimated vs actual hours, completion stats
Git Integration - Link commits to tasks via branch names or commit messages
Export/Import - Export plans to JSON or Markdown, import from JSON
Session Continuity - Pick up where you left off with context preservation
Backup & Restore - Automated backups with rotation
Related MCP server: claude-memory
When to Use
Worth it for:
Multi-session projects where context is lost between conversations
Team handoffs - persisted state others can pick up
Complex features with many task dependencies
Audit trail of decisions and progress
Overhead for:
Single-session tasks (Claude Code's built-in TodoWrite is lighter)
Solo work where you remember context
Simple bug fixes or quick features
Roadmap
Auto-summarize progress when starting a new session
Deeper git integration (auto-link commits to tasks)
Session continuity prompts ("Last time you were working on X...")
Time tracking and estimates vs actuals reporting
Installation
For Claude Code
Add to your ~/.claude/settings.json:
{
"mcpServers": {
"planning": {
"command": "npx",
"args": ["-y", "longterm-planner-mcp"]
}
}
}Restart Claude Code to load the server.
Standalone
npx longterm-planner-mcpOr install globally:
npm install -g longterm-planner-mcp
longterm-planner-mcpUsage
Once installed, Claude Code gains access to planning tools, resources, and prompts.
Quick Start
Create a plan for my current project with tasks for the authentication featureClaude will use the MCP tools to:
Create a plan linked to your project
Add tasks for the feature
Track progress as you work
Example Workflow
# Start a planning session
> Let's plan the user authentication feature
# Claude creates plan and tasks via MCP tools
# Start working on a task
> I'm starting work on the login form task
# Claude marks task as in_progress
# Complete the task
> The login form is done, tests passing
# Claude moves task to completed, logs progressTools
Plan Management
Tool | Description |
| Create a new plan for a project |
| Get plan details by ID |
| Update plan name, description, dates |
| List all plans, optionally filter by project |
| Archive a completed plan |
| Activate a draft plan |
Task Management
Tool | Description |
| Add a task to a plan |
| Update task properties |
| Begin working on a task |
| Mark task as completed |
| Mark task as blocked with reason |
| Remove blocker from task |
| Submit task for review |
| Find tasks in a plan with filters |
| Get all blocked tasks |
| Get plan progress statistics |
| Remove a task |
Templates
Tool | Description |
| List available plan templates |
| Create a plan from a template |
Built-in templates: web-app, rest-api, cli-tool, library, bug-fix, feature, project-kickoff, sprint, release, migration
Dependencies
Tool | Description |
| Add a dependency between tasks |
| Remove a dependency |
| Get task dependencies |
| Get full dependency chain |
| Check if task can start |
Search & Filter
Tool | Description |
| Search tasks with text and filters |
| Search plans by name/status |
| Find tasks past due date |
| Find tasks due within N days |
| Get task statistics |
Export/Import
Tool | Description |
| Export plan to JSON or Markdown |
| Import plan from JSON |
Tags
Tool | Description |
| Add a tag to a task |
| Remove a tag from a task |
| Set all tags for a task |
| Get all unique tags in a plan |
| Find tasks by tag |
Bulk Operations
Tool | Description |
| Update status for multiple tasks |
| Update priority for multiple tasks |
| Set assignee for multiple tasks |
| Add tag to multiple tasks |
| Remove tag from multiple tasks |
| Delete multiple tasks |
Comments
Tool | Description |
| Add a comment to a task |
| List comments for a task |
| Update a comment |
| Delete a comment |
| Get recent comments in a plan |
Session
Tool | Description |
| Get project planning context at session start |
Example output:
Last session: 2d ago
Auth System: 5/12 (42%)
active: Login form, OAuth setup
blocked: DB migration
ready: 3 task(s)
Last: Completed login validation (2d ago)Resources
Access plan data via MCP resources:
URI | Description |
| Summary of all active plans |
| Kanban board view of tasks |
| Progress statistics |
| All blocked tasks across plans |
| Blocked tasks for a specific plan |
| Tasks to focus on today |
Prompts
Pre-built prompts for common planning scenarios:
Prompt | Description |
| Start a focused planning session |
| Review yesterday's progress, plan today |
| Weekly progress review and planning |
| Break down a large task into subtasks |
| Reflect on completed work |
| Strategize solutions for blocked tasks |
| Re-prioritize backlog tasks |
| Evaluate if plan scope is realistic |
Data Storage
Plans are stored in SQLite at .claude/planning/plans.db within each project directory. This keeps planning data isolated per project and version-controllable if desired.
Upgrading from v0.2.9 or earlier
Previous versions stored all plans in a global database at ~/.claude/planning/plans.db. Version 0.2.10+ automatically migrates your data:
Update the package: Just restart Claude Code - it uses
npx -ywhich fetches the latest versionMigration runs automatically: On first startup, existing plans are copied to their respective project directories
Global database archived: The old database is renamed to
plans.db.migratedas a backup
No action required - the migration is seamless and preserves all your data.
Schema
plans - Project plans with status, dates, context
tasks - Tasks with status, priority, estimates, tags, assignments
task_comments - Timestamped comments on tasks
goals - High-level goals (hierarchical)
objectives - Measurable objectives under goals
milestones - Time-bound checkpoints
dependencies - Task/goal dependencies
blockers - Issues blocking progress
progress_logs - Activity history
sessions - Planning session tracking
Task States
Tasks follow a defined state machine:
┌──────────┐
│ CANCELLED│
└──────────┘
↑
┌────────┐ ┌───────┐ │ ┌─────────────┐ ┌────────┐ ┌───────────┐
│BACKLOG │ → │ READY │ ─┼→ │ IN_PROGRESS │ → │ REVIEW │ → │ COMPLETED │
└────────┘ └───────┘ │ └─────────────┘ └────────┘ └───────────┘
│ ↓ ↑
│ ┌─────────┐
└────│ BLOCKED │
└─────────┘Valid transitions:
backlog→ready,cancelledready→in_progress,backlog,cancelledin_progress→review,blocked,cancelledblocked→in_progress,cancelledreview→completed,in_progress,cancelled
Git Integration
Link commits to tasks automatically:
Via Commit Message
git commit -m "Add login validation #task-abc123"Via Branch Name
git checkout -b feature/task-abc123-login-formThe server parses task references and links commits for traceability.
Programmatic Usage
import {
PlanningServer,
Database,
PlanRepository,
TaskService
} from 'longterm-planner-mcp';
// Use the server
const server = new PlanningServer({
dbPath: './my-plans.db'
});
await server.start();
// Or use components directly
const db = new Database('./plans.db');
const planRepo = new PlanRepository(db);
const plan = planRepo.create({
projectPath: '/my/project',
name: 'My Plan'
});Configuration
Environment variables:
Variable | Description | Default |
| Database file path |
|
Development
# Clone the repo
git clone https://github.com/artpar/longterm-planner-mcp
cd longterm-planner-mcp
# Install dependencies
npm install
# Run tests
npm test
# Build
npm run build
# Run locally
npm startTesting
# Run all tests
npm run test:run
# Watch mode
npm test
# Coverage
npm run test:coverageRequirements
Node.js >= 18.0.0
Claude Code (for MCP integration)
License
MIT
Contributing
Contributions welcome! Please read the contributing guidelines and submit PRs.
Related
Model Context Protocol - MCP specification
Claude Code - AI coding assistant
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
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Cross-tool persistent memory and context for AI assistants over MCP.
System-of-record notebook for AI coding agents: pages, datastores, tasks, skills over MCP.
Project management shared by people and AI agents, with persistent project state through MCP.
Related MCP Servers
- AlicenseAqualityDmaintenancePersistent, cross-session task management for Claude Code. 24 MCP tools for tasks, projects, dependencies, and docs. 7 skills for planning, standups, and handoffs. Event-sourced storage with per-project isolation.5MIT
- FlicenseNot gradedqualityDmaintenanceProvides memory and project tracking for Claude Code via MCP, enabling semantic search over past transcripts, durable notes, and structured project management with milestones, epics, tickets, and todos.-
- FlicenseAqualityBmaintenanceEnables coding agents to track and coordinate project work through a shared SQLite ledger, including task plans, session ancestry, claims, work locations, blockers, and commits via MCP tools.9-
- AlicenseNot gradedqualityBmaintenanceGives Claude Code sessions a durable, shared memory and work ledger backed by a local SQLite database, exposing the brain_* tools so agents can create and lock goals with verifiable success criteria, plan and track work units, record evidence and failures, and search decisions, learnings and project knowledge. Because the tool descriptions carry the operating rules, every session in every project reads and writes the same accumulating context instead of starting from scratch.MIT