Azure DevOps MCP Server
Enables interaction with Azure DevOps work items through AI assistants like VS Code/GitHub Copilot. Supports fetching work item details and updating work item statuses using natural language commands.
README
Azure DevOps MCP Server
A Model Context Protocol (MCP) server that integrates Azure DevOps with VS Code/GitHub Copilot and other MCP-compatible clients. This server allows you to fetch work item details and update work item statuses directly from your AI assistant.
Features
-
Get Work Item Details: Fetch comprehensive information about any work item including:
- Title, type, state, and assigned user
- Description and steps to reproduce (for bugs)
- All comments with authors and timestamps
- Metadata (creation date, last modified, area path, iteration, tags)
-
Update Work Item Status: Change the state/status of work items (e.g., from "New" to "Active", "Resolved" to "Closed")
Prerequisites
- Python 3.10 or higher
- An Azure DevOps account with access to a project
- A Personal Access Token (PAT) with Work Items Read & Write permissions
Installation
Option 1: Install from GitHub (Easiest for Users)
pip install git+https://github.com/Akshay-Quorum2145/ADO-MCP.git
MCP Config (without venv):
{
"servers": {
"ado": {
"type": "stdio",
"command": "python",
"args": ["-m", "ado_mcp.server"],
"env": {
"ADO_ORGANIZATION": "your-org",
"ADO_PROJECT": "your-project",
"ADO_PAT": "your-pat"
}
}
}
}
MCP Config (with venv):
{
"servers": {
"ado": {
"type": "stdio",
"command": "C:\\path\\to\\venv\\Scripts\\python.exe",
"args": ["-m", "ado_mcp.server"],
"env": {
"ADO_ORGANIZATION": "your-org",
"ADO_PROJECT": "your-project",
"ADO_PAT": "your-pat"
}
}
}
}
Option 2: Clone for Development
-
Clone or download this repository
-
Install the package:
pip install -e .Or for development with optional dependencies:
pip install -e ".[dev]"
Configuration
Step 1: Create a Personal Access Token (PAT)
- Go to your Azure DevOps organization:
https://dev.azure.com/[your-organization] - Click on your profile icon (top right) → Personal access tokens
- Click + New Token
- Configure the token:
- Name: Give it a descriptive name (e.g., "MCP Server Access")
- Organization: Select your organization
- Expiration: Set an appropriate expiration date
- Scopes: Select Custom defined and check:
- Work Items: Read, Write
- Click Create
- IMPORTANT: Copy the token immediately (you won't be able to see it again)
Step 2: Configure VS Code / GitHub Copilot
Create an MCP configuration file in your workspace or global settings:
Create .vscode/mcp.json or your MCP config location:
Without venv:
{
"servers": {
"ado": {
"type": "stdio",
"command": "python",
"args": ["-m", "ado_mcp.server"],
"env": {
"ADO_ORGANIZATION": "your-organization-name",
"ADO_PROJECT": "your-project-name",
"ADO_PAT": "your-personal-access-token"
}
}
}
}
With venv (use full Python path):
{
"servers": {
"ado": {
"type": "stdio",
"command": "C:\\path\\to\\venv\\Scripts\\python.exe",
"args": ["-m", "ado_mcp.server"],
"env": {
"ADO_ORGANIZATION": "your-organization-name",
"ADO_PROJECT": "your-project-name",
"ADO_PAT": "your-personal-access-token"
}
}
}
}
Restart VS Code.
Usage
Once configured, you can interact with Azure DevOps through GitHub Copilot Chat or any MCP-compatible client:
Get Work Item Details
Get details for work item 12345
or
Show me information about ADO work item 12345
Update Work Item Status
Change work item 12345 status to Active
or
Update the state of work item 12345 to Resolved
Available Tools
get_work_item
Retrieves detailed information about a work item.
Parameters:
work_item_id(integer, required): The ID of the work item
Returns:
- Complete work item details including description, comments, status, and metadata
update_work_item_status
Updates the state/status of a work item.
Parameters:
work_item_id(integer, required): The ID of the work itemnew_state(string, required): The new state (e.g., "Active", "Resolved", "Closed")
Returns:
- Confirmation with updated work item details
Note: Available states depend on your work item type and process template (Agile, Scrum, CMMI, etc.). Common states include:
- New, Active, Resolved, Closed, Removed (for Bugs)
- New, Active, Closed, Removed (for Tasks)
- New, Active, Resolved, Closed, Removed (for User Stories)
Troubleshooting
Authentication Issues
-
Error: "Missing required environment variables"
- Ensure your
.envfile exists and contains all three required variables - Check that the MCP settings correctly reference the environment variables or
.envfile location
- Ensure your
-
Error: "Failed to initialize Azure DevOps client"
- Verify your PAT is valid and hasn't expired
- Ensure your PAT has Work Items Read & Write permissions
- Check that your organization and project names are correct
Work Item Issues
-
Error: "Failed to get work item"
- Verify the work item ID exists in your project
- Ensure you have permission to view the work item
- Check that you're connected to the correct project
-
Error: "Failed to update work item state"
- Verify the new state is valid for the work item type
- Ensure the state transition is allowed (some transitions may be restricted by workflow rules)
- Check that you have permission to edit the work item
Development
To contribute or modify the server:
-
Install development dependencies:
pip install -e ".[dev]" -
Run tests (when available):
pytest -
Format code:
black src/
Security Notes
- Never commit your
.envfile or expose your PAT - The
.gitignorefile is configured to exclude.envfiles - Consider using short-lived PATs and rotating them regularly
- Use the minimum required scopes for your PAT (Read & Write for Work Items)
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.