The Azure DevOps MCP server implements the Model Context Protocol for Azure DevOps, allowing AI assistants to interact with Azure DevOps resources through a standardized interface. This server acts as a bridge between AI models and Azure DevOps APIs, enabling access to projects, work items, repositories, and more through natural language.
You can run the server directly with npx:
npx @tiberriver256/mcp-server-azure-devops
The MCP server supports different authentication methods for connecting to Azure DevOps. You'll need to set up the appropriate configuration based on your preferred authentication method.
If you're using Azure Identity authentication, first ensure you're logged in to Azure CLI:
az login
Then add this configuration to your MCP configuration file:
{
"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"
}
}
}
}
For PAT authentication, use this configuration:
{
"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": "pat",
"AZURE_DEVOPS_PAT": "<YOUR_PAT>",
"AZURE_DEVOPS_DEFAULT_PROJECT": "your-project-name"
}
}
}
}
The server can be configured with several environment variables:
| Variable | Description | Required | Default |
|---|---|---|---|
AZURE_DEVOPS_AUTH_METHOD |
Authentication method (pat, azure-identity, or azure-cli) |
No | azure-identity |
AZURE_DEVOPS_ORG_URL |
Full URL to your Azure DevOps organization | Yes | - |
AZURE_DEVOPS_PAT |
Personal Access Token (for PAT auth) | Only with PAT auth | - |
AZURE_DEVOPS_DEFAULT_PROJECT |
Default project if none specified | No | - |
AZURE_DEVOPS_API_VERSION |
API version to use | No | Latest |
AZURE_TENANT_ID |
Azure AD tenant ID (for service principals) | For service principals | - |
AZURE_CLIENT_ID |
Azure AD application ID (for service principals) | For service principals | - |
AZURE_CLIENT_SECRET |
Azure AD client secret (for service principals) | For service principals | - |
LOG_LEVEL |
Logging level (debug, info, warn, error) | No | info |
The server provides a comprehensive set of tools for interacting with Azure DevOps. Here are some of the key tools available:
get_me: Get details of the authenticated userlist_organizations: List all accessible organizationslist_projects: List all projects in an organizationget_project: Get details of a specific projectget_project_details: Get comprehensive project detailslist_repositories: List all repositories in a projectget_repository: Get details of a specific repositoryget_file_content: Get content of a file from a repositorycreate_branch: Create a new branchcreate_commit: Commit file changes to a branchget_work_item: Retrieve a work item by IDcreate_work_item: Create a new work itemupdate_work_item: Update an existing work itemlist_work_items: List work items in a projectsearch_code: Search for code across repositoriessearch_wiki: Search for content across wiki pagessearch_work_items: Search for work items across projectslist_pipelines: List pipelines in a projectget_pipeline: Get details of a specific pipelinetrigger_pipeline: Trigger a pipeline runcreate_pull_request: Create a new pull requestlist_pull_requests: List pull requests in a repositoryupdate_pull_request: Update an existing pull requestThese tools allow AI assistants to interact with Azure DevOps resources through natural language, making it easier to perform common DevOps tasks and access information.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "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"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"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"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"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"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect