MCP Azure DevOps Server
The MCP Azure DevOps Server enables AI agents to interact with Azure DevOps projects through comprehensive tools for managing work items, wikis, repositories, and organizational context.
Work Item Management - Full CRUD operations for work items (Epic, User Story, Task, Bug) with WIQL search capabilities, relation management, comments retrieval, and access to metadata including types, states, fields, and valid transitions.
Wiki Management - Complete CRUD operations for wikis and wiki pages with enhanced helper methods including safe updates with automatic retry, intelligent creation/updates, content search, hierarchical navigation, bulk operations, page suggestions, and recent activity tracking.
Repository Management - Read-only access to list repositories and files, and retrieve file content from any repository.
Project & Server Management - Set/clear project context for streamlined operations, list all organizational projects, access comprehensive tool documentation, and perform health checks for server and Azure DevOps connectivity.
Additional Features - User management capabilities (under development, requires Graph permissions) and planned future enhancements for repository write operations and pipeline management.
The project was inspired by the mcp-atlassian server, which provides similar functionality for Jira and Confluence, though this MCP doesn't directly integrate with Atlassian services.
Enables read-only repository management including listing repositories, files, and retrieving file content from Azure DevOps Git repositories.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Azure DevOps Server create a bug work item for the login page issue"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-azure-devops
An open-source Model Context Protocol (MCP) server for seamless integration with Azure DevOps.
Mission
To create a robust, open-source Model Context Protocol (MCP) server that provides seamless integration with Azure DevOps. This server will empower AI agents to interact with Azure DevOps projects, managing work items, wikis, and repositories, thereby streamlining development workflows.
Related MCP server: Azure DevOps MCP Server
License
This project is licensed under the MIT License. See the LICENSE file for details.
Core Features
The MCP server will expose a set of tools to interact with Azure DevOps, categorized by area.
Implemented Features
Work Item Management (CRUD)
create_work_item(supports Epic, User Story, Task, Bug, and work item linking)get_work_item(by ID)update_work_item(by ID, supports work item linking)delete_work_item(by ID)search_work_items(using WIQL - Work Item Query Language)get_work_item_comments(retrieve comments for a work item with pagination support)
Wiki Management (CRUD)
create_wiki_pageget_wiki_page(by path)update_wiki_page(by path)delete_wiki_page(by path)list_wiki_pagesget_wikiscreate_wiki
Enhanced Wiki Helper Methods
update_wiki_page_safe: Safely updates a wiki page with automatic retry on version conflictscreate_or_update_wiki_page_smart: Creates a new wiki page or updates existing one intelligentlysearch_wiki_pages: Search for wiki pages by title or contentget_wiki_page_tree: Get hierarchical structure of wiki pagesfind_wiki_by_name: Find wikis by partial name matchget_wiki_page_by_title: Find wiki page by title instead of exact pathlist_all_wikis_in_organization: List all wikis across all projects in the organizationget_recent_wiki_pages: Get recently modified wiki pagesget_wiki_page_suggestions: Get page suggestions based on partial inputcreate_wiki_pages_batch: Create multiple wiki pages at once
Repository Management (Read-only)
list_repositorieslist_files(in a repository)get_file_content
Project Scoping
set_project_context: A special tool to set the active project for subsequent commands.clear_project_context: To revert to the organization-level scope.get_projects: To list all projects in the organization.
Server Documentation
list_available_tools: Lists all available tools.get_tool_documentation: Gets the documentation for a specific tool.
User Management (Under Development)
list_users: Lists all users in the organization.Note: This feature is currently under development and requires a Personal Access Token (PAT) with Graph (Read) permissions.
Planned Features
Repository Management (Write operations):
create_repositorycreate_pull_requestmanage_branches
Pipeline Management:
trigger_buildget_build_statuslist_pipelines
Getting Started
This guide will walk you through setting up the mcp-azure-devops server.
Prerequisites
Python 3.10 or higher
pipandvenvfor managing Python packages
Installation Steps
Clone the Repository:
git clone https://github.com/xrmghost/mcp-azure-devops.git cd mcp-azure-devopsCreate and Activate a Virtual Environment: It's highly recommended to use a virtual environment to manage the project's dependencies.
# For Windows python -m venv .venv .\.venv\Scripts\activate # For macOS/Linux python3 -m venv .venv source .venv/bin/activateInstall Dependencies: Install the project and its dependencies in editable mode.
pip install -e .Validate Your Setup: Run the validation script to ensure everything is configured correctly:
python validate_setup.pyThis script will check your Python version, dependencies, environment variables, and Azure DevOps connectivity.
Configuration
Generate an Azure DevOps Personal Access Token (PAT):
Navigate to your Azure DevOps organization.
Go to User settings > Personal Access Tokens.
Click + New Token.
Give your token a name (e.g.,
mcp-server-token).Select the organization.
Set the expiration date.
For the scopes, you will need to grant the following permissions at a minimum:
Work Items: Read & write
Wiki: Read & write
Code: Read
Graph: Read (for the
list_usersfeature)
Click Create and copy the token immediately. You will not be able to see it again.
Configure the MCP Server in Cline:
Open your
cline_mcp_settings.jsonfile.Note: The location of this file can vary. A common location on Windows is
C:\Users\<YourUsername>\AppData\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json. If you can't find it, you can search your user's home directory for the file.Add a new entry for the
mcp-azure-devopsserver. The command should bemcp-azure-devops.
Here is an example configuration. You must use the full, absolute path to the
mcp-azure-devops.exeexecutable created inside your virtual environment.{ "mcpServers": { "mcp-azure-devops": { "command": "C:\\path\\to\\your\\project\\mcp-azure-devops\\.venv\\Scripts\\mcp-azure-devops.exe", "args": [], "env": { "AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-organization", "AZURE_DEVOPS_PAT": "your-personal-access-token" }, "disabled": false, "autoApprove": [] } } }Replace
your-organizationwith your Azure DevOps organization name andyour-personal-access-tokenwith the PAT you generated.
Restart Cline: Restart your Cline application to load the new MCP server.
Troubleshooting
If you encounter issues with the MCP server, follow these steps:
Quick Diagnosis
Run the validation script:
python validate_setup.pyThis will identify common configuration and setup issues.
Check server logs:
python -m mcp_azure_devops.server 2> server.logLook for error messages in the log output.
Common Issues
"No tools found" in VS Code
Cause: MCP protocol communication issues or incorrect configuration
Solution: Verify your
cline_mcp_settings.jsonconfiguration and restart VS Code
Server fails to start
Cause: Missing dependencies or environment variables
Solution: Run
python validate_setup.pyto identify specific issues
Azure DevOps connection failures
Cause: Invalid PAT or network issues
Solution: Verify your Personal Access Token and organization URL
For detailed troubleshooting guidance, see the Troubleshooting Guide.
Built-in Diagnostics
The server includes a health check tool that you can use to verify everything is working:
{
"tool": "server_health_check",
"arguments": {}
}This will return comprehensive status information about your server configuration and Azure DevOps connectivity.
Wiki Helper Methods
The server includes enhanced wiki helper methods that solve common issues with wiki management:
Update Failures: Safe update methods with automatic retry on version conflicts
Navigation Difficulties: Search and discovery methods to find wikis and pages easily
Limited Helper Methods: Comprehensive set of helper methods for better user experience
For detailed usage instructions and examples, see the Wiki Helper Methods Guide.
Acknowledgements
This project was inspired by the mcp-atlassian server, which provides similar functionality for Jira and Confluence. You can find it here: https://github.com/pashpashpash/mcp-atlassian.
Available Tools
37 toolsclear_project_contextB
Clears the project context, reverting to organization-level scope.
Inputs: no named parameters.
create_or_update_wiki_page_smartC
Creates a new wiki page or updates existing one intelligently.
Inputs: project (required), wiki_identifier (required), path (required), content (required).
create_wikiC
Creates a new wiki in a project.
Inputs: project (required), name (required).
create_wiki_pageC
Creates a new wiki page with specified content.
Inputs: project (required), wiki_identifier (required), path (required), content (required).
create_wiki_pages_batchB
Create multiple wiki pages at once for bulk operations.
Inputs: project (required), wiki_identifier (required), pages_data (required).
create_work_itemB
Creates a new work item in Azure DevOps. Supports Epic, User Story, Task, Bug, and work item linking.
Inputs: project (required), work_item_type (required), title (required), description (required), +1 more.
delete_wiki_pageC
Deletes a wiki page by its path.
Inputs: project (required), wiki_identifier (required), path (required).
delete_work_itemC
Deletes a work item by its ID.
Inputs: work_item_id (required).
find_wiki_by_nameA
Find wikis by partial name match when you don't know the exact wiki name.
Inputs: project (required), partial_name (required).
get_file_contentC
Gets the content of a file in a repository.
Inputs: project (required), repository_id (required), path (required).
get_projectsB
Gets a list of all projects in the organization.
Inputs: no named parameters.
get_recent_wiki_pagesB
Get recently modified wiki pages based on activity.
Inputs: project (required), wiki_identifier (required), limit.
get_tool_documentationC
Gets detailed documentation for a specific tool including parameters and examples.
Inputs: tool_name (required).
get_wiki_pageC
Gets a wiki page by its path.
Inputs: project (required), wiki_identifier (required), path (required).
get_wiki_page_by_titleB
Find a wiki page by title instead of exact path - useful for navigation.
Inputs: project (required), wiki_identifier (required), title (required).
get_wiki_page_suggestionsB
Get page suggestions based on partial input - useful for autocomplete-like functionality.
Inputs: project (required), wiki_identifier (required), partial_input (required).
get_wiki_page_treeB
Get hierarchical structure of wiki pages for better navigation.
Inputs: project (required), wiki_identifier (required).
get_wikisC
Gets all wikis in a project.
Inputs: project (required).
get_work_itemC
Gets a work item by its ID with optional field expansion.
Inputs: work_item_id (required), expand.
get_work_item_commentsC
Gets comments for a specific work item with pagination support.
Inputs: work_item_id (required), project, top, continuation_token, +3 more.
get_work_item_fieldsC
Get all work item fields available in a project with metadata for smart field updates.
Inputs: project (required).
get_work_item_statesB
Get all possible states for a specific work item type to help with accurate status updates.
Inputs: project (required), work_item_type (required).
get_work_item_transitionsB
Get valid state transitions for a work item type from a specific state to ensure proper workflow.
Inputs: project (required), work_item_type (required), from_state (required).
get_work_item_typesC
Get all work item types available in a project to help with smart work item management.
Inputs: project (required).
list_all_wikis_in_organizationA
List all wikis across all projects in the organization for cross-project discovery.
Inputs: no named parameters.
list_filesB
Lists files in a repository at a specified path.
Inputs: project (required), repository_id (required), path (required).
list_repositoriesC
Lists all repositories in a project.
Inputs: project (required).
list_toolsB
Lists all available tools with their names.
Inputs: no named parameters.
list_wiki_pagesC
Lists all pages in a wiki.
Inputs: project (required), wiki_identifier (required).
move_wiki_pageA
Move a wiki page from one location to another atomically. Perfect for reorganizing wiki structure.
Inputs: project (required), wiki_identifier (required), from_path (required), to_path (required).
search_wiki_pagesC
Search for wiki pages by title or content.
Inputs: project (required), wiki_identifier (required), search_term (required).
search_work_itemsC
Searches for work items using a WIQL (Work Item Query Language) query.
Inputs: project (required), wiql_query (required).
server_health_checkB
Performs a comprehensive health check of the server and Azure DevOps connection.
Inputs: no named parameters.
set_project_contextB
Sets the project context for subsequent commands to avoid repeating project parameter.
Inputs: project (required).
update_wiki_pageC
Updates an existing wiki page with new content.
Inputs: project (required), wiki_identifier (required), path (required), content (required).
update_wiki_page_safeA
Safely updates a wiki page with automatic retry on version conflicts.
Inputs: project (required), wiki_identifier (required), path (required), content (required), +1 more.
update_work_itemC
Updates a work item by its ID with field changes and relation management.
Inputs: work_item_id (required), updates (required), relations.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 37 tools
The tool set shows clear grouping into wikis, work items, and general operations, but there is significant overlap within the wiki category (e.g., create_wiki_page, create_or_update_wiki_page_smart, update_wiki_page, update_wiki_page_safe) that could cause confusion about which tool to use for specific scenarios. The work item tools are better distinguished, with clear purposes for creation, retrieval, updating, and deletion.
Most tools follow a consistent verb_noun pattern (e.g., create_wiki, delete_work_item, get_projects), which aids predictability. However, there are minor deviations like create_or_update_wiki_page_smart (longer name with 'smart' suffix) and server_health_check (uses underscore but deviates from the typical action-object pattern), slightly reducing consistency.
With 37 tools, the count is excessive for an Azure DevOps server, leading to potential overwhelm and redundancy. While Azure DevOps is a broad platform, the tool set includes many specialized or overlapping tools (e.g., multiple wiki update methods) that could have been consolidated, making it feel heavy and less scoped.
The tool set provides comprehensive coverage for wikis and work items, including CRUD operations, search, and advanced features like state transitions and batch operations. Minor gaps exist, such as lack of tools for repository management beyond listing and file content retrieval, but core workflows for the covered domains are well-supported.
Related MCP Connectors
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for building and testing AI agents with multi-model experimentation and insights.
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThis server provides a convenient API for interacting with Azure DevOps services, enabling AI assistants and other tools to manage work items, code repositories, boards, sprints, and more. Built with the Model Context Protocol, it provides a standardized interface for communicating with Azure DevOps75 npm60MIT
- AlicenseCqualityAmaintenanceA Model Context Protocol server that enables AI assistants to interact with Azure DevOps resources including projects, work items, repositories, pull requests, branches, and pipelines through a standardized protocol.60403MIT
- -licenseNot gradedqualityNot gradedmaintenanceA reference server implementation for the Model Context Protocol that enables AI assistants to interact with Azure DevOps resources and perform operations such as project management, work item tracking, repository operations, and code search programmatically.7-
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables AI assistants to interact with Azure DevOps services, allowing users to query work items with plans to support creating/updating items, managing pipelines, handling pull requests, and administering sprints and branch policies.2138 PyPI79MIT