azure-devops-local-mcp
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., "@azure-devops-local-mcp List open pull requests in the main 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-local-mcp — Azure DevOps for Claude
A local MCP (Model Context Protocol) server that connects Claude Desktop, Claude Code, and Claude Chat to your Azure DevOps organisation — query work items, review pull requests, trigger pipelines, search code, manage test plans, and update wikis using plain language.
One-file install for Claude Desktop. Runs entirely on your machine.
Why this server?
Microsoft maintains an official azure-devops-mcp server, and if you use VS Code with GitHub Copilot against their hosted remote server, it is a great choice. This project exists for a different scenario:
Claude-first. One-file MCPB install for Claude Desktop (no Node.js required), a hardened local HTTP mode, and setup scripts and manuals written for Claude Code. The official server is built VS Code-first and ships via npm only.
Local-first, by design. Microsoft is moving development to their hosted remote server and recommends local users plan a migration. This server is and stays a local process: your PAT and your traffic never route through a third-party MCP endpoint — which matters in regulated and security-conscious environments.
Simple auth. One PAT in an environment variable or the Claude Desktop config. No Azure CLI, no interactive browser sign-in required.
Small supply chain. Three runtime dependencies (
@modelcontextprotocol/sdk,express,zod) against the official server's thirteen (as of September 2026) — easier to audit, smaller attack surface.
This project is not affiliated with or endorsed by Microsoft. "Azure DevOps" is a Microsoft trademark; the name is used descriptively. For the official server, see microsoft/azure-devops-mcp.
If you need Advanced Security alerts, team capacity planning, or the hosted remote server, use the official one. If you want a lean local server for Claude, you are in the right place.
Related MCP server: cursor-azure-devops-mcp
Supported areas
Area | What you can do |
Work Items | Create, read, update, query via WIQL |
Git / Pull Requests | List repos, list and read PRs, add comments |
Pipelines | List definitions, see run status, trigger builds, fetch logs |
Code Search | Full-text search across all repositories |
Wiki | Read and update wiki pages |
Projects | List all projects in the organisation |
Test Plans | List, create, and get test plans; manage suites; add and list test cases |
Install — Claude Desktop (recommended)
The prebuilt MCP Bundle (.mcpb) is the easiest way in. One file covers macOS, Windows, and Linux, and no Node.js installation is required — Claude Desktop runs the server with its bundled runtime.
Download
azure-devops-local-mcp-<version>.mcpbfrom the latest release.Open the file with Claude Desktop — double-click it, or drag it into Settings → Extensions.
Fill in the configuration fields:
Azure DevOps organization URL (required), e.g.
https://dev.azure.com/yourorgPersonal Access Token (required) — see Personal Access Token below for scopes. The token is masked and stored securely by Claude Desktop.
Default project (optional)
Log level (optional, default
info)
Enable the extension. No restart or manual config file editing is needed.
To build the bundle from source, run bash scripts/make-mcpb.sh — it outputs distribution/azure-devops-local-mcp-<version>.mcpb.
Install — Claude Code (from source)
The package is not yet published to npm (see Roadmap). Clone and build:
git clone https://github.com/Laonnda/azure-devops-local-mcp.git
cd azure-devops-local-mcp
npm install
npm run build
npm install -g .Then create a .mcp.json file in your project folder (or a parent folder to share it across projects):
{
"mcpServers": {
"ado": {
"command": "azure-devops-local-mcp",
"env": {
"ADO_ORG_URL": "https://dev.azure.com/your-org",
"ADO_PAT": "your-pat-here",
"ADO_DEFAULT_PROJECT": "MyProject"
}
}
}
}Run /mcp inside Claude Code to confirm the connection.
On Windows, setup.bat / setup.ps1 automate the Claude Desktop JSON-config route if you prefer a scripted install over the MCPB bundle.
HTTP mode (advanced)
The server can also run as a local HTTP endpoint for MCP clients that connect over HTTP:
azure-devops-local-mcp --transport httpIt binds to 127.0.0.1:3100 and serves MCP at http://127.0.0.1:3100/mcp. Note that
the hosted claude.ai cannot reach a localhost URL: to use this server with Claude
Chat on the web you would need to expose it through your own tunnel or reverse
proxy. If you do, set ADO_HTTP_TOKEN — the server refuses to bind beyond
loopback without it, and with it every /mcp request must carry
Authorization: Bearer <token>. Treat that setup as advanced: the token guards
a PAT with real permissions.
Personal Access Token
Create a PAT in Azure DevOps (profile icon → Personal access tokens) with only the scopes you need:
Feature | Scope |
Work items (read) | Work Items — Read |
Work items (create/update) | Work Items — Read & Write |
Repos and PRs (read) | Code — Read |
PR comments (write) | Code — Read & Write |
Pipelines (read) | Build — Read |
Trigger pipeline runs | Build — Read & Execute |
Code search | Code — Read |
Wiki (read) | Wiki — Read |
Wiki (write) | Wiki — Read & Write |
Test plans, suites, test cases (read) | Test Management — Read |
Test plans, suites, test cases (create/update) | Test Management — Read & Write |
Configuration
Variable | Required | Description |
| Yes | Organisation URL, e.g. |
| Yes* | Personal Access Token |
| No | Default project name |
| No |
|
| No | Azure DevOps REST API version, e.g. |
| No | Max API requests per minute (default: |
| No |
|
| No | HTTP mode only: listen port (default: |
| No | HTTP mode only: bind address (default: |
| No | HTTP mode only: require |
* PAT is the simplest method. OAuth 2.0 and Azure Managed Identity are also
supported — see .env.example for the alternative variables.
Security model
Your PAT stays local. The server is a local process; credentials live in environment variables or the Claude Desktop extension config and are never logged. API responses are scrubbed for credential-shaped fields before they reach the model.
Treat Azure DevOps content as untrusted input. Work item text, PR comments, and wiki pages written by others are returned to the model verbatim and can contain adversarial instructions ("prompt injection"). If your PAT has write scopes, a hostile work item can try to steer the model into using them. Give the PAT the narrowest scopes you can, and prefer read-only tokens for browsing workflows.
Read-only mode. Set
ADO_READ_ONLY=trueand the server only registers read tools — no writes are possible regardless of what the model is asked to do. Recommended wherever you don't actively need writes.HTTP mode is loopback-only by default and requires
ADO_HTTP_TOKENto bind wider. See HTTP mode.
Roadmap
Feature | Status |
Publish to npm ( | Planned |
Submit to the MCP registry and the Claude Desktop extensions directory | Planned |
PR reviewer votes (approve / wait for author / reject) | Under consideration |
Documentation
User manual — written for non-developers setting up Claude with Azure DevOps
Technical manual — architecture, tool reference, and development guide
License
MIT
Available Tools
30 toolsado_git_create_pr_commentA
Add a comment to a pull request. To reply to an existing thread, provide threadId (do not provide filePath). To create a new general thread, provide only content. To create an inline code comment, provide filePath; optionally add lineNumber (start) and endLineNumber (end) for a multi-line range, and side ('right' for new file, 'left' for old). Requires vso.code_write PAT scope.
Inputs: content (required), project (required), repositoryId (required), pullRequestId (required), +5 more.
ado_git_get_prARead-only
Get full details of a specific pull request, including title, description, reviewers, source/target branches, and status. Use ado_git_get_pr_threads for comments/discussions.
Inputs: project (required), repositoryId (required), pullRequestId (required).
ado_git_get_pr_threadsARead-only
Get all comment threads on a pull request, including inline code comments with file paths and line numbers. Use ado_git_create_pr_comment to reply to a thread or add a new comment.
Inputs: project (required), repositoryId (required), pullRequestId (required).
ado_git_list_prsARead-only
List pull requests in a project or specific repository. Filter by status (active, completed, abandoned) and creator. Returns PR ID, title, status, branches, creator, and reviewers. Use ado_git_get_pr for full details on a specific PR.
Inputs: project (required), top, status, creatorId, +1 more.
ado_git_list_reposARead-only
List Git repositories in an Azure DevOps project. Returns repository ID, name, default branch, and size. Use the repository ID in other git tools (PRs, search).
Inputs: project (required).
ado_git_search_codeARead-only
Search for code across Azure DevOps repositories. Returns matching files with paths, repository names, and character-offset positions of each match within the file. To read the matched text, fetch the file via the repository API. Optionally scope to a project or specific repository. Does NOT search work items or wiki — use ado_workitems_query for work item search.
Inputs: searchText (required), top, project, repositoryName.
ado_pipelines_get_logsARead-only
Get build log references for an Azure DevOps pipeline run. Returns a list of log entries (id, type, url, lineCount) truncated to 10 KB to prevent context overflow. Follow the url of each log entry to fetch full log content. Requires vso.build PAT scope.
Inputs: buildId (required), project (required).
ado_pipelines_get_runARead-only
Get details of a single Azure DevOps pipeline run by pipeline ID and run ID. Returns state, result, timestamps, and URL. Requires vso.build PAT scope.
Inputs: runId (required), project (required), pipelineId (required).
ado_pipelines_listARead-only
List pipeline definitions for an Azure DevOps project. Returns id, name, folder, revision, and URLs for each pipeline. Requires vso.build PAT scope.
Inputs: top, project.
ado_pipelines_list_runsARead-only
List recent pipeline runs for an Azure DevOps project with optional filtering. Filter by pipeline definition, status, or paginate with top and continuationToken. Requires vso.build PAT scope.
Inputs: top, project, pipelineId, statusFilter, +1 more.
ado_pipelines_triggerA
Queue a new pipeline run in Azure DevOps. This is a WRITE operation — it will immediately queue a run and consume build minutes. Optionally override the branch, set pipeline variables, or skip stages. Requires vso.build_execute PAT scope.
Inputs: project (required), pipelineId (required), branch, variables, +1 more.
ado_projects_listARead-only
List all projects in the Azure DevOps organization. Use this first to discover available projects before using other tools. Returns project name, ID, description, state, url, and lastUpdateTime.
Inputs: top, skip.
ado_testcases_add_to_suiteA
Add existing Test Case work items to a suite. Pass an array of work item IDs that have type 'Test Case'. Use ado_workitems_create with type='Test Case' to create new test cases first. Only works for staticTestSuite — dynamicTestSuite membership is query-driven. Requires vso.test_write PAT scope.
Inputs: planId (required), project (required), suiteId (required), testCaseIds (required).
ado_testcases_listARead-only
List test cases assigned to a suite. Returns each test case's work item ID and title. Use ado_workitems_get for full test case details including steps.
Inputs: planId (required), suiteId (required), top, project.
ado_testplans_createA
Create a new test plan in Azure DevOps. ADO automatically creates a root suite alongside the plan — the response includes rootSuiteId. Pass rootSuiteId as parentSuiteId when calling ado_testsuites_create to add child suites. Requires vso.test_write PAT scope.
Inputs: name (required), project (required), endDate, areaPath, +2 more.
ado_testplans_getARead-only
Get details of a single test plan by ID. Returns name, area path, iteration, state, start/end dates, and the root suite ID. Use ado_testplans_list to discover plan IDs.
Inputs: planId (required), project.
ado_testplans_listARead-only
List test plans in an Azure DevOps project. Returns each plan's ID, name, area path, iteration, state, and the root suite ID. The root suite ID is needed when creating child suites with ado_testsuites_create.
Inputs: top, project.
ado_testsuites_createA
Create a new suite inside a test plan. suiteType must be staticTestSuite (test cases added manually), requirementTestSuite (linked to one backlog item — requirementId required), or dynamicTestSuite (auto-populated from WIQL — queryString required, membership is read-only). Set parentSuiteId to the plan's rootSuiteId (from ado_testplans_create/get) to attach directly under root. Requires vso.test_write PAT scope.
Inputs: name (required), planId (required), project (required), suiteType (required), +3 more.
ado_testsuites_listARead-only
List all suites in a test plan. Returns each suite's ID, name, type, state, test case count, and parent suite ID. Use ado_testplans_list to find plan IDs.
Inputs: planId (required), top, project.
ado_wiki_get_pageARead-only
Fetch the content and metadata of a single Azure DevOps wiki page by its path. Returns the page content (Markdown), URL, last updated date, and version. Requires vso.wiki PAT scope.
Inputs: path (required), wikiId (required), project.
ado_wiki_listARead-only
List wikis in an Azure DevOps project, or all wikis across the organisation when project is omitted. Returns id, name, type (projectWiki or codeWiki), projectId, remoteUrl, and versions for each wiki. Call this first to discover wikiId values before using ado_wiki_get_page or ado_wiki_list_pages. An empty result means the project exists but has no wiki provisioned. Requires vso.wiki PAT scope.
Inputs: project.
ado_wiki_list_pagesARead-only
List pages in an Azure DevOps wiki with optional pagination. Returns a list of pages with their paths, URLs, and metadata. When wikiId is omitted the project's default projectWiki is resolved automatically — use ado_wiki_list to discover available wikis if auto-resolve fails. Use top to limit results; pass the returned continuationToken for subsequent pages. Requires vso.wiki PAT scope.
Inputs: top, wikiId, project, continuationToken.
ado_wiki_update_pageA
Create or update an Azure DevOps wiki page at the specified path. If the page does not exist it will be created; if it exists it will be updated. To prevent overwriting concurrent edits, pass the etag returned by ado_wiki_get_page as the etag input — the update will fail with a conflict error if the page changed since. Omit etag to do an unconditional overwrite. Returns the updated page content and its new etag. Requires vso.wiki_write PAT scope.
Inputs: path (required), wikiId (required), content (required), etag, +2 more.
ado_workitems_createA
Create a new work item in Azure DevOps. Specify the project, type (Bug, Task, User Story, Epic, Feature, etc.), and fields. Returns the created work item with its ID. Requires vso.work_write PAT scope.
Inputs: type (required), title (required), project (required), tags, +6 more.
ado_workitems_getARead-only
Get full details of a single work item by its ID, including all fields, description, tags, and relations. Use ado_workitems_query or ado_workitems_list_recent to find work item IDs first. If project is supplied and the item belongs to a different project, the call will error with the actual project name.
Inputs: id (required), expand, project.
ado_workitems_linkA
Link two work items. Typical use: set a Feature as the parent of a Task so it shows nested on the board (linkType='parent', fromId=Task, toId=Feature). Can also create child, related, predecessor, successor, duplicate, and duplicate-of links. Requires vso.work_write PAT scope.
Inputs: toId (required), fromId (required), linkType (required), comment, +1 more.
ado_workitems_list_recentARead-only
List recently updated work items in a project, with optional filters for type, state, and assignee. Results are ordered by last changed date (newest first). Use this for quick overviews; use ado_workitems_query for complex filtering.
Inputs: project (required), top, type, state, +1 more.
ado_workitems_queryARead-only
Run a WIQL (Work Item Query Language) query against Azure DevOps and return matching work items. Example: SELECT [System.Id], [System.Title], [System.State] FROM WorkItems WHERE [System.WorkItemType] = 'Bug' AND [System.State] <> 'Closed'. Returns ID, title, state, type, and assignee for each match. Use ado_workitems_get for full details on a specific item.
Inputs: query (required), top, project.
ado_workitems_unlinkA
Remove an existing link between two work items. Pass the same fromId/toId/linkType used when the link was created. Errors if the link is not present. Requires vso.work_write PAT scope.
Inputs: toId (required), fromId (required), linkType (required), project.
ado_workitems_updateA
Update fields on an existing work item. Pass the work item ID and a map of field names to new values. Common fields: System.State, System.AssignedTo, System.Title, System.Tags, Microsoft.VSTS.Common.Priority. Requires vso.work_write PAT scope.
Inputs: id (required), fields (required), project.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
Tools are generally well-separated by resource domain and action, and descriptions explicitly disambiguate similar options. The main potential confusion is between list/query variants such as ado_workitems_query vs ado_workitems_list_recent and ado_wiki_list vs ado_wiki_list_pages, but the descriptions clarify the intended use.
All tools follow a consistent ado_<resource>_<action> snake_case pattern, with predictable verbs like list, get, create, update, and trigger. Even multi-part actions such as get_pr_threads or create_pr_comment fit the pattern cleanly.
30 tools is a heavy surface for an MCP server, exceeding the range where the full set can be easily held in context. The tools are organized by domain, but the overall count still creates significant selection overhead for an agent.
The server covers work items, Git/PRs, pipelines, wiki, and test management quite broadly, with good create/read/update support for work items and test plans. However, notable lifecycle gaps remain: PR creation/update/merge is missing, and wiki/test plan deletion is not exposed, which can create dead ends in common workflows.
Maintenance
Related MCP Connectors
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server exposing Buildkite API data (pipelines, builds, jobs, tests) to AI tooling and editors.
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.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that integrates Azure DevOps with Cursor IDE, allowing Claude AI to manage projects, work items, repositories, pull requests, and test plans.107 npm12MIT
- 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.391MIT
- AlicenseAqualityDmaintenanceAn MCP server that exposes 41 Azure DevOps tools to AI assistants, enabling management of pipelines, repositories, pull requests, releases, work items, test management, and wikis through natural language.41MIT