Azure DevOps MCP Server for Cursor

Azure DevOps MCP Server for Cursor

Enables interaction with Azure DevOps through natural language in Cursor IDE. Supports work item management, pull requests, builds, releases, test management, and guided workflows for development teams, QA testers, and release management.

Category
Visit Server

README

Azure DevOps MCP Server for Cursor ๐Ÿš€

Built specifically for Cursor IDE - Control Azure DevOps with natural language!

โšก What is this?

A tool that lets you talk to Azure DevOps in plain English, right from Cursor's chat. No commands to memorize!

Examples:

  • "Show my work items"
  • "Create a bug for the login issue"
  • "What PRs need my review?"
  • "Run the main build"

๐Ÿšจ IMPORTANT: Do Everything in Cursor When Possible! ๐Ÿšจ

This guide assumes you're using Cursor IDE. If you don't have it yet, download Cursor here.


๐Ÿ“ฆ Installation Guide (5 minutes)

๐ŸŽฏ Step 1: Clone the Project IN CURSOR

  1. Open Cursor IDE
  2. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  3. Type "Git: Clone" and select it
  4. Paste: https://github.com/EreAlexandru/ADOMCPLocalServer.git
  5. Choose where to save it (remember this location!)
  6. Click "Open" when Cursor asks

You're now in the project folder in Cursor! โœ…

