Skip to main content
Glama
Azure DevOps MCP

Azure DevOps MCP

by isaacOjeda

Azure DevOps MCP

Local, stdio-based MCP server for Azure DevOps and Claude Desktop.

Requirements

  • Python 3.13+

  • uv

  • Azure DevOps PAT with only the scopes required by the enabled operations

Related MCP server: Azure DevOps MCP Server

Configuration

The server reads these environment variables:

ADO_ORGANIZATION=your-organization
ADO_PAT=your-pat
ADO_DEFAULT_PROJECT=your-project
ADO_READ_ONLY=true
ADO_API_VERSION=7.1

Keep ADO_READ_ONLY=true until read operations are verified. Never commit the PAT or put it in an MCP tool argument.

ado_work_item_create accepts an optional parent_id to link the new work item to a parent as part of creation. ado_work_item_link_add adds a parent, child, or related link between two existing work items. Both require ADO_READ_ONLY=false.

Pull request comments

ado_pull_request_thread_add creates a review thread. Without file_path it is a general PR comment. With file_path it attaches to that file, and start_line (plus optional end_line, start_offset, end_offset) anchors it to lines on the right (new code, default) or left (old code) side of the diff. suggestion adds an Azure DevOps suggested change for the anchored right-side lines, and status sets the initial thread status (active by default).

ado_pull_request_thread_reply replies to an existing thread by thread_id (use ado_pull_request_threads_list to find it). ado_pull_request_thread_status_update sets a thread to active, fixed, wontFix, closed, byDesign, or pending. All three require ADO_READ_ONLY=false.

Run locally

uv sync
uv run ado-mcp

Claude Desktop

Add the following entry to Claude Desktop's claude_desktop_config.json, using absolute paths:

{
  "mcpServers": {
    "azure-devops": {
      "command": "/absolute/path/to/ado-mcp/.venv/bin/ado-mcp",
      "env": {
        "ADO_ORGANIZATION": "your-organization",
        "ADO_PAT": "your-pat",
        "ADO_DEFAULT_PROJECT": "your-project",
        "ADO_READ_ONLY": "true"
      }
    }
  }
}

Restart Claude Desktop after changing the configuration. The server writes diagnostics only to stderr so stdout remains available for MCP protocol traffic.

On macOS, Claude Desktop captures this server's stderr in:

~/Library/Logs/Claude/mcp-server-azure-devops.log

Look for ado_request_failed and status_code when Azure DevOps rejects a request.

Available Tools

15 tools
ado_pull_request_changesB

List changed files for a pull request.

Inputs: repository (required), pull_request_id (required), project. Returns: result

ado_pull_request_createC

Create a pull request when write mode is enabled.

Inputs: request (required). Returns: result

ado_pull_request_getB

Get a pull request by repository and ID.

Inputs: repository (required), pull_request_id (required), project. Returns: result

ado_pull_requests_listC

List pull requests in a project or repository.

Inputs: top, project, repository. Returns: result

ado_pull_request_thread_addB

Add a general review comment thread to a pull request.

Inputs: request (required). Returns: result

ado_pull_request_threads_listB

List review threads and comments for a pull request.

Inputs: repository (required), pull_request_id (required), project. Returns: result

ado_work_item_comment_addA

Add a comment to a work item when write mode is enabled.

Inputs: text (required), work_item_id (required), project. Returns: result

ado_work_item_comments_listB

List comments for a work item.

Inputs: work_item_id (required), top, project. Returns: result

ado_work_item_createC

Create a work item when write mode is enabled.

Inputs: request (required). Returns: result

ado_work_item_fields_listB

List work item fields available in a project.

Inputs: project. Returns: result

ado_work_item_getC

Get a work item and its fields, relations, and revision.

Inputs: work_item_id (required), project. Returns: result

ado_work_items_queryC

Run a bounded WIQL query in a project.

Inputs: wiql (required), top, project. Returns: result

ado_work_item_type_getA

Get fields, states, and rules for one work item type.

Inputs: work_item_type (required), project. Returns: result

ado_work_item_types_listC

List work item types available in a project.

Inputs: project. Returns: result

ado_work_item_updateB

Update explicitly selected work item fields using JSON Patch.

Inputs: request (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 15 tools

    Disambiguation5/5

    Tools split cleanly by resource (work items vs pull requests) and action (list/get/query/create/update/add). Work item query vs get are distinct via WIQL vs ID lookup, and metadata tools are clearly scoped. No two tools appear to do the same job.

    Naming Consistency4/5

    All tools follow the ado_<resource>_<action> pattern, which is predictable and easy to learn. Minor inconsistencies exist: list/query sometimes use plural resources (pull_requests_list, work_items_query) while other actions use singular forms, and both 'add' and 'create' are used for different resources.

    Tool Count5/5

    15 tools is at the upper boundary but remains well-scoped for work-item and pull-request workflows. Each tool maps to a distinct operation, and the metadata tools (types/fields) are justified by Azure DevOps's dynamic work-item models.

    Completeness3/5

    Work item coverage is solid with query/get/create/update/comments, but the PR side lacks update/complete/abandon operations, so a PR can be created and discussed but not merged or completed through the server. There is also no work-item delete or reply to existing PR review threads. These are notable lifecycle gaps rather than trivial workarounds.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers