jaybird-us/azure-devops-mcp
If you are the rightful owner of azure-devops-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Azure DevOps MCP Server is a tool that allows seamless interaction with Azure DevOps work items, projects, and boards using natural language through the Model Context Protocol.
Azure DevOps MCP Server
A Model Context Protocol (MCP) server that enables Claude to interact with Azure DevOps work items, projects, and boards directly through natural language.
Version 2.2.0 - Now with 30 tools including work item relationship management
šÆ Features
-
Project Management
- List all projects in your Azure DevOps organization
- Get detailed project information and statistics
-
Sprint & Iteration Management š
- List all iterations/sprints in a project
- Get the current active sprint
- View work items in specific iterations
- Move work items between sprints
- Get detailed iteration statistics
-
Work Item Operations
- Query work items using WIQL or predefined shortcuts
- Create new work items (Tasks, Bugs, User Stories, Features, Epics, Issues)
- Update existing work items (title, state, assignee, description)
- Add comments and discussions to work items
- Get detailed work item information
-
Personal Productivity
- List all work items assigned to you
- View items organized by state
- Include recently completed items
- Use smart query shortcuts (
my-items
,my-bugs
,my-tasks
,recent
)
-
Work Item Relationships š
- Add relationships between work items (Parent/Child, Related, Dependencies)
- Remove relationships between work items
- View all relationships for a work item
- List available relationship types
- Build work item hierarchies (Epic ā Feature ā Story ā Task)
- Track dependencies and mark duplicates
š Prerequisites
Before installing this MCP server, ensure you have:
-
Node.js (v18.0.0 or higher)
node --version # Should output v18.0.0 or higher
-
Azure CLI installed and configured
# Install Azure CLI (if not already installed) # macOS brew install azure-cli # Windows winget install Microsoft.AzureCLI # Linux/WSL curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
-
Azure DevOps Extension for Azure CLI
az extension add --name azure-devops
-
Azure Authentication
# Login to Azure az login # Optional: Set default organization (the tool will auto-configure if not set) az devops configure --defaults organization=https://dev.azure.com/YOUR_ORG
š Installation
Option 1: Install from npm (Recommended)
npm install -g @jybrd/azure-devops-mcp
Option 2: Install from Source
# Clone the repository
git clone https://github.com/jaybird-us/azure-devops-mcp.git
cd azure-devops-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Optional: Link globally
npm link
āļø Configuration
Claude Desktop Setup
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"azure-devops": {
"command": "npx",
"args": ["@jybrd/azure-devops-mcp"],
"env": {
"AZURE_DEVOPS_ORG": "https://dev.azure.com/YOUR_ORG"
}
}
}
}
For local development installation:
{
"mcpServers": {
"azure-devops": {
"command": "node",
"args": ["/absolute/path/to/azure-devops-mcp/dist/index.js"],
"env": {
"AZURE_DEVOPS_ORG": "https://dev.azure.com/YOUR_ORG"
}
}
}
}
Environment Configuration (Required)
You must configure your Azure DevOps organization in one of two ways:
Option 1: In Claude Desktop config (Recommended)
- Add the
"env"
section with your organization URL as shown above
Option 2: Via Azure CLI
az devops configure --defaults organization=https://dev.azure.com/YOUR_ORG
š ļø Available Tools (30 Total)
Categories:
- Work Items (6 tools): Query, create, update, comment on work items
- Discovery (9 tools): Explore fields, types, states, and relationships
- Projects (6 tools): Manage projects, teams, repos, and pipelines
- Iterations (5 tools): Handle sprints and iteration planning
- Relations (4 tools): Manage work item relationships and hierarchies
Note: Query management tools have been removed in v2.1.0 for improved reliability
list_projects
Lists all projects in your Azure DevOps organization with details including name, description, state, and visibility.
query_work_items
Query work items using WIQL or built-in shortcuts:
"my-items"
- All items assigned to you"my-bugs"
- Bugs assigned to you"my-tasks"
- Tasks assigned to you"recent"
- Recently modified items (last 7 days)- Custom WIQL queries for advanced filtering
Parameters:
query
(required): WIQL query or shortcut nameproject
(optional): Limit results to specific project
get_work_item
Retrieve detailed information about a specific work item.
Parameters:
id
(required): Work item IDfields
(optional): Comma-separated list of specific fields to retrieve
create_work_item
Create a new work item in Azure DevOps.
Parameters:
type
(required): Work item type (Task, Bug, User Story, Feature, Epic, Issue)title
(required): Work item titledescription
(optional): Detailed descriptionassigned_to
(optional): Assignee email or "@Me"tags
(optional): Semicolon-separated tagsproject
(optional): Target project name
update_work_item
Update an existing work item.
Parameters:
id
(required): Work item IDtitle
(optional): New titlestate
(optional): New state (New, Active, Resolved, Closed, Removed)assigned_to
(optional): New assigneedescription
(optional): New descriptioncomment
(optional): Add a comment with the update
add_comment
Add a comment to an existing work item.
Parameters:
id
(required): Work item IDcomment
(required): Comment text
list_my_work
List all work items assigned to you, organized by state.
Parameters:
include_recently_completed
(optional): Include items completed in the last 7 days
Sprint & Iteration Tools š
list_iterations
List all iterations/sprints in a project.
Parameters:
project
(required): Project nameteam
(optional): Team namedepth
(optional): Depth of iteration tree
get_current_iteration
Get the current active sprint/iteration.
Parameters:
project
(required): Project nameteam
(optional): Team name
get_iteration_work_items
Get all work items in a specific iteration.
Parameters:
project
(required): Project nameiteration
(required): Iteration name or path
move_to_iteration
Move a work item to a different iteration/sprint.
Parameters:
id
(required): Work item IDiteration
(required): Target iteration nameproject
(optional): Project name
get_iteration_details
Get detailed information about an iteration including work items grouped by type and state.
Parameters:
project
(required): Project nameiteration
(required): Iteration name
Work Item Relationship Tools š
add_work_item_relation
Add a relationship between work items.
Parameters:
id
(required): Source work item IDrelation_type
(required): Relationship type (e.g., "Parent", "Child", "Related", "Predecessor", "Successor", "Duplicate")target_id
(optional): Target work item ID(s) - can be single ID or arraytarget_url
(optional): URL to target work item (alternative to target_id)
remove_work_item_relation
Remove a relationship between work items.
Parameters:
id
(required): Source work item IDrelation_type
(required): Relationship type to removetarget_id
(required): Target work item ID(s) to unlink
get_work_item_relations
Show all relationships for a work item with friendly categorization.
Parameters:
id
(required): Work item ID
list_relation_types
List all available work item relation types in Azure DevOps.
Parameters: None
š¬ Usage Examples
Once configured, you can ask Claude:
Work Item Management:
- "List all my Azure DevOps projects"
- "Show me my active work items"
- "Create a new bug titled 'Login page error' in the WebApp project"
- "Add a comment to work item 754 saying 'Fixed in latest commit'"
- "Update task 281 to Completed state"
- "What bugs are assigned to me?"
- "Show me work items that changed this week"
Sprint Management:
- "List all sprints in the WebApp project"
- "What's in our current sprint?"
- "Move task 123 to the next sprint"
- "Show me all work items in Sprint 5"
- "Get details about Sprint 3"
Relationship Management:
- "Add work item 456 as a parent of task 123"
- "Show all relationships for work item 789"
- "Mark work item 101 as a duplicate of 102"
- "Add task 234 as a predecessor to task 567"
- "Remove the relationship between items 333 and 444"
- "What work items are related to epic 100?"
- "List all available relationship types"
š§ Development
Running from Source
# Install dependencies
npm install
# Run in development mode (with TypeScript)
npm run dev
# Build for production
npm run build
# Run production build
node dist/index.js
Project Structure
azure-devops-mcp/
āāā src/
ā āāā index.ts # Main server implementation
āāā dist/
ā āāā index.js # Compiled JavaScript (generated)
āāā package.json # Package configuration
āāā tsconfig.json # TypeScript configuration
āāā README.md # This file
āāā LICENSE # MIT license
š Troubleshooting
Common Issues
-
"Error: Cannot find module"
- Run
npm install
to install dependencies - Ensure you've built the project with
npm run build
- Run
-
"az: command not found"
- Install Azure CLI following the prerequisites section
- Ensure Azure CLI is in your system PATH
-
"ERROR: Access Denied"
- Run
az login
to authenticate - Verify you have appropriate permissions in Azure DevOps
- Run
-
"Organization not configured"
- The tool will auto-configure, but you can manually set:
az devops configure --defaults organization=https://dev.azure.com/YOUR_ORG
Debug Mode
To see detailed error messages, run the server directly:
node dist/index.js
š License
This project is licensed under the MIT License - see the file for details.
ā ļø Disclaimer
This is an unofficial tool that interfaces with Azure DevOps through the Azure CLI. It is not affiliated with or endorsed by Microsoft Corporation. Azure DevOps is a trademark of Microsoft Corporation.
Users must have their own Azure DevOps account and appropriate licenses to use Azure DevOps services. This tool simply provides an interface to interact with Azure DevOps through the Model Context Protocol.
š¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
š Acknowledgments
- Built for use with Claude by Anthropic
- Powered by Azure DevOps and Azure CLI
- Implements the Model Context Protocol
š§ Support
For issues, questions, or suggestions, please open an issue on GitHub.
Made with ā¤ļø for the MCP community