Azure DevOps MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
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.
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/MyProjectAuthentication
The server supports four authentication methods:
Method | Environment Variables | Description |
Basic Authentication |
| Uses HTTP Basic Authentication. Useful for Azure DevOps Server environments where Basic Authentication is enabled. |
NTLM |
| Uses Windows/NTLM authentication and is commonly used in on-premises and VPN environments. |
PAT |
| Uses a Personal Access Token when PAT authentication is enabled and allowed. |
OAuth Bearer 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-passwordThe username can be supplied using your domain format, for example:
DOMAIN\usernameBasic 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-passwordFor 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-tokenWhen 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-tokenThe 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:
DEVOPS_TOKEN— OAuth Bearer TokenDEVOPS_PAT— Personal Access TokenUsername/password with
DEVOPS_AUTH_METHOD=basic— Basic AuthenticationUsername/password with
DEVOPS_AUTH_METHOD=ntlm— NTLM AuthenticationUsername/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@latestWhen 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 |
| Retrieve a pull request by ID, including linked work items and commit SHAs for diffing | ✅ |
| Create or update pull requests, update reviewers, or cast your PR vote | ❌ |
| Returns a hierarchical list of non-deleted comment threads and their text comments | ✅ |
| List non-deleted text comments in a specific thread | ✅ |
| Create a new thread with an initial comment (general or inline on a file/line) | ❌ |
| Reply to an existing comment thread | ❌ |
| Update the status of a comment thread | ❌ |
| Update the text of an existing comment | ❌ |
| Delete a comment from a pull request thread | ❌ |
Repositories
Tool | Description | Read-only |
| List all repositories in the project | ✅ |
| Retrieve repository details by name or ID | ✅ |
| List files changed in a specific commit | ✅ |
| Get the difference between two commits (changed file paths) | ✅ |
| Get raw file content at a specific commit or branch | ✅ |
| Get line-level textual diff of a file between two commits (added lines prefixed | ✅ |
Work Items
Tool | Description | Read-only |
| 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) | ✅ |
| Download a work item attachment by its GUID, either saving locally or returning base64-encoded content | ✅ |
| Get the definition of a work item type by name (e.g. | ✅ |
| Execute a WIQL (Work Item Query Language) query and return matching work items | ✅ |
| Create a new work item with typed fields; Html is the default format | ❌ |
| Update fields on a work item using JSON Patch (add / replace / remove) | ❌ |
| Delete a work item, moves to Recycle Bin by default; use | ❌ |
| Restore a soft-deleted work item from the Recycle Bin | ❌ |
| Add or remove a relation link between two work items (parent, child, related, successor, predecessor, etc.) | ❌ |
| Add or remove an artifact link (Pull Request, Build, Commit, Branch, Changeset) on a work item | ❌ |
| List comments on a work item with configurable page size and format | ✅ |
| Add a comment to a work item | ❌ |
| Update an existing comment on a work item | ❌ |
| Delete a comment from a work item | ❌ |
Search
Tool | Description | Read-only |
| Search source code with optional repository, path, and branch filters | ✅ |
| Search work items with optional area, type, state, and assigned-to filters | ✅ |
| Search wiki pages with an optional wiki filter | ✅ |
Wiki
Tool | Description | Read-only |
| Get wiki page metadata and optional content by wiki ID and page ID | ✅ |
| Create or update a wiki page under a specified parent page | ❌ |
| Update an existing wiki page by ID | ❌ |
| Delete an existing wiki page by ID | ❌ |
Dashboards
Tool | Description | Read-only |
| Create a project or team dashboard | ❌ |
| Get a dashboard by ID, including its widgets | ✅ |
| List the dashboards under a project or team | ✅ |
| Rename, re-describe, reposition, or change the refresh interval of a dashboard | ❌ |
| Reorder or rename dashboards in a group and remove omitted dashboards | ❌ |
| Delete a dashboard and its widgets | ❌ |
| List installed widget types and their server-specific contribution IDs | ✅ |
| Get the metadata for one installed widget type | ✅ |
| Add any installed widget type to a dashboard | ❌ |
| List all widgets on a dashboard with settings parsed | ✅ |
| Get one widget with its settings parsed | ✅ |
| Partially update any widget's title, settings, position, or size | ❌ |
| Replace the complete state of one widget | ❌ |
| Delete any widget from a dashboard | ❌ |
| Bulk-update several widgets in one call | ❌ |
| Replace the whole widget list on a dashboard | ❌ |
| Save a flat-list WIQL query to Shared Queries and add a graph widget to a dashboard | ❌ |
| Create a flat-list query in Shared Queries | ❌ |
| Rename or change a shared query's WIQL | ❌ |
| Delete a shared query | ❌ |
| Add a graph from an existing shared query | ❌ |
| Change graph settings, title, placement, or size | ❌ |
| Delete a graph widget | ❌ |
Charts
Tool | Description | Read-only |
| Download a board chart image (e.g. Cumulative Flow) as PNG | ✅ |
| Download a single-iteration chart image (e.g. Burndown) as PNG | ✅ |
| Download a multi-iteration chart image (e.g. Velocity) as PNG | ✅ |
Development
Install Development Dependencies
uv sync --group devRun 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, orDEVOPS_TOKENto 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…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceBrings on-premises Azure DevOps Server (including TFVC) to AI assistants with 49 tools for work items, repositories, pipelines, test plans, and wiki, along with profile-based secrets and write safety layers.75 npm16MIT
- AlicenseBqualityBmaintenanceMCP 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.37356 PyPI6Apache 2.0
- AlicenseAqualityCmaintenanceEnables AI assistants to interact with an on-premise Azure DevOps Server 2022, allowing users to list, view, create, and update work items through natural language.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage work items, repos, pull requests, pipelines, boards, wikis, and test plans through Model Context Protocol tools, resources, and prompts, supporting PAT, OAuth, Managed Identity, and Service Principal authentication.Apache 2.0