Skip to main content
Glama

azure-devops-local-mcp — Azure DevOps for Claude

CI License: MIT Download for Claude Desktop

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

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.

  1. Download azure-devops-local-mcp-<version>.mcpb from the latest release.

  2. Open the file with Claude Desktop — double-click it, or drag it into Settings → Extensions.

  3. Fill in the configuration fields:

    • Azure DevOps organization URL (required), e.g. https://dev.azure.com/yourorg

    • Personal 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)

  4. 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 http

It 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

ADO_ORG_URL

Yes

Organisation URL, e.g. https://dev.azure.com/myorg

ADO_PAT

Yes*

Personal Access Token

ADO_DEFAULT_PROJECT

No

Default project name

ADO_LOG_LEVEL

No

debug, info, warn, error (default: info)

ADO_API_VERSION

No

Azure DevOps REST API version, e.g. 7.2-preview (default) or 7.1

ADO_RATE_LIMIT

No

Max API requests per minute (default: 60)

ADO_READ_ONLY

No

true registers only read tools — no writes possible

PORT

No

HTTP mode only: listen port (default: 3100)

ADO_HTTP_HOST

No

HTTP mode only: bind address (default: 127.0.0.1; non-loopback requires ADO_HTTP_TOKEN)

ADO_HTTP_TOKEN

No

HTTP mode only: require Authorization: Bearer <token> on /mcp

* 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=true and 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_TOKEN to bind wider. See HTTP mode.

Roadmap

Feature

Status

Publish to npm (npx -y azure-devops-local-mcp one-line setup)

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 tools
ado_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_prA
Read-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_threadsA
Read-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_prsA
Read-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_reposA
Read-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_codeA
Read-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_logsA
Read-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_runA
Read-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_listA
Read-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_runsA
Read-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_listA
Read-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_listA
Read-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_getA
Read-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_listA
Read-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_listA
Read-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_pageA
Read-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_listA
Read-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_pagesA
Read-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_getA
Read-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_list_recentA
Read-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_queryA
Read-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_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

    A3.9/5.0

    Scored across 30 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count2/5

    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.

    Completeness3/5

    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

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers