mcp-ado
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-adoscan my area path for overdue or stale work items and email the assignees"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-ado
A FastMCP server for Azure DevOps. It scans your team's work items (by area path), flags anything overdue or stale (not updated in N days), and returns them grouped by assignee.
It also drills into a stalled item (comments, link graph, revision history), reports what is blocking it, reads and writes wiki pages, and can comment on / update / create work items — with writing off by default and gated twice.
Note (2026-08-12): e-mail/notification delivery was removed. Earlier versions could send each assignee an HTML reminder from your own mailbox via delegated Microsoft Graph; the
preview_notificationsandsend_notificationstools, themailermodule, theMAIL_*/ENABLE_SEND/TENANT_IDsettings and theazure-identity*dependencies are all gone. This server talks to Azure DevOps only and sends nothing.scanstill returns the flagged items grouped by assignee, so a caller can decide what to do with them.
How it works
ADO — a WIQL query returns open (non-done) items
UNDERyour area path using a PAT (Work Items → Read). Fields are batch-fetched.Flagging — an item is flagged if its Due/Target date is past, or its
ChangedDateis older thanSTALE_DAYS. Results are grouped by assignee and returned to the caller.
Related MCP server: Azure DevOps MCP Server
Setup
git clone https://github.com/rajivdatta/mcp-ado.git
cd mcp-ado
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
Copy-Item .env.example .env # then edit .env
Copy-Item targets.example.json targets.json # optional, see belowFill in .env:
ADO_ORG_URL,ADO_PROJECT,ADO_AREA_PATH,ADO_PATSTALE_DAYS(default 7), optionalADO_WORK_ITEM_TYPES/ADO_EXCLUDE_STATESADO_ITERATION_PATH— optional;@currentauto-detects the sprint whose start/finish dates contain todayTRACK_PEOPLE— optional CSV of assignee emails; when set, only those people's items are flagged. Blank = everyone.ENABLE_WRITE— master kill-switch for all writes, default off
Not sure of your area path? After setting org/project/PAT, call
list_area_paths to print the tree.
Getting the ADO personal access token
A PAT is the credential this server uses to talk to Azure DevOps. Grant the narrowest scope for the tools you actually intend to use — there is no reason to hand it Full access:
You want | Scopes to grant |
Monitoring / |
|
|
|
|
|
|
|
|
|
Read-only is the right default: with ENABLE_WRITE=false (the shipped value)
the write tools refuse before making any request, so a read-only PAT loses you
nothing.
Sign in to your Azure DevOps organization:
https://dev.azure.com/YOUR_ORGOpen User settings (the icon beside your avatar, top right) → Personal access tokens. Direct link:
https://dev.azure.com/YOUR_ORG/_usersSettings/tokensClick + New Token.
Fill in the token:
Name — anything memorable, e.g.
mcp-adoOrganization — the org holding the work items. If you belong to several, a token scoped to one org will not work against another.
Expiration — pick the shortest window you'll tolerate re-issuing.
Under Scopes, choose Custom defined, then expand Work Items and tick Read. Leave everything else unchecked.
Click Create, then copy the token immediately — Azure DevOps shows it exactly once and you cannot retrieve it afterwards.
Paste it into
.envasADO_PAT=..., then verify with thetest_connectiontool, which reports the open-item count on success.
.env is listed in .gitignore, so the token stays out of git. Keep it that
way — a PAT is a bearer credential, so anyone holding it has your read access
until it expires or you revoke it.
When it stops working. PATs expire, and an expired or revoked token fails
every call. If test_connection starts returning an authentication error — or
an HTML sign-in page instead of JSON — re-issue the token at the same
Personal access tokens page and update .env. Two other causes worth
ruling out: the token was scoped to a different organization than
ADO_ORG_URL, or it lacks the Work Items → Read scope. Some organizations
also restrict who may create PATs at all; if + New Token is unavailable,
your Azure DevOps administrator has to permit it.
The PAT is now the server's only credential — with e-mail removed there is no second sign-in path and no Graph token.
Scanning more than one team
Drop a targets.json next to server.py to scan several
project/area/iteration combinations in one pass (org + PAT stay global in
.env):
[
{ "name": "Data", "project": "YOUR_PROJECT",
"area_path": "YOUR_PROJECT\\Your Team", "iteration_path": "@current" }
]Items are de-duplicated by id across targets, and a person with flagged items
in several targets is reported once, with their items merged into a single
group. Without targets.json, the
ADO_PROJECT / ADO_AREA_PATH / ADO_ITERATION_PATH env values are used as a
single target.
Tools
Read-only
Tool | Purpose |
| Show the resolved scan targets |
| Verify PAT + config, show open-item count |
| Print area-path tree for a project |
| Show configured vs resolved sprint ( |
| Flag overdue/stale items grouped by assignee |
| One item in full — fields, links, comments, revision history |
| Blocked items and what is blocking them |
| Wiki page hierarchy |
| One wiki page's markdown (+ etag) |
Changes something — each gated twice
Tool | Needs | Purpose |
|
| Post a discussion comment |
|
| Change state / assignee / dates / any field |
|
| Create an item, optionally under a parent |
|
| Write a wiki page |
Safety model. Nothing in Azure DevOps changes unless you opt in twice: the
.env master switch (ENABLE_WRITE, default off) and an explicit
confirm=True on the call. Extra guards:
update_work_itemandcreate_work_itemacceptvalidate_only=True, which asks Azure DevOps to validate the change and save nothing — a real dry run against the server, usable even withENABLE_WRITE=false.create_or_update_wiki_pagealways reads the page first and reports what would change. Overwriting an existing page also needsallow_overwrite=True, because the whole page is replaced, not merged — and the response echoes the previous content so an unwanted overwrite is recoverable.Nothing leaves your machine except Azure DevOps API calls — there is no mail path and no second credential.
Drilling into a stalled item
scan returns a dozen summary fields per item — enough to flag it, not enough
to explain it. get_work_item adds the discussion, the parent/child chain, and
a per-revision changelog, so you can tell a genuinely untouched item from one
being nudged without progress:
scan(only_flagged=True) → get_work_item(id=33740, include_history=True)blocked_items answers the related question — is this stalled because of
someone else? It reports items whose state/tags declare them blocked, plus
items with an unfinished predecessor link, naming the blocker. Chasing an
assignee whose work is gated on another open item wastes everyone's time, so
check this before acting on a scan result.
Suggested flow
test_connection → scan → get_work_item / blocked_items on anything flagged
Register with Claude
Add to your MCP config (claude_desktop_config.json for Desktop, or via
claude mcp add for Claude Code):
{
"mcpServers": {
"ado": {
"command": "C:\\path\\to\\mcp-ado\\.venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\mcp-ado\\server.py"]
}
}
}Notes
Scheduling. For a recurring check, ask Claude to run
scanon a schedule, or drive it from Windows Task Scheduler with a small script that importsserver.pyand callsscan().Dates are compared in UTC.
Dependencies are now just
mcp,requestsandpython-dotenv. Theazure-identity/azure-identity-brokerpackages existed only for the Graph mail sign-in and were dropped; you can prune them from an existing.venvwithpip uninstall azure-identity azure-identity-broker.
This server cannot be deployed
Maintenance
Related MCP Connectors
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for Appcircle mobile CI/CD platform.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Related MCP Servers
- AlicenseBqualityCmaintenanceAn MCP server for Azure DevOps that allows users to manage work items, sprints, iterations, and attachments. It supports custom WIQL queries and includes pre-defined prompts for common tasks like sprint planning, bug reporting, and daily standup generation.365 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server that enables AI assistants to manage Azure DevOps resources including Work Items, Git repositories, pipelines, and user identities.19 npmMIT
- FlicenseBqualityDmaintenanceAn MCP server that enables AI assistants to interact with Azure DevOps projects, work items, repositories, pipelines, wikis, and more via 21 tools.21-
- FlicenseNot gradedqualityDmaintenanceMCP server that provides tools to interact with Azure DevOps, including querying work items, repositories, pull requests, builds, commits, and creating work items via a standardized interface.-