Skip to main content
Glama

Azure DevOps MCP

Model Context Protocol MCP server for on-premises Azure DevOps that lets AI assistants browse repositories, review pull requests, manage work items, and interact with wikis.

License: MIT

PyPI - Version

Overview •
Getting Started •
Authentication •
Updating •
Available Tools •
Development


Overview

Many organizations use on-premise DevOps solutions such as TFS or Azure DevOps Server in their projects. Integrating these systems with modern agentic AI tools and LLMs can be difficult.

The official Microsoft Azure DevOps MCP server does not support these environments and is unlikely to support them in the future.

This MCP server closes that gap and enables smooth integration with on-premise DevOps systems.

This project is under active development, with features continuously added to meet current requirements. Community needs are highly valued — if you miss any features, please submit an Issue. User-requested features are fast-tracked and will be prioritized and added as soon as possible.


Related MCP server: mcp-devops-onpremise

Key Advantages

This MCP server is designed for enterprise and on-premises Azure DevOps environments where authentication, network access, and security requirements can differ from Azure DevOps Services.

  • Basic Authentication using username and password for Azure DevOps Server environments where HTTP Basic Authentication is enabled.

  • NTLM authentication using Windows domain credentials for on-premises and VPN-based environments.

  • PAT authentication when Personal Access Tokens are enabled and allowed by your organization.

  • OAuth Bearer Token authentication for environments configured with OAuth 2.0.

  • Enables secure access to on-prem DevOps systems from MCP-compatible AI tools such as GitHub Copilot, Claude Desktop, Cursor, Windsurf, and others.

  • Works in restricted or offline environments without exposing sensitive data to external services.

  • Retrieves commit diffs with clear added/removed lines, similar to the DevOps UI.

  • Helps keep and track project documentation alongside code changes.

  • Automates common tasks such as work item management and code review processes.


Getting Started

Prerequisites

Python 3.10+ and uv are required.

If not yet installed, see the installation guide.

Quick Install

Click one of the buttons below to install directly in your IDE. You will be prompted for credentials.

Install in VS Code

Install in VS Code Insiders

Install in Cursor

For other platforms, see Manual Installation in the Getting Started guide.

Manual Installation

The MCP server can be installed manually in the following AI tools:

VS Code, Visual Studio, Cursor, Goose, LM Studio, Amp, Claude Code, Claude Desktop, Codex, Gemini CLI, OpenCode, Qodo Gen, Warp, Windsurf, GitHub Copilot CLI, GitHub Copilot Coding Agent, and others.

For step-by-step instructions, see Manual Installation in the Getting Started guide.

Configuration

The DEVOPS_API_URL must point to your full project URL:

https://<your-devops-server>/<organization>/<project>

For example:

https://devops.example.com/DefaultCollection/MyProject

Authentication

The server supports four authentication methods:

Method

Environment Variables

Description

Basic Authentication

DEVOPS_AUTH_METHOD=basic + username/password

Uses HTTP Basic Authentication. Useful for Azure DevOps Server environments where Basic Authentication is enabled.

NTLM

DEVOPS_AUTH_METHOD=ntlm + username/password

Uses Windows/NTLM authentication and is commonly used in on-premises and VPN environments.

PAT

DEVOPS_PAT

Uses a Personal Access Token when PAT authentication is enabled and allowed.

OAuth Bearer Token

DEVOPS_TOKEN

Uses an OAuth 2.0 bearer token for environments configured with OAuth.

Choose the authentication method enabled by your Azure DevOps Server and organization security policy.

Basic Authentication

Use Basic Authentication when your Azure DevOps Server accepts HTTP Basic Authentication.

DEVOPS_AUTH_METHOD=basic
DEVOPS_API_URL=https://your-devops-server/your-organization/your-project
DEVOPS_USERNAME=DOMAIN\your-username
DEVOPS_PASSWORD=your-password

The username can be supplied using your domain format, for example:

DOMAIN\username

Basic Authentication should only be used over HTTPS.

NTLM Authentication

Use NTLM when your Azure DevOps Server or Windows environment requires NTLM authentication.

DEVOPS_AUTH_METHOD=ntlm
DEVOPS_API_URL=https://your-devops-server/your-organization/your-project
DEVOPS_USERNAME=DOMAIN\your-username
DEVOPS_PASSWORD=your-password

For backward compatibility, if DEVOPS_AUTH_METHOD is not specified and username/password are provided, the server uses NTLM.

PAT Authentication

If your Azure DevOps Server supports Personal Access Tokens, configure:

DEVOPS_API_URL=https://your-devops-server/your-organization/your-project
DEVOPS_USERNAME=your-username
DEVOPS_PAT=your-personal-access-token

When DEVOPS_PAT is configured, the PAT is used for authentication.

PATs are generally preferable to storing a permanent account password when they are supported by your organization.

OAuth Bearer Token

For environments configured with OAuth 2.0, provide the access token using:

