mcp-ado-browser
Provides read-only access to Azure DevOps using your browser session, no PAT required. Enables browsing projects, repos, work items, pull requests, and feeds through MCP tools.
README
mcp-ado-browser
Azure DevOps for MCP — via your browser, not a PAT.
An MCP (stdio) server that gives read-only access to Azure DevOps using only your existing browser session — no PAT, no Azure CLI, no official ADO MCP, no credential provider. The only source of authentication is the cookie session of a real browser, driven by Playwright on an isolated, dedicated profile.
It is org-wide by default: only the organization is required, and it browses every project, repo and feed you can access.
Data is fetched via page.evaluate(() => fetch(...)) executed inside the
dev.azure.com page context (same-origin), so session cookies attach automatically
and you get JSON back — never DOM scraping for data the REST API provides. Every
request carries X-TFS-FedAuthRedirect: Suppress so a dead session returns a clean
401 instead of an HTML login page.
Why these choices (restricted-environment friendly)
| Concern | Decision |
|---|---|
| No Playwright browser download | playwright-core + channel: 'chrome'/'msedge' uses an already-installed browser; nothing is downloaded. |
| SQLite without a native build | node:sqlite (built into Node ≥ 22.5) — zero compilation. |
| One package, one binary | The MCP server and the authenticate mechanism ship in the same package and the same npx binary. |
| No hardcoded values | org/project/ids come from flags/env or discovery; api-versions live only in src/ado/versions.ts. |
How it works
flowchart TD
A["authenticate<br/>(visible, chromeless window)"] -->|"sign in once · MFA"| P[("session cookies<br/>persisted on an isolated profile")]
P -. reused .-> W["headless work session"]
MC["MCP client<br/>(Claude / Cursor / …)"] -->|"tools/call"| SRV["mcp-ado-browser<br/>(stdio MCP server)"]
SRV --> W
W -->|"page.evaluate(fetch)<br/>same-origin, cookies attached"| ADO["dev.azure.com · feeds · pkgs<br/>(your real session)"]
ADO -->|"JSON"| W
W --> SRV
SRV <-->|"TTL + Rev freshness"| DB[("SQLite cache")]
- Authentication is your browser, not a token.
authenticateopens a real, visible browser window on a dedicated, isolated profile (never your daily browser). You sign in normally (MFA included). The tool detects success by polling an authenticated endpoint, then persists the session cookies on disk. No PAT or token is ever created or stored. - Work runs headless. Subsequent runs launch the same profile headless and reuse the persisted cookies — no window, no re-login until the session expires.
- Data comes back as JSON, not scraped HTML. Each tool runs
fetch(...)inside thedev.azure.compage context (same-origin), so the session cookies attach automatically. Every request sendsX-TFS-FedAuthRedirect: Suppress, so an expired session returns a clean401(surfaced as a structuredAUTH_REQUIREDerror) instead of an HTML login page. Cross-host services (feeds / packages) use the same browser cookie jar. - Responses are cached in a local SQLite DB (
node:sqlite) with a configurable TTL. On a stale hit, a cheap freshness check (System.Revfor work items) avoids re-downloading unchanged data. - When the session dies, tools fail fast with
AUTH_REQUIRED— just re-runauthenticateand continue.
Getting started
Prerequisites: Node ≥ 22.5 and Google Chrome (or Microsoft Edge) installed. You do not need a PAT, the Azure CLI, or any admin setup.
Setup is two steps:
- Register the server in your MCP client (one config entry — see your client below).
- Sign in once — just ask your assistant: “authenticate to Azure DevOps”. The
built-in
authenticatetool opens a visible browser window; you log in (MFA), and the session is persisted. (No separate terminal command needed.) From then on everything runs headless until the session expires — then just ask it to authenticate again.
The command every client runs is the same:
npx -y mcp-ado-browser --org <your-org>
Config is passed as CLI flags (--org, --project, …) or env vars (ADO_ORG, …);
flags win. Then ask things like “list my active pull requests”, “show work item 1234
and its linked PR”, or “what feeds and packages are in this org?”.
Tip: prefer per-user/local config (not committed) so your org name doesn't land in a shared repo. Or omit
--orgfrom a committed config and setADO_ORGin your env.
Use it from your MCP client
<details open> <summary><b>Claude Code</b></summary>
claude mcp add ado --scope local -- npx -y mcp-ado-browser --org <your-org>
Then ask Claude to “authenticate to Azure DevOps”. </details>
<details> <summary><b>Claude Desktop</b> — <code>claude_desktop_config.json</code></summary>
{
"mcpServers": {
"ado": {
"command": "npx",
"args": ["-y", "mcp-ado-browser", "--org", "<your-org>"]
}
}
}
</details>
<details> <summary><b>GitHub Copilot (VS Code)</b> — <code>.vscode/mcp.json</code></summary>
{
"servers": {
"ado": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-ado-browser", "--org", "<your-org>"]
}
}
}
Open Copilot Chat in Agent mode and pick the ado tools. (Avoid committing your org —
use ${env:ADO_ORG} or a personal config.)
</details>
<details> <summary><b>Cursor</b> — <code>~/.cursor/mcp.json</code> (or <code>.cursor/mcp.json</code>)</summary>
{
"mcpServers": {
"ado": {
"command": "npx",
"args": ["-y", "mcp-ado-browser", "--org", "<your-org>"]
}
}
}
</details>
<details> <summary><b>Codex CLI</b> — <code>~/.codex/config.toml</code></summary>
[mcp_servers.ado]
command = "npx"
args = ["-y", "mcp-ado-browser", "--org", "<your-org>"]
</details>
After registering, trigger sign-in from the chat (“authenticate to Azure DevOps”),
which runs the authenticate tool. Prefer a terminal instead? npx -y mcp-ado-browser authenticate --org <your-org> does the same thing. Tools return a structured
AUTH_REQUIRED error when the session expires — re-authenticate and continue.
Tools (tools/list)
| Tool | What it does |
|---|---|
list_projects |
All projects you can access (org-wide). |
list_repositories |
All Git repos across the org (or one project). |
search_work_items |
WIQL (org-wide by default) or full-text (almsearch); project to scope. |
get_work_item |
Work item with $expand=all + relations (hierarchy, Related, PR ArtifactLink resolved). |
get_work_item_comments |
The separate comments endpoint (project derived automatically). |
get_comment_details |
A comment plus its downloaded attachments (size, sha256). |
search_pull_requests |
PRs org-wide, by repo, or by project; filter by status/author/target. |
get_pull_request |
Metadata, branches, reviewers, linked work items (repo by id or name). |
get_pull_request_comments |
Threads, distinguishing system vs human. |
search_feeds |
Artifacts feeds → packages → versions. |
download_artifact |
.nupkg/.tgz from a feed (cross-host pkgs.dev.azure.com), with archive-integrity validation. |
authenticate |
Opens a visible browser for interactive sign-in (MFA); persists the session. Run it once, or whenever a tool returns AUTH_REQUIRED. |
Commands
The single npx mcp-ado-browser binary has a few subcommands:
| Command | What it does |
|---|---|
npx mcp-ado-browser --org <org> |
Start the MCP stdio server (default). |
… authenticate --org <org> |
Interactive sign-in (visible browser). Same as the authenticate tool. |
… status --org <org> |
Show the profile/cache paths, the org, and whether the session is signed in (and as who). |
… logout |
Clear the persisted session and the cache (a local sign-out). No org needed. |
Switching org with the same account needs nothing special — just change
--org; one sign-in covers every org that account can access. A different account →logoutfirst, thenauthenticateagainst the other org.
Where it stores things
Everything is local to your machine, under a single dedicated folder (mode 700, never
committed). Nothing is hosted remotely — the server is a local process spawned by your MCP
client over stdio.
| What | Path (default) |
|---|---|
| Browser session (cookies) | macOS/Linux: ~/.mcp-ado-browser/profile/ · Windows: C:\Users\<you>\.mcp-ado-browser\profile\ |
| SQLite cache | …/.mcp-ado-browser/cache.sqlite |
| Package code (npx cache) | macOS/Linux: ~/.npm/_npx/<hash>/…/mcp-ado-browser · Windows: …\AppData\Local\npm-cache\_npx\<hash>\… (see npm config get cache) |
Reset everything (forces re-login): logout, or rm -rf ~/.mcp-ado-browser.
Configuration
| Flag | Env | Default | Meaning |
|---|---|---|---|
--org |
ADO_ORG |
— | Organization (required). |
--project |
ADO_PROJECT |
— | Default project scope (optional; org-wide otherwise). |
--user-data-dir |
ADO_USER_DATA_DIR |
~/.mcp-ado-browser/profile |
Isolated persistent browser profile. |
--channel |
ADO_BROWSER_CHANNEL |
chrome |
chrome or msedge. |
--cache-ttl |
ADO_CACHE_TTL_SECONDS |
900 |
Global cache TTL. Per-resource: ADO_CACHE_TTL_WORKITEM=60. |
--api-version |
ADO_API_VERSION |
discovery/defaults | Force an api-version for all areas. |
--no-app-window |
ADO_APP_WINDOW=0 |
app mode | Use a normal browser window for sign-in. |
--headed |
ADO_HEADLESS=0 |
headless | Run work with a visible window. |
Development & verification
npm install
npm run build
npm run verify # all offline gates (browser stack, MCP, tools, cache, artifacts, no-hardcoding)
npm run verify:live # adds the live acceptance pass against real Azure DevOps
npm run scan:secrets # pre-push secret / sensitive-data scan
npm run demo:live # drive the real stdio server as an MCP client (env-driven)
npm run verify prints a detailed report, gate by gate, assertion by assertion.
BLOCKED_ON_AUTH is transitory: the run is not done until the live pass is green; the
only tolerated terminal exclusion is EMPIRICALLY_BLOCKED (with evidence), for the
cross-host artifact download only.
Security & privacy
- Authentication is only your real browser session on a dedicated, isolated profile — no PAT or token is ever created, stored, or transmitted by this tool.
- The session lives in
~/.mcp-ado-browser/profile(machine-local, gitignored). - Fixtures and reports are anonymized;
npm run scan:secretsblocks pushes that would leak personal/org data or secrets (also enforced in CI).
License
MIT © VMargan
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。