๐Ÿ”จ Step 2: Install Dependencies IN CURSOR

  1. In Cursor, press Ctrl+` to open the terminal
  2. You should see something like C:\...\ADOMCPLocalServer>
  3. Type these commands:
    npm install
    npm run build
    
  4. Wait for it to finish (about 30 seconds)

Alternative for Windows: You can also double-click install.bat in the file explorer

๐Ÿ”‘ Step 3: Get Your Azure DevOps Token

  1. Open your browser and go to:

    https://dev.azure.com/YOUR-ORG-NAME/_usersSettings/tokens
    

    Replace YOUR-ORG-NAME with your organization!

    ๐Ÿ“ How to find your organization name:

    • Look at your Azure DevOps URL
    • If it's https://dev.azure.com/contoso/MyProject โ†’ org is contoso
    • If it's https://contoso.visualstudio.com/ โ†’ org is contoso
  2. Click "+ New Token"

  3. Name it: "Cursor MCP"

  4. Expiration: 90 days (recommended)

  5. Scopes: Click "Custom defined" then check:

    • โœ… Work Items (Read, Write & Manage)
    • โœ… Code (Read)
    • โœ… Build (Read & Execute)
    • โœ… Release (Read, Write & Execute)
    • โœ… Test Management (Read & Write)
    • โœ… Wiki (Read & Write)
  6. Click "Create"

  7. COPY THE TOKEN NOW! You won't see it again!

๐Ÿ” Step 4: Create .env File IN THE RIGHT PLACE!

โš ๏ธ CRITICAL: The .env file goes in the ROOT folder, NOT in src/ or dist/! โš ๏ธ

Option A: Using Cursor (Recommended) ๐Ÿ‘ˆ

  1. In Cursor, right-click on the root folder (ADOMCPLocalServer)
  2. Select "New File"
  3. Name it exactly: .env (yes, starting with a dot!)
  4. Paste this (replace with your values):
    AZURE_DEVOPS_ORG=your-organization-name
    AZURE_DEVOPS_PAT=your-token-from-step-3
    
  5. Save with Ctrl+S

Option B: Using setup.bat (Windows only)

  1. Double-click setup.bat in the root folder
  2. Enter your organization name when asked
  3. Paste your token when asked
  4. It creates the .env file for you!

Option C: Manual (if above doesn't work)

  1. Open Notepad
  2. Paste:
    AZURE_DEVOPS_ORG=your-organization-name
    AZURE_DEVOPS_PAT=your-token-here
    
  3. File โ†’ Save As
  4. Navigate to the ADOMCPLocalServer folder (NOT src or dist!)
  5. File name: .env (with the dot!)
  6. Save as type: All Files (.)
  7. Click Save

๐Ÿ“ Correct File Structure:

ADOMCPLocalServer/
โ”œโ”€โ”€ .env              โ† YOUR .ENV FILE GOES HERE!
โ”œโ”€โ”€ src/              โ† NOT HERE!
โ”œโ”€โ”€ dist/             โ† NOT HERE!
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ install.bat
โ””โ”€โ”€ README.md

๐Ÿ”Œ Step 5: Connect to Cursor

  1. In Cursor, go to File โ†’ Preferences โ†’ Cursor Settings
  2. In the left sidebar, find "Tools & Integration"
  3. Click "New MCP Server"
  4. DELETE EVERYTHING in the box and paste this:
{
  "mcpServers": {
    "azure-devops": {
      "command": "node",
      "args": ["C:/PATH/TO/YOUR/ADOMCPLocalServer/dist/index.js"]
    }
  }
}
  1. IMPORTANT: Replace C:/PATH/TO/YOUR/ with your actual path!

    How to find your path:

    • In Cursor, look at the top of the window
    • Or right-click on any file โ†’ "Copy Path"
    • Use FORWARD SLASHES (/) not backslashes ()

    Examples:

    • โœ… Windows: "C:/Users/John/Projects/ADOMCPLocalServer/dist/index.js"
    • โœ… Mac: "/Users/john/Projects/ADOMCPLocalServer/dist/index.js"
    • โŒ WRONG: "C:\Users\John\..." (backslashes don't work!)
  2. Click outside the box to save

๐Ÿ”„ Step 6: Restart Cursor

THIS IS REQUIRED! Close Cursor completely and open it again.

โœ… Step 7: Verify It Works

  1. After restarting, go to File โ†’ Preferences โ†’ Cursor Settings โ†’ Tools & Integration
  2. Find "azure-devops" in the list
  3. You should see a green dot โœ… = Connected!
  4. Click on it to see all 60+ available tools

No green dot? See Troubleshooting

๐ŸŽ‰ Step 8: Test It!

  1. Open a new chat in Cursor (Ctrl+L)
  2. Type: "List my Azure DevOps projects"
  3. You should see your projects!

๐Ÿ†˜ Troubleshooting

๐Ÿ” Quick Diagnostic (Windows)

Double-click check-env.bat to automatically check your setup!

โŒ Common Issues

"No green dot / Not connected"

  1. Did you restart Cursor after adding the server?
  2. Is your path correct in settings? (forward slashes!)
  3. Did you run npm run build?
  4. Is the .env file in the ROOT folder?

"Authentication failed"

  1. Check your .env file location (must be in root folder!)
  2. Is your organization name spelled correctly?
  3. Did you copy the ENTIRE token?
  4. Has your token expired?

"Can't find .env file"

  • The .env file should be in the ROOT folder:
    ADOMCPLocalServer/.env โ† HERE!
    NOT in:
    - ADOMCPLocalServer/src/.env โŒ
    - ADOMCPLocalServer/dist/.env โŒ
    

To verify your .env location:

  1. In Cursor terminal, type: dir .env (Windows) or ls -la .env (Mac/Linux)
  2. You should see the file listed

๐Ÿงช Test Your Connection

Run this in the Cursor terminal:

node test-connection.js

This will show:

  • โœ… If your credentials work
  • ๐Ÿ“ What projects you have access to
  • โŒ Any connection errors

๐Ÿ’ฌ What You Can Ask

Just type naturally in Cursor's chat:

Daily Tasks:

  • "Show my active work items"
  • "What did I work on yesterday?"
  • "Create a bug for the login issue"

Code Reviews:

  • "Show PRs waiting for my review"
  • "Create a PR from feature/login to main"
  • "What PRs are older than 3 days?"

Builds & Releases:

  • "Run the CI build"
  • "Show failed builds from today"
  • "Deploy release to staging"

Sprint Management:

  • "Show sprint 23 progress"
  • "What items are blocked?"
  • "Calculate team velocity"

๐ŸŽช Advanced: Guided Workflows

Ask for help with complex tasks:

๐Ÿ‘ฅ For Development Teams:

  • "Help me prepare for standup"
  • "Guide me through sprint planning"
  • "Show sprint retrospective data"
  • "Analyze build health"

๐Ÿงช For QA Manual Testers:

  • "Show test execution status"
  • "Analyze failed tests patterns"
  • "Generate test coverage report"
  • "Check test environment health"

๐Ÿค– For QA Automation Engineers:

  • "Find flaky tests in automation"
  • "Analyze automation test results"
  • "Identify tests needing automation"
  • "Show performance test trends"

๐Ÿš€ For Release Management:

  • "Check release readiness"
  • "Analyze defect leakage"
  • "Review test data requirements"

Total: 24 guided workflows covering development, manual testing, automation, and release management!

The AI will guide you step-by-step through each process!


๐Ÿ”’ Security

  • โœ… Runs 100% locally on YOUR computer
  • โœ… Your token never leaves your machine
  • โœ… Can only do what YOU have permission for
  • โœ… Open source - check the code yourself!

๐Ÿ“ For Developers

Made changes? Rebuild with:

npm run build

Then restart the server in Cursor settings (disable/enable).


๐Ÿ› Still Having Issues?

  1. Make sure you're using Cursor IDE (not VS Code)
  2. Check the .env file is in the root folder
  3. Use forward slashes in the path
  4. Restart Cursor after any changes

Need help? Open an issue: https://github.com/EreAlexandru/ADOMCPLocalServer/issues


License: MIT - Use it however you want! ๐ŸŽ‰

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured