@mmruesch/azure-devops-mcp
v0.1.1
Published
Azure DevOps reference server for the Model Context Protocol (MCP)
Maintainers
Readme
Azure DevOps MCP (Model Context Protocol)
This project serves as a reference server implementation for the Model Context Protocol (MCP) integrated with Azure DevOps. It enables AI assistants to interact with Azure DevOps resources and perform operations programmatically.
Features
- Azure DevOps integration using official Node.js SDK
- Support for Model Context Protocol (MCP)
- Project management operations
- Work item management
- Repository operations
- Code search capabilities
Prerequisites
- Node.js (v18 or higher recommended)
- Azure DevOps account with appropriate permissions
- Azure DevOps Personal Access Token (PAT)
Installation
Option 1: Install as NPM Package (Recommended)
Install the package globally:
npm install -g @mmruesch/azure-devops-mcpOr run directly with npx:
npx @mmruesch/azure-devops-mcpOption 2: Clone the Repository
- Clone the repository:
git clone <repository-url>
cd azure-devops-mcp- Install dependencies:
npm install- Configure environment variables:
- Copy
.env.exampleto.env - Fill in the required environment variables:
- Copy
cp .env.example .envUsage
Running from NPM installation
Create a .env file in your current directory with the required variables, then run:
azure-devops-mcpOr with custom port/host:
azure-devops-mcp --port 4000 --host 0.0.0.0MCP Configuration with Windsurf/Cursor
Add the Azure DevOps MCP server to your mcp_config.json file:
{
"mcpServers": {
"azure-devops": {
"command": "npx",
"args": [
"@mmruesch/azure-devops-mcp"
],
"env": {
"AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-organization",
"AZURE_DEVOPS_PAT": "your-pat-token",
"AZURE_DEVOPS_DEFAULT_PROJECT": "your-project",
"AZURE_DEVOPS_DEFAULT_REPOSITORY": "your-repository"
}
}
}
}Running from Repository
npm startThen add to Cursor/Windsurf:
Make sure you use the path http://localhost:3000/sse. You can change ports by defining one in the env.

Environment Configuration
The following environment variables need to be configured in your .env file or in the mcp_config.json:
AZURE_DEVOPS_ORG_URL: Your Azure DevOps organization URLAZURE_DEVOPS_PAT: Personal Access Token for Azure DevOpsAZURE_DEVOPS_DEFAULT_PROJECT: (Optional) Default project to use when not specified in API callsAZURE_DEVOPS_DEFAULT_REPOSITORY: (Optional) Default repository to use when not specified in API calls- Additional configuration variables as specified in
.env.example
Publishing to NPM
If you've made changes to the package and want to publish a new version:
- Update the version in package.json
- Build and publish the package:
npm login
npm publish --access publicAvailable Scripts
npm run build- Build the TypeScript projectnpm run dev- Run the server in development mode with hot reloadnpm start- Run the production server
License
MIT
