home / mcp / azure devops mcp server
An MCP server for Azure DevOps
Configuration
View docs{
"mcpServers": {
"tiberriver256-mcp-server-azure-devops": {
"command": "npx",
"args": [
"-y",
"@tiberriver256/mcp-server-azure-devops"
],
"env": {
"AZURE_DEVOPS_PAT": "GHp...REDACTED",
"AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-organization",
"AZURE_DEVOPS_AUTH_METHOD": "azure-identity",
"AZURE_DEVOPS_DEFAULT_PROJECT": "your-project-name"
}
}
}
}You can run an MCP server that acts as a bridge between AI assistants and Azure DevOps, enabling secure access to projects, work items, repositories, and pipelines through a standardized interface so you can perform common DevOps tasks using natural language.
To use the Azure DevOps MCP Server with an MCP client, start the server as an independent process and connect your client to it using the provided command. You can run the server with an MCP client that supports stdio-based servers, which starts the server as a local process and communicates over standard I/O.
Prerequisites You need Node.js version 16 or newer and a working npm or yarn installation. You also need access to an Azure DevOps organization and credentials (PAT, Azure Identity, or Azure CLI) to authorize requests.
Install and start the server using the published package directly without cloning the repository.
npx -y @tiberriver256/mcp-server-azure-devopsYou configure authentication and target organization details by passing environment variables when launching the MCP server. The examples below show two common authentication methods. Replace the placeholders with your actual values.
{
"mcpServers": {
"azureDevOps": {
"command": "npx",
"args": ["-y", "@tiberriver256/mcp-server-azure-devops"],
"env": {
"AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-organization",
"AZURE_DEVOPS_AUTH_METHOD": "azure-identity",
"AZURE_DEVOPS_DEFAULT_PROJECT": "your-project-name"
}
}
}
}If you are working directly from a source checkout, you can install dependencies, build, and start the server with these steps.
npm ci
cp .env.example .env # then edit values
npm run build
npm start # runs: node dist/index.jsTo connect an MCP client, use the command that launches the MCP server. The typical approach shown here uses npx to run the published package as a local, disposable process.
Retrieve details of the authenticated user (id, displayName, email) for Azure DevOps Services only.
List all accessible organizations for Azure DevOps Services.
List all projects in an organization.
Get details of a specific project.
Get comprehensive details of a project including process, work item types, and teams.
List all repositories in a project.
Get details of a specific repository.
Get detailed information about a repository including statistics and refs.
Get content of a file or directory from a repository.
List a repository's file tree from any path and depth.
Create a new branch from an existing one.
Commit multiple file changes to a branch using diffs or search/replace.
Retrieve a work item by ID.
Create a new work item.
Update an existing work item.
List work items in a project.
Add, remove, or update links between work items.
Search code across repositories within a project.
Search content across wiki pages in a project.
Search work items across projects.
List pipelines in a project.
Get details of a specific pipeline.
List recent runs for a pipeline with optional filters.
Get detailed run information and artifact summaries.
Download a single artifact file as text.
Retrieve the stage and job timeline for a run.
Retrieve raw or JSON-formatted log content.
Trigger a pipeline run with customizable parameters.
List all wikis in a project.
Get content of a wiki page as plain text.
Create a new pull request.
Get a pull request by ID.
List pull requests in a repository.
Add a comment to a pull request.
Get comments from a pull request.
Update an existing pull request including title, description, status, reviewers, and work items.
List changes in a pull request and policy evaluation status.
Summarize status checks and policy evaluations related to a pull request.