backlog-mcp
backlog-mcp is an MCP server that gives AI agents structured read/write access to a story-based project backlog backed by plain markdown files in a requirements/ directory, with Git for versioning and collaboration.
Read operations:
list_stories— List stories with optional filtering by epic ID or status (draft,in-progress,done,blocked)get_story— Fetch full markdown content and metadata for a specific storyget_index_summary— High-level overview of all epics and story counts by status
Write operations:
set_story_status— Update a story's status in the index and backlog filesadd_story_note— Append a timestamped note to a story (for decisions, progress, or blockers)complete_story— Mark a story as done with a mandatory completion summarycreate_epic— Create a new epic with an auto-assignedEPIC-NNNID and optional descriptioncreate_story— Add a new story under an existing epic with an auto-assignedSTORY-NNNIDset_acceptance_criteria— Replace a story's acceptance criteria with a checklist (idempotent)
Deployment & collaboration:
Installable via Go or as a binary; configurable via
BACKLOG_ROOTandBACKLOG_TRANSPORT(stdioorhttp) environment variablesAll data lives in plain markdown files committable to Git, enabling multi-agent collaboration through standard Git workflows
Provides structured read/write access to story-based project backlogs stored as markdown files in git repositories, enabling AI agents to manage stories, update statuses, append notes, and handle collaboration through git's version control and merge capabilities.
backlog-mcp
An MCP server that gives AI agents structured read/write access to a story-based project backlog. Agents can list stories, read content, update status, and append notes — all backed by plain markdown files that live inside your project repository.
How collaboration works
There is no shared server. The backlog files live in your repo under requirements/, committed and versioned alongside your code. Collaboration between agents, or between an agent and a human, works exactly the way the rest of your codebase does: through git. If two agents update different stories concurrently, git merges them. If they touch the same line, you resolve it like any other merge conflict.
The MCP server is a local process each agent runs for itself. It reads and writes files; git handles the rest.
Related MCP server: Jira MCP
Install
Homebrew (tap)
brew tap corbym/backlog-mcp
brew install backlog-mcpYou can also install directly without an explicit tap step:
brew install corbym/backlog-mcp/backlog-mcpBinary release
Download the latest binary for your platform from the Releases page and put it somewhere on your $PATH.
Go install
If you have Go installed:
go install github.com/corbym/backlog-mcp@latestBuild from source
go mod tidy
go build -o backlog-mcp .Setup
Initialise a requirements/ folder in your project root:
./backlog-mcp init /path/to/your/project/requirementsThis creates:
requirements/
requirements-index.md # master index — source of truth for epics and story status
backlog.md # priority-ordered list of not-done stories
epic-001-example/
story-001.md # example story fileCommit the requirements/ folder to your repo. Edit the files to add your own epics and stories.
Running
./backlog-mcpThe server looks for a requirements/ directory relative to the working directory it is launched from. Claude Code sets the working directory to the project root, so no configuration is needed.
Create a plan file
./backlog-mcp plan [name]Creates a new plan scaffold in the requirements/ directory. Without a name the file is plan.md; with a name it is plan-<name>.md. If the file already exists a numeric suffix is added (plan-002.md, etc.). Open the file and work with your agent to fill it in before creating stories.
Configuring your MCP client
Prefer a local config file committed to your project root. This scopes the server to the project and means any agent cloning the repo gets the right setup automatically. Only use a global config if you want backlog-mcp available in every project without per-project configuration.
VS Code / GitHub Copilot — add .vscode/mcp.json to your project root:
{
"servers": {
"backlog-mcp": {
"command": "/path/to/backlog-mcp",
"type": "stdio"
}
}
}Claude Code — add .claude/settings.json to your project root:
{
"mcpServers": {
"backlog-mcp": {
"command": "/path/to/backlog-mcp"
}
}
}For a global fallback (applies to every project), place the same config in ~/.claude/settings.json (Claude Code) or add it to VS Code's user settings.json under the mcp.servers key (GitHub Copilot). Always prefer the local per-project file.
Tools
Tool | Description |
| List stories, optionally filtered by |
| Get full markdown content and metadata for a story, including |
| High-level epic/story counts by status |
| Create a new epic — assigns next EPIC-NNN ID, writes epic file, registers in index |
| Create a new story under an epic — assigns next STORY-NNN ID, registers in index and backlog |
| Update epic lifecycle status with completion and regression guards (see below) |
| Update story status ( |
| Replace the acceptance criteria section of a story (idempotent) |
| Tick a single acceptance criterion |
| Append a timestamped note to a story file |
| Mark a story done with a mandatory completion summary and acceptance criteria validation |
| Reconcile an epic's |
| Update multiple acceptance-criteria checkbox states for one story in one call |
| Update multiple stories in one call (status, note, and/or acceptance criteria patches) |
| Update multiple epics in one call (status and/or note) |
set_epic_status guards
Setting status to done requires:
summary— a completion note, appended as a timestamped entry to the epic file.All stories done — if any stories are still open the call fails and lists them. Pass
override_incomplete=trueonly after the user explicitly confirms the incomplete stories are intentionally omitted.
Moving backwards (e.g. done → in-progress, in-progress → draft) triggers a regression prompt: the agent should offer to create new stories before proceeding. Pass confirm_regression=true only if the user explicitly insists on skipping that step. blocked and deferred are lateral states and can be set freely.
complete_story guards
Acceptance criteria must be set (not the default placeholder) before a story can be completed. Unchecked criteria block completion unless incomplete_items is provided with one explanation per unchecked item. Tick done criteria [x] via set_acceptance_criteria first — do not use incomplete_items to confirm work that is actually finished.
Environment variables
Variable | Required | Default | Description |
| no |
| Override the path to the requirements directory |
File format
requirements-index.md — one epic section per heading, one story per table row:
## EPIC-001: Combat System — `draft`
| Story | Title | Status | Type |
|-------|-------|--------|------|
| [STORY-001](./epic-001-combat-system/story-001.md) | Basic combat | draft | feature |backlog.md — priority-ordered numbered list:
1. **STORY-001** — Basic combat
2. **STORY-002** — Enemy AI *(in-progress)*Story files live at epic-NNN-slug/story-NNN.md under BACKLOG_ROOT.
Story types: feature, bug, chore, spike
Status values: draft, in-progress, done, blocked, deferred
Automated PR backlog agent
A GitHub Actions workflow is included that automatically updates story statuses and appends notes when pull requests are opened or updated. It requires no API keys — only the standard GITHUB_TOKEN.
How it works
On every pull_request event (opened, synchronize) the workflow:
Installs the
backlog-mcpbinary viago install github.com/corbym/backlog-mcp@latest.Scans the PR title and branch name for
STORY-NNNIDs.For each matched story, sets status to
in-progress(if it wasdraftand the PR was just opened) and appends a timestamped note with the PR number and title.Commits any changed files under
requirements/back to the PR branch.
Setting it up in your repository
Copy these three files into your repo:
.github/
actions/
install/
action.yml # composite action — installs the binary via go install
scripts/
backlog_agent.py # deterministic MCP client (Python 3, stdlib only)
workflows/
backlog-agent.yml # the workflowThe files are in the corbym/backlog-mcp repository. No secrets or additional configuration are required beyond a requirements/ folder already being present.
Branch and PR naming
The agent matches stories by STORY-NNN ID. Include the ID in your branch name or PR title:
story-042-short-description # branch
STORY-042: Short description # PR title
STORY-042 STORY-043: Short desc # multiple stories
chore: bump goreleaser to v2 # no story — agent skips cleanlySee CONTRIBUTING.md for the full convention.
Using backlog-mcp with GitHub Copilot agent mode
GitHub Copilot's agent mode in VS Code reads MCP servers from .vscode/mcp.json in your project root. Note the key is "servers", not "mcpServers" (which is the Claude Code convention):
{
"servers": {
"backlog-mcp": {
"command": "/path/to/backlog-mcp",
"type": "stdio"
}
}
}MCP tools are only available in Agent mode — switch to it via the mode dropdown in Copilot Chat. Once configured, Copilot agent can call list_stories, get_story, add_story_note, and all other backlog tools during a chat session — the same tools the GitHub Actions workflow uses.
Notes
File writes are atomic (temp file + rename) — a crash mid-write cannot corrupt your files.
The filesystem is the source of truth. The MCP server never owns the data.
Available Tools
16 toolsadd_story_noteADestructive
Append a timestamped note to a story file. Use to record progress, decisions made, or blockers encountered. Notes are appended under a '## Notes' section with an ISO 8601 timestamp. Returns {story_id, appended_at, path}.
Inputs: note (required), story_id (required).
bulk_update_acceptance_criteriaADestructive
Update the checked state of individual acceptance criteria on a story in one operation. Only the criteria explicitly listed are modified; all others are left untouched. Criteria are matched by exact text. If any criterion text is not found, no changes are made and an error is returned. Returns {story_id, path, criteria_updated, errors}. Call get_story separately if you need to see the resulting content.
Inputs: criteria (required), story_id (required).
bulk_update_epicsADestructive
Update multiple epics in one operation. Each entry may set status and/or append a note. Updates are applied atomically per file. If an epic does not exist, an error is recorded for that entry and processing continues. Returns an array of per-epic result objects with fields: epic_id, status_updated, old_status, new_status, note_appended, errors.
Inputs: updates (required).
bulk_update_storiesADestructive
Update multiple stories in one operation. Each entry may set status, append a note, and/or patch acceptance criteria. Updates are applied atomically per file. If a story does not exist, an error is recorded for that entry and processing continues. Returns an array of per-story result objects with fields: story_id, status_updated, old_status, new_status, note_appended, criteria_updated, criteria_errors, errors.
Inputs: updates (required).
check_acceptance_criterionADestructive
Mark a single acceptance criterion as checked (- [ ] → - [x]) in a story file. Identify the target by criterion_index (0-based) or criterion_text (case-insensitive exact match). Exactly one must be provided. Returns {story_id, criterion, checked, path}. Errors if the story is not found, the criterion is not found, or it is already checked.
Inputs: story_id (required), criterion_text, criterion_index.
complete_storyADestructive
Mark a story done and append a mandatory completion summary note in one atomic call. Validates acceptance criteria before completing: if the AC section has not been set (contains only the placeholder), completion is blocked — call set_acceptance_criteria first. IMPORTANT: if a criterion is actually done, mark it [x] in the story file via set_acceptance_criteria BEFORE calling this tool — do not leave it unchecked. If criteria remain unchecked (genuinely not done), incomplete_items is required with one explanation per unchecked item explaining WHY it was not completed (e.g. deferred, out of scope). incomplete_items is for unfinished work only — never use it to confirm completed work. On success, removes the story from backlog.md and returns {story_id, completed_at, backlog_removed}.
Inputs: summary (required), story_id (required), incomplete_items.
create_epicADestructive
Create a new epic. Assigns the next EPIC-NNN ID, creates the epic directory and epic.md file, and registers it in requirements-index.md with status draft. Returns {epic_id, path}.
Inputs: title (required), description.
create_storyADestructive
Create a new story under an existing epic. Assigns the next STORY-NNN ID, writes the story file, and registers it in requirements-index.md and backlog.md with status draft. The story is appended to the end of the backlog. Returns {story_id, path}.
Inputs: title (required), epic_id (required), story_type, description.
get_index_summaryADestructive
Get a high-level summary of all epics and their story counts broken down by status. Useful for situational awareness at the start of a session, without reading every file. Returns an array of {epic_id, title, status, counts: {status: n}, stories: [{story_id, status}]}.
Inputs: no named parameters.
get_storyADestructive
Get the full markdown content and metadata for a single story. Returns {story_id, title, status, epic_id, path, content} where content is the raw markdown of the story file. Set include_notes=false to omit the '## Notes' section (and everything after it) from content — use this when you only need current status, goal, or acceptance criteria and want to avoid paying for a long accumulated note history.
Inputs: story_id (required), include_notes.
groom_epicADestructive
Reconcile the ## Stories section in an epic.md file with the story files on disk and the requirements index. Adds missing entries, removes entries for story files that no longer exist, and refreshes titles and done/undone markers. Returns {epic_id, added, removed, updated, unchanged}.
Inputs: epic_id (required).
list_storiesADestructive
List stories from the project index, optionally filtered by epic, status, or type. Returns an array of {story_id, title, status, epic_id, story_type} objects. With no filters, returns all stories across all epics. Other tools in this server: get_story, get_index_summary, create_epic, create_story, set_story_status, set_epic_status, add_story_note, set_acceptance_criteria, check_acceptance_criterion, complete_story, bulk_update_stories, bulk_update_epics, bulk_update_acceptance_criteria, groom_epic, reorder_backlog.
Inputs: status, epic_id, story_type.
reorder_backlogADestructive
Reorder the active backlog by supplying the desired story ID sequence. Entries present in story_ids are placed first in that order; any backlog entries omitted from the list are appended at the end so nothing is silently dropped. IDs not found in the backlog (e.g. already done) are reported in not_found but do not cause a failure. Returns {placed: [ordered story IDs written], not_found: [IDs absent from backlog], appended: [IDs moved to end because they were omitted]}.
Inputs: story_ids (required).
set_acceptance_criteriaADestructive
Replace the acceptance criteria section of a story file. Each string in the criteria array becomes a checklist line. Plain text is written as an unchecked - [ ] ... item. A string may also be passed as a full checklist line (e.g. - [x] text, [x] text, or the full stored line including an existing AC-ID) — the leading checkbox marker is stripped and its checked state is preserved, and any existing AC-ID in the input is kept rather than regenerated. Idempotent: calling again replaces the previous AC entirely. Acceptance criteria must be set before a story can be completed with complete_story. Returns {story_id, criteria_count, path}.
Inputs: criteria (required), story_id (required).
set_epic_statusADestructive
Update the lifecycle status of an epic. Use this tool to manage the epic's own status — not the status of individual stories within it (use set_story_status for that). Typical progression: draft → in-progress (when the first story starts) → done (when all stories are complete) or deferred (if the epic is postponed). Status meanings: 'draft' = epic created but no work started; 'in-progress' = actively being worked on; 'done' = all stories complete and the epic is closed; 'blocked' = progress prevented by an external dependency; 'deferred' = postponed indefinitely. Guards: (1) Setting 'done' requires a summary and checks all stories are done. If any are not done, the call fails — set override_incomplete=true only after the user explicitly confirms this is acceptable. (2) Moving backwards (e.g. done → in-progress, in-progress → draft) asks you to create new stories to justify the regression first. Set confirm_regression=true only if the user explicitly insists on skipping story creation. Returns {epic_id, old_status, new_status}.
Inputs: status (required), epic_id (required), summary, confirm_regression, +1 more.
set_story_statusADestructive
Update the status of a story to draft, in-progress, blocked, or deferred. To mark a story done, use complete_story instead — it enforces acceptance criteria, appends a summary note, and removes the story from the backlog. Returns {story_id, old_status, new_status, backlog_updated}.
Inputs: status (required), story_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools target distinct resources/actions, but there is some overlap between single-item and bulk operations (e.g., set_story_status vs. bulk_update_stories; check_acceptance_criterion vs. bulk_update_acceptance_criteria). The descriptions mitigate this by clarifying scope and validation behavior, so an agent could usually select correctly with careful reading.
Tool names consistently follow a verb_noun snake_case pattern (get_story, create_epic, set_story_status, bulk_update_epics, reorder_backlog). Even less common verbs like groom_epic and complete_story fit the same pattern, making the naming convention predictable and coherent.
Sixteen tools is slightly above the typical well-scoped range, but the server covers epics, stories, statuses, acceptance criteria, notes, batching, and backlog ordering. A few bulk operations feel redundant with single-item variants, but overall the count is still appropriate for the domain.
The set covers creation, reading, status updates, acceptance criteria management, note-taking, completion, grooming, and reordering. However, there are notable gaps: no way to delete or truly edit an epic/story, no dedicated tool to fetch a single epic's full content, and no direct story content update beyond status/AC/notes, which agents may need for full lifecycle management.
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Project management shared by people and AI agents, with persistent project state through MCP.
One memory, every AI. A shared, user-owned markdown memory your AI clients read and write over MCP.
Minimal issue tracker: projects, objectives and trackable plans, written by agents over MCP.
Related MCP Servers
- MIT
- AlicenseBqualityDmaintenanceEnables control and interaction with Jira through the Jira Command Line interface, allowing users to manage Jira tasks and operations through natural language commands.38MIT
- AlicenseAqualityNot gradedmaintenanceEnables AI assistants to interact with Atlassian Jira Cloud, allowing users to manage projects, issues, comments, and workflows through natural language commands.61,667 npm3-
- AlicenseNot gradedqualityDmaintenanceA file-backed MCP server for hierarchical project management that enables AI assistants to create, claim, and complete tasks within a project→epic→feature→task structure, with dependency management and Markdown-based storage.MIT