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.
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
- Open Cursor IDE
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type "Git: Clone" and select it
- Paste:
https://github.com/EreAlexandru/ADOMCPLocalServer.git - Choose where to save it (remember this location!)
- Click "Open" when Cursor asks
You're now in the project folder in Cursor! ✅
🔨 Step 2: Install Dependencies IN CURSOR
- In Cursor, press
Ctrl+`to open the terminal - You should see something like
C:\...\ADOMCPLocalServer> - Type these commands:
npm install npm run build - 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
-
Open your browser and go to:
https://dev.azure.com/YOUR-ORG-NAME/_usersSettings/tokensReplace
YOUR-ORG-NAMEwith your organization!📍 How to find your organization name:
- Look at your Azure DevOps URL
- If it's
https://dev.azure.com/contoso/MyProject→ org iscontoso - If it's
https://contoso.visualstudio.com/→ org iscontoso
-
Click "+ New Token"
-
Name it: "Cursor MCP"
-
Expiration: 90 days (recommended)
-
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)
-
Click "Create"
-
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) 👈
- In Cursor, right-click on the root folder (ADOMCPLocalServer)
- Select "New File"
- Name it exactly:
.env(yes, starting with a dot!) - Paste this (replace with your values):
AZURE_DEVOPS_ORG=your-organization-name AZURE_DEVOPS_PAT=your-token-from-step-3 - Save with
Ctrl+S
Option B: Using setup.bat (Windows only)
- Double-click
setup.batin the root folder - Enter your organization name when asked
- Paste your token when asked
- It creates the .env file for you!
Option C: Manual (if above doesn't work)
- Open Notepad
- Paste:
AZURE_DEVOPS_ORG=your-organization-name AZURE_DEVOPS_PAT=your-token-here - File → Save As
- Navigate to the ADOMCPLocalServer folder (NOT src or dist!)
- File name:
.env(with the dot!) - Save as type: All Files (.)
- 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
- In Cursor, go to File → Preferences → Cursor Settings
- In the left sidebar, find "Tools & Integration"
- Click "New MCP Server"
- DELETE EVERYTHING in the box and paste this:
{
"mcpServers": {
"azure-devops": {
"command": "node",
"args": ["C:/PATH/TO/YOUR/ADOMCPLocalServer/dist/index.js"]
}
}
}
-
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!)
-
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
- After restarting, go to File → Preferences → Cursor Settings → Tools & Integration
- Find "azure-devops" in the list
- You should see a green dot ✅ = Connected!
- Click on it to see all 60+ available tools
No green dot? See Troubleshooting
🎉 Step 8: Test It!
- Open a new chat in Cursor (Ctrl+L)
- Type: "List my Azure DevOps projects"
- 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"
- Did you restart Cursor after adding the server?
- Is your path correct in settings? (forward slashes!)
- Did you run
npm run build? - Is the .env file in the ROOT folder?
"Authentication failed"
- Check your .env file location (must be in root folder!)
- Is your organization name spelled correctly?
- Did you copy the ENTIRE token?
- 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:
- In Cursor terminal, type:
dir .env(Windows) orls -la .env(Mac/Linux) - 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?
- Make sure you're using Cursor IDE (not VS Code)
- Check the .env file is in the root folder
- Use forward slashes in the path
- Restart Cursor after any changes
Need help? Open an issue: https://github.com/EreAlexandru/ADOMCPLocalServer/issues
License: MIT - Use it however you want! 🎉
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。