DEVOPS_API_URL=https://your-devops-server/your-organization/your-project
DEVOPS_TOKEN=your-oauth-access-token

The token is sent using the HTTP Bearer authentication scheme.

OAuth requires appropriate OAuth configuration and token issuance on your Azure DevOps Server environment.

Authentication Priority

When multiple authentication variables are configured, the server evaluates them in the following order:

  1. DEVOPS_TOKEN — OAuth Bearer Token

  2. DEVOPS_PAT — Personal Access Token

  3. Username/password with DEVOPS_AUTH_METHOD=basic — Basic Authentication

  4. Username/password with DEVOPS_AUTH_METHOD=ntlm — NTLM Authentication

  5. Username/password without DEVOPS_AUTH_METHOD — NTLM for backward compatibility

For predictable behavior, configure only the authentication method you intend to use.

OpenCode / MCP Configuration

Basic Authentication

{
  "mcpServers": {
    "azure-devops-mcp": {
      "command": "uvx",
      "args": ["azure-devops-mcp@latest"],
      "env": {
        "DEVOPS_API_URL": "https://your-devops-server/your-organization/your-project",
        "DEVOPS_AUTH_METHOD": "basic",
        "DEVOPS_USERNAME": "DOMAIN\\your-username",
        "DEVOPS_PASSWORD": "your-password"
      }
    }
  }
}

NTLM Authentication

{
  "mcpServers": {
    "azure-devops-mcp": {
      "command": "uvx",
      "args": ["azure-devops-mcp@latest"],
      "env": {
        "DEVOPS_API_URL": "https://your-devops-server/your-organization/your-project",
        "DEVOPS_AUTH_METHOD": "ntlm",
        "DEVOPS_USERNAME": "DOMAIN\\your-username",
        "DEVOPS_PASSWORD": "your-password"
      }
    }
  }
}

PAT Authentication

{
  "mcpServers": {
    "azure-devops-mcp": {
      "command": "uvx",
      "args": ["azure-devops-mcp@latest"],
      "env": {
        "DEVOPS_API_URL": "https://your-devops-server/your-organization/your-project",
        "DEVOPS_PAT": "your-personal-access-token"
      }
    }
  }
}

OAuth Authentication

{
  "mcpServers": {
    "azure-devops-mcp": {
      "command": "uvx",
      "args": ["azure-devops-mcp@latest"],
      "env": {
        "DEVOPS_API_URL": "https://your-devops-server/your-organization/your-project",
        "DEVOPS_TOKEN": "your-oauth-access-token"
      }
    }
  }
}

Security: Never commit passwords, PATs, or OAuth tokens to source control. Prefer environment variables, secret managers, or your MCP client's secure credential configuration.

If you used a permanent install, replace:

"command": "uvx",
"args": ["azure-devops-mcp@latest"]

with:

"command": "azure-devops-mcp"

and remove the args line.


Updating

All configuration examples use:

azure-devops-mcp@latest

When using uvx, this instructs uvx to fetch the latest available version automatically when the MCP server is started.

For permanent installs and release notes, see Updating in the Getting Started guide.


Available Tools

Pull Requests

Tool

Description

Read-only

devops_pull_request_get

Retrieve a pull request by ID, including linked work items and commit SHAs for diffing

✅

devops_pull_request_write

Create or update pull requests, update reviewers, or cast your PR vote

❌

devops_pull_request_list_threads

Returns a hierarchical list of non-deleted comment threads and their text comments

✅

devops_pull_request_list_thread_comments

List non-deleted text comments in a specific thread

✅

devops_pull_request_create_comment

Create a new thread with an initial comment (general or inline on a file/line)

❌

devops_pull_request_reply_comment

Reply to an existing comment thread

❌

devops_pull_request_update_thread

Update the status of a comment thread

❌

devops_pull_request_update_comment

Update the text of an existing comment

❌

devops_pull_request_delete_comment

Delete a comment from a pull request thread

❌

Repositories

Tool

Description

Read-only

devops_repository_list

List all repositories in the project

✅

devops_repository_get

Retrieve repository details by name or ID

✅

devops_repository_commit_changes

List files changed in a specific commit

✅

devops_repository_diffs_commits

Get the difference between two commits (changed file paths)

✅

devops_repository_item_content

Get raw file content at a specific commit or branch

✅

devops_get_item_content_diff

Get line-level textual diff of a file between two commits (added lines prefixed +, removed -)

✅

Work Items

Tool

Description

Read-only

devops_work_item_get

Retrieve a work item (PBI, bug, task) by numeric ID. Returns a compact object with key fields, attachments (files and inline images), and linked items (work items, pull requests, commits)

✅

devops_work_item_attachment_get

Download a work item attachment by its GUID, either saving locally or returning base64-encoded content

✅

devops_work_item_type_get

Get the definition of a work item type by name (e.g. Bug, User Story)

