TFS MCP Server
Provides tools for interacting with Git repositories on Azure DevOps/TFS, including listing repositories, branches, commits, and managing pull requests.
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., "@TFS MCP Server list my assigned work items"
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.
TFS MCP Server
An MCP server (Node.js) that bridges Claude Code with an on-premise Azure DevOps Server / TFS
collection (set your own collection URL via TFS_ORG_URL).
Auth: Personal Access Token (PAT).
1. Generate a PAT
In TFS: top-right avatar → Security / Personal Access Tokens → New Token. Grant scopes: Work Items (Read & Write) and Code (Read & Write).
Related MCP server: tfs-mcp-server
2. Configure environment
Variable | Required | Description |
| yes | Collection URL, e.g. |
| yes | The personal access token |
| no | Default project name (so you don't pass it every call) |
| no | REST API version (default |
| no |
|
3. Register with Claude Code
claude mcp add tfs \
--env TFS_ORG_URL=https://your-tfs-server/YourCollection \
--env TFS_PAT=<your-pat> \
--env TFS_PROJECT=<your-default-project> \
--env TFS_IGNORE_SSL=true \
-- node /absolute/path/to/tfs-mcp-server/src/index.jsOr add to .mcp.json / settings manually (see mcp.example.json).
Tools
General
tfs_list_projects
Work Items
tfs_query_work_items— run a WIQL querytfs_get_work_itemtfs_create_work_itemtfs_update_work_itemtfs_add_work_item_comment
Git / Pull Requests
tfs_list_repostfs_list_branchestfs_list_commitstfs_list_pull_requeststfs_get_pull_requesttfs_create_pull_request
Available Tools
12 toolstfs_add_work_item_commentC
Add a comment to a work item.
Inputs: id (required), text (required), project.
tfs_create_pull_requestC
Create a pull request from a source branch to a target branch.
Inputs: title (required), repositoryId (required), sourceBranch (required), targetBranch (required), +2 more.
tfs_create_work_itemC
Create a work item. Pass the type (e.g. Bug, Task, User Story) and a map of field reference names to values.
Inputs: type (required), title (required), fields, project.
tfs_get_pull_requestC
Get details of a single pull request.
Inputs: repositoryId (required), pullRequestId (required), project.
tfs_get_work_itemA
Get a single work item with all its fields by ID.
Inputs: id (required).
tfs_list_branchesC
List branches of a Git repository.
Inputs: repositoryId (required), project.
tfs_list_commitsC
List recent commits for a Git repository, optionally filtered by branch.
Inputs: repositoryId (required), top, branch, project.
tfs_list_projectsA
List all team projects in the TFS collection.
Inputs: no named parameters.
tfs_list_pull_requestsC
List pull requests for a repository.
Inputs: repositoryId (required), top, status, project.
tfs_list_reposA
List Git repositories in a project (or the whole collection if no project).
Inputs: project.
tfs_query_work_itemsA
Run a WIQL query and return matching work items (id + key fields). Provide a full WIQL SELECT statement.
Inputs: wiql (required), top, project.
tfs_update_work_itemC
Update fields on an existing work item by ID.
Inputs: id (required), fields (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a distinct resource and action (e.g., query vs. get vs. create work items; list vs. get vs. create pull requests), with no overlapping purposes. The tool descriptions clearly differentiate them.
All tools follow a consistent 'tfs_verb_noun' pattern using snake_case (e.g., tfs_list_projects, tfs_create_work_item). The verbs are simple and align with standard CRUD operations, making the naming predictable.
With 12 tools covering projects, work items, and git repositories, the number is well-scoped for a TFS MCP server. Each tool serves a distinct purpose without unnecessary redundancy or bloat.
The tool set covers core workflows: CRUD for work items (except delete), PR lifecycle (list, get, create), and repository browsing. Minor gaps like work item deletion or branch/repo creation exist, but the surface is largely complete for common tasks.
Maintenance
Related MCP Connectors
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
Persistent memory for Claude Code and Cursor. Stop re-explaining your project every session.
Share context and questions between Claude instances — VS Code, claude.ai web, and mobile.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceConnects Azure DevOps work items to Claude Code via MCP, enabling fetching, listing, updating tickets and automating PR creation.-
- FlicenseAqualityCmaintenanceConnects Claude to on-premise TFS (Team Foundation Server) via REST API, enabling read/write of work items, backlogs, sprints, and pull requests without manual copy-paste.8-
- AlicenseBqualityCmaintenanceEnables Claude Code to interact with Azure DevOps Server on-premises (work items, pull requests, repositories) through secure, controlled, safe-by-default access with read-only mode and explicit write confirmations.22MIT
- FlicenseBqualityCmaintenanceEnables users to securely connect Claude Desktop to Azure DevOps for managing work items, metadata, comments, pull requests, and code reviews.15-