Azure DevOps MCP Server
Click on "Install 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., "@Azure DevOps MCP ServerList the open bugs assigned to me in the current project."
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.
Azure DevOps MCP Server
Local Model Context Protocol (MCP) server for Azure DevOps Services. It exposes 68 tools for Azure Boards, Azure Repos, pull request review and lifecycle management, Azure Pipelines, team sprints/backlogs, and delivery reporting.
Read tools are enabled by default. Every mutation requires both a server-side feature flag and an explicit per-call confirmation. Pull request completion and auto-complete never bypass branch policies.
Capabilities
Azure Boards
Read work items, every field, relations, comments, and historical snapshots.
Run read-only WIQL
SELECTqueries and resolve the matching work items.Create and update work items, including state, assignee, tags, area, sprint, and custom fields.
Add, edit, and soft-delete work item comments; add parent/child/related/dependency/duplicate links and attachments up to 10 MiB.
Use an expected revision to prevent stale work item updates.
Trace a ticket to linked pull requests, commits, builds, branches, and related work items.
Read the work item's field and relation update history.
Repositories and branches
List projects, repositories, clone links, branches, and commits.
Create a branch at an exact commit.
Delete a branch only when its current object ID matches the caller's expectation.
Compare branches with ahead/behind counts and changed items.
Find stale branches while excluding protected branch names.
Pull requests and code review
List and retrieve pull requests, including direct Azure DevOps PR URLs.
Read commits, reviewers/votes, iterations, threads, comments, labels, and linked work items.
Generate bounded unified diffs locally and validate exact inline-comment targets.
Create and update PRs; switch draft state; abandon or reactivate a PR.
Add/remove reviewers and labels; create, reply to, edit, soft-delete, and resolve review comments; cast votes.
Enable policy-respecting auto-complete or merge at an exact reviewed source SHA.
Evaluate merge readiness from draft/status, merge state, votes, required reviewers, unresolved threads, policy evaluations, and PR status checks.
Produce batch review summaries and stale PR reports.
Azure Pipelines
List pipelines, runs, and builds; inspect run state/result.
Filter builds by definition, repository, branch, status, and result.
Queue or preview a run with a branch, variables, template parameters, and skipped stages.
Re-run a full pipeline using a previous run's resolved resources.
List build log records and retrieve bounded log text.
Azure DevOps REST does not expose a generic failed-job-only rerun through this implementation; rerun_pipeline queues a full run.
Sprints and backlogs
List team iterations by current, past, or future timeframe.
Get the work items and team-member capacity for a sprint.
Calculate item and story-point velocity with configurable point field and completed states.
Reorder or reparent backlog items.
Move a work item to a sprint through
update_work_itemandSystem.IterationPath.
Related MCP server: Azure DevOps MCP Server
Tool groups
Group | Count | Coverage |
Core and repository reads | 6 | Auth, projects, repositories, clone links, branch listing |
Azure Boards | 10 | Work items, WIQL, comment lifecycle, create/update, relations, attachments |
Pull requests and history | 10 | PR metadata, commits, threads, iterations, reviewers, linked work items |
Review and diff | 6 | Changed files, stats, unified diffs, inline validation, review context |
PR review and lifecycle writes | 15 | PR create/update/merge, auto-complete, comment lifecycle, votes, reviewers, labels |
Branch lifecycle | 4 | Create, delete, compare, stale branches |
Pipelines and builds | 7 | Definitions, runs, queue/rerun, logs, build filters |
Sprints and backlog | 5 | Iterations, work items, capacity, velocity, reorder |
Quality and trace reports | 5 | Merge readiness, batch/stale reports, delivery trace, audit history |
Total | 68 |
The complete input reference is in docs/tools.md.
Requirements
Node.js 20+
npm
An Azure DevOps Services organization
An Azure DevOps PAT or an Azure CLI session created with
az login
Azure DevOps Server/on-premises is not currently supported.
Quick start
git clone https://github.com/hasanozcan/azure-devops-mcp.git
cd azure-devops-mcp
npm install
Copy-Item .env.example .envEdit .env:
AZURE_DEVOPS_ORGANIZATION=your-organization
AZURE_DEVOPS_DEFAULT_PROJECT=your-project
AZURE_DEVOPS_AUTH_MODE=pat
AZURE_DEVOPS_PAT=your-token
AZURE_DEVOPS_ENABLE_WRITE_TOOLS=falseThen validate and build:
npm run doctor
npm run build
npm startThe transport is local stdio; stdout is reserved for MCP protocol messages.
Finding organization and project values
For a URL such as:
https://thecellsolutions.visualstudio.com/hpowere/_git/hpower/pullrequestsuse:
AZURE_DEVOPS_ORGANIZATION=thecellsolutions
AZURE_DEVOPS_DEFAULT_PROJECT=hpowereFor https://dev.azure.com/<organization>/<project>/..., use the first path segment as the organization and the second as the project.
Authentication and permissions
Recommended PAT permissions depend on the tools you enable:
Capability | PAT permission |
Repository, branch, commit, PR, and diff reads | Code: Read |
PR/branch/reviewer/label/comment mutations | Code: Read & write |
Work item, WIQL, comment, history, sprint-item reads | Work Items: Read |
Work item creation/update/comments/relations/attachments/backlog reorder | Work Items: Read & write |
Pipeline, run, build, and log reads | Build: Read |
Queue, preview, or rerun pipelines | Build: Read & execute |
Iteration and capacity discovery | Project and Team: Read |
Use the shortest practical PAT expiration. See docs/auth.md.
Azure CLI mode:
az loginAZURE_DEVOPS_AUTH_MODE=azcli
AZURE_DEVOPS_PAT=Configuration
Variable | Required | Default | Purpose |
| Yes | None | Organization name or Azure DevOps URL |
| No | None | Project used when a tool omits |
| No |
|
|
| PAT mode | None | Personal Access Token |
| No |
| REST API base URL |
| No |
| Default REST API version |
| No |
| Enable guarded mutations |
| No |
| Per-request timeout |
| No |
| Retry count for safe reads |
| No |
| Per-side local diff file limit |
| No |
| Maximum returned diff lines |
Placeholder secrets such as replace-me are rejected at startup.
Codex configuration
The repository includes .codex/config.toml. Build the project, create .env, trust/open the repository in Codex, and restart the MCP server list.
Manual registration:
codex mcp add azure-devops-mcp -- node "<absolute-path-to-project>\dist\server.js"The project configuration uses default_tools_approval_mode = "writes", adding Codex approval on top of the server's own mutation gates. .vscode/mcp.json is also included.
Safety model
Every mutation requires:
AZURE_DEVOPS_ENABLE_WRITE_TOOLS=trueat startup.confirm: truein the individual MCP call.
Additional safeguards:
work item updates can test
expectedRevision;branch deletion requires
expectedObjectId;inline comments validate the current iteration, file side, line range, and
changeTrackingId;PR completion requires the exact current source commit SHA;
PR completion and auto-complete always use
bypassPolicy: false;comment edits and deletes require exact work item or PR/thread/comment IDs, and Azure DevOps still enforces author and permission rules;
mutation requests are never automatically retried;
PATs, bearer tokens, and authorization headers never appear in tool or doctor output.
Example prompts
Read work item 544, including comments, relations, and delivery links.
Replace my English PR comment with this Turkish explanation after I confirm.
Delete my duplicate reply from thread 42 after I confirm the comment ID.
Move work item 544 to Project\Sprint 8 after I confirm.
Create a branch feature/544 at this exact commit after I confirm.
Review this Azure DevOps pull request URL and report merge blockers.
Add a required reviewer and enable squash auto-complete after I confirm.
Show failed builds for the hpower repository and retrieve the last run logs.
Run pipeline 12 on feature/544 with deploy=false after I confirm.
Show the current sprint capacity and calculated story-point velocity.
Report branches and active PRs older than 45 days.Validation
npm run typecheck
npm run typecheck:tests
npm test
npm run build
npm run smoke:mcp
npm run doctor
npm pack --dry-rundoctor performs live read-only checks without printing credentials.
Scope boundaries
This release does not manage wikis, test plans, service connections, variable groups, deployment environments, saved queries, repository creation, or Azure DevOps Server/on-premises. Pipeline rerun is full-run only.
API references
The adapters target Microsoft's Azure DevOps REST API 7.1 documentation for Git, PR thread comments, Work Item Tracking, work item comments, Pipelines, Build, and Work/Sprints.
License
MIT © 2026 Hasan Özcan. See LICENSE.
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 Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Azure DevOps services including work items, repositories, pipelines, wikis, and test plans through a local MCP server that provides direct access to Azure DevOps REST APIs from your code editor.86,254MIT
- AlicenseBqualityDmaintenanceA read-only MCP server connecting AI assistants to Azure DevOps Server (on-premises) for browsing projects, repos, builds, work items, releases, pipelines, and test results.391,0281MIT
- AlicenseBqualityAmaintenanceMCP server for on-premises Azure DevOps that lets AI assistants browse repositories, review pull requests, manage work items, and interact with wikis, with NTLM authentication support.35Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with Azure DevOps through an MCP server with 34 tools for PRs, work items, repos, and branches, optimized for token efficiency and agent-first workflows.4MIT
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…
Go MCP server for GitLab: 2 dynamic tools reach 1000+ REST/GraphQL actions. Free/CE, no paid tier.
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/hasanozcan/azure-devops-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server