✅

devops_work_item_query_by_wiql

Execute a WIQL (Work Item Query Language) query and return matching work items

✅

devops_work_item_create

Create a new work item with typed fields; Html is the default format

❌

devops_work_item_update

Update fields on a work item using JSON Patch (add / replace / remove)

❌

devops_work_item_delete

Delete a work item, moves to Recycle Bin by default; use destroy=True for permanent deletion (requires project permission)

❌

devops_work_item_undelete

Restore a soft-deleted work item from the Recycle Bin

❌

devops_work_item_link_update

Add or remove a relation link between two work items (parent, child, related, successor, predecessor, etc.)

❌

devops_work_item_artifact_link_update

Add or remove an artifact link (Pull Request, Build, Commit, Branch, Changeset) on a work item

❌

devops_work_item_comment_list

List comments on a work item with configurable page size and format

✅

devops_work_item_comment_add

Add a comment to a work item

❌

devops_work_item_comment_update

Update an existing comment on a work item

❌

devops_work_item_comment_delete

Delete a comment from a work item

❌

Tool

Description

Read-only

devops_code_search

Search source code with optional repository, path, and branch filters

✅

devops_work_item_search

Search work items with optional area, type, state, and assigned-to filters

✅

devops_wiki_search

Search wiki pages with an optional wiki filter

✅

Wiki

Tool

Description

Read-only

devops_wiki_page_get

Get wiki page metadata and optional content by wiki ID and page ID

✅

devops_wiki_page_create_or_update

Create or update a wiki page under a specified parent page

❌

devops_wiki_page_update

Update an existing wiki page by ID

❌

devops_wiki_page_delete

Delete an existing wiki page by ID

❌

Dashboards

Tool

Description

Read-only

devops_dashboard_create

Create a project or team dashboard

❌

devops_dashboard_get

Get a dashboard by ID, including its widgets

✅

devops_dashboard_list

List the dashboards under a project or team

✅

devops_dashboard_update

Rename, re-describe, reposition, or change the refresh interval of a dashboard

❌

devops_dashboard_replace_dashboards

Reorder or rename dashboards in a group and remove omitted dashboards

❌

devops_dashboard_delete

Delete a dashboard and its widgets

❌

devops_dashboard_widget_types_list

List installed widget types and their server-specific contribution IDs

✅

devops_dashboard_widget_type_get

Get the metadata for one installed widget type

✅

devops_dashboard_widget_add

Add any installed widget type to a dashboard

❌

devops_dashboard_widgets_list

List all widgets on a dashboard with settings parsed

✅

devops_dashboard_widget_get

Get one widget with its settings parsed

✅

devops_dashboard_widget_update

Partially update any widget's title, settings, position, or size

❌

devops_dashboard_widget_replace

Replace the complete state of one widget

❌

devops_dashboard_widget_delete

Delete any widget from a dashboard

❌

devops_dashboard_widgets_update

Bulk-update several widgets in one call

❌

devops_dashboard_widgets_replace

Replace the whole widget list on a dashboard

❌

devops_dashboard_add_query_graph

Save a flat-list WIQL query to Shared Queries and add a graph widget to a dashboard

❌

devops_shared_query_create

Create a flat-list query in Shared Queries

❌

devops_shared_query_update

Rename or change a shared query's WIQL

❌

devops_shared_query_delete

Delete a shared query

❌

devops_dashboard_graph_create

Add a graph from an existing shared query

❌

devops_dashboard_graph_update

Change graph settings, title, placement, or size

❌

devops_dashboard_graph_delete

Delete a graph widget

❌

Charts

Tool

Description

Read-only

devops_chart_board_image_get

Download a board chart image (e.g. Cumulative Flow) as PNG

✅

devops_chart_iteration_image_get

Download a single-iteration chart image (e.g. Burndown) as PNG

✅

devops_chart_iterations_image_get

Download a multi-iteration chart image (e.g. Velocity) as PNG

✅

Development

Install Development Dependencies

uv sync --group dev

Run Linting

uv run ruff check src/
uv run black --check src/

Run Tests

uv run pytest tests/

Security Recommendations

When using the MCP server in enterprise environments:

  • Always use HTTPS for Azure DevOps communication.

  • Do not commit DEVOPS_PASSWORD, DEVOPS_PAT, or DEVOPS_TOKEN to source control.

  • Prefer environment variables or a secure secret store for credentials.

  • Use a PAT instead of a permanent account password when PAT authentication is available and permitted.

  • Use Basic Authentication only when it is explicitly enabled and permitted by your Azure DevOps Server security policy.

  • Use NTLM when required by your Windows/domain environment.

  • Use OAuth when your environment provides an appropriate OAuth configuration.

  • Ensure the MCP server runs in a trusted environment with network access to Azure DevOps.

  • Follow your organization's credential rotation and access-control policies.


License

This project is licensed under the Apache License 2.0.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers