You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
* Reduce the size of the README
Refactor the README file
move installation steps to the top
merge duplicate content
add collapsable sections for longer content
* Add video tags
Add video, width, height per GitHub docs on embedding a video in markdown
* remove learn vsix extension reference
remove sentence someone added about the learn vsix
* Add "(Optional)" after most install types in the list
Add "(Optional)" after most install types in the list
* Clarify wording
Co-authored-by: Jonathan Cárdenas <[email protected]>
* Address feedback (#335)
Address feedback
* reorder sections
reorder sections
---------
Co-authored-by: Jonathan Cárdenas <[email protected]>
The Azure MCP Server implements the [MCP specification](https://modelcontextprotocol.io) to create a seamless connection between AI agents and Azure services. Azure MCP Server can be used alone or with the [GitHub Copilot for Azure extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azure-github-copilot) in VS Code. This project is in Public Preview and implementation may significantly change prior to our General Availability.
3
4
4
-
[](https://insiders.vscode.dev/redirect/mcp/install?name=Azure%20MCP%20Server&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40azure%2Fmcp%40latest%22%2C%22server%22%2C%22start%22%5D%7D)[](https://insiders.vscode.dev/redirect/mcp/install?name=Azure%20MCP%20Server&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40azure%2Fmcp%40latest%22%2C%22server%22%2C%22start%22%5D%7D&quality=insiders)
5
-
6
-
The Azure MCP Server implements the [MCP specification](https://modelcontextprotocol.io) to create a seamless connection between AI agents and key Azure services like Azure Storage, Cosmos DB, and more.
7
-
8
-
> Please note that this project is in Public Preview and implementation may significantly change prior to our General Availability.
5
+
Here's a short (16 seconds) video to help you get the Azure MCP Server installed in VS Code.
2. Install the [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) and [GitHub Copilot Chat](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) extensions
13
+
3. Install [Node.js](https://nodejs.org/en/download) 20 or later
14
+
* Ensure `node` and `npm` are in your path
15
+
4. Open VS Code in an empty folder
16
+
5. Install Azure MCP Server for either the stable or Insiders release of VS Code:
17
+
*[](https://insiders.vscode.dev/redirect/mcp/install?name=Azure%20MCP%20Server&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40azure%2Fmcp%40latest%22%2C%22server%22%2C%22start%22%5D%7D)
18
+
*[](https://insiders.vscode.dev/redirect/mcp/install?name=Azure%20MCP%20Server&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40azure%2Fmcp%40latest%22%2C%22server%22%2C%22start%22%5D%7D&quality=insiders)
19
+
6. Open GitHub Copilot in VS Code and [switch to Agent mode](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode)
20
+
7. Click `refresh` on the tools list.
17
21
18
22
19
-
## 🎯 Overview
23
+
### ▶️ Getting Started
24
+
1. Open GitHub Copilot in VS Code and [switch to Agent mode](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode)
25
+
2. You should see the Azure MCP Server in the list of tools
26
+
3. Try a prompt that tells the agent to use the Azure MCP Server, such as "List my Azure Storage containers"
27
+
4. The agent should be able to use the Azure MCP Server tools to complete your query
28
+
5. For help with common issues see [Troubleshooting guide](https://github.com/Azure/azure-mcp/blob/main/TROUBLESHOOTING.md).
20
29
21
-
###✨ What can you do with the Azure MCP Server?
30
+
## ✨ What can you do with the Azure MCP Server?
22
31
23
32
The Azure MCP Server supercharges your agents with Azure context. Here are some cool prompts you can try:
24
33
@@ -48,18 +57,10 @@ The Azure MCP Server supercharges your agents with Azure context. Here are some
48
57
- "List my Azure CDN endpoints"
49
58
- "Help me build an Azure application using Node.js"
50
59
51
-
### 🔍 How It Works
52
-
53
-
The Azure MCP Server creates a seamless integration between AI agents and Azure services through:
54
-
55
-
- 🔄 Smart JSON communication that AI agents understand
56
-
- 🏗️ Natural language commands that get translated to Azure operations
57
-
- 💡 Intelligent parameter suggestions and auto-completion
58
-
- ⚡ Consistent error handling that makes sense
59
60
60
61
## 🛠️ Currently Supported Tools
61
-
62
-
The Azure MCP Server provides tools for interacting with the following Azure services:
62
+
<details>
63
+
<summary>The Azure MCP Server provides tools for interacting with the following Azure services</summary>
63
64
64
65
### 🔎 Azure AI Search (search engine/vector database)
65
66
- List Azure AI Search services
@@ -130,68 +131,39 @@ Agents and models can discover and learn best practices and usage guidelines for
130
131
131
132
### 🛡️ Azure Best Practices
132
133
- Get secure, production-grade Azure SDK best practices for effective code generation.
134
+
</details>
133
135
134
136
For detailed command documentation and examples, see [Azure MCP Commands](https://github.com/Azure/azure-mcp/blob/main/docs/azmcp-commands.md).
135
137
136
-
## 🔌 Getting Started
137
-
138
-
The Azure MCP Server requires Node.js to install and run the server. If you don't have it installed, follow the instructions [here](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
139
-
140
-
### VS Code + GitHub Copilot
141
-
142
-
The Azure MCP Server provides Azure SDK and Azure CLI developer tools. It can be used alone or with the [GitHub Copilot for Azure extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azure-github-copilot) in VS Code. If you're interested in broad developer support across a variety of Azure development scenarios not included in the Azure MCP Server, such as searching documentation on Microsoft Learn, we recommend this extension as well.
143
-
144
-
### Prerequisites
145
-
1. Install either the stable or Insiders release of VS Code:
2. Install the [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) and [GitHub Copilot Chat](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) extensions
149
-
3. Install [Node.js](https://nodejs.org/en/download) 20 or later
150
-
* Ensure `node` and `npm` are in your path
151
-
4. Open VS Code in an empty folder
152
-
153
-
### Installation
138
+
## 🔄️ Upgrading Existing Installs to the Latest Version
154
139
155
-
#### ▶️ Getting Started Video
140
+
<details>
141
+
<summary>How to stay current with releases of Azure MCP Server</summary>
142
+
143
+
#### NPX
156
144
157
-
Here's a short (16 seconds) video to help you get the Azure MCP Server installed in VS Code.
145
+
If you use the default package spec of `@azure/mcp@latest`, npx will look for a new version on each server start. If you use just `@azure/mcp`, npx will continue to use its cached version until its cache is cleared.
If you globally install the cli via `npm install -g @azure/mcp` it will use the installed version until you manually update it with `npm update -g @azure/mcp`.
162
150
163
-
Click one of these buttons to install the Azure MCP Server for VS Code or VS Code Insiders.
151
+
#### Docker
164
152
165
-
[](https://insiders.vscode.dev/redirect/mcp/install?name=Azure%20MCP%20Server&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40azure%2Fmcp%40latest%22%2C%22server%22%2C%22start%22%5D%7D)[](https://insiders.vscode.dev/redirect/mcp/install?name=Azure%20MCP%20Server&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40azure%2Fmcp%40latest%22%2C%22server%22%2C%22start%22%5D%7D&quality=insiders)
153
+
There is no version update built into the docker image. To update, just pull the latest from the repo and repeat the [docker installation instructions](#docker-install).
166
154
167
-
You might get prompted to open the link with VS Code and then select "Install Server".
155
+
#### VS Code
168
156
169
-
Once you've installed the Azure MCP Server, make sure you select GitHub Copilot Agent Mode and refresh the tools list. To learn more about Agent Mode, visit the [VS Code Documentation](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode).
157
+
Installation in VS Code should be in one of the previous forms and the update instructions are the same. If you installed the mcp server with the `npx` command and `-y @azure/mcp@latest` args, npx will check for package updates each time VS Code starts the server. Using a docker container in VS Code has the same no-update limitation described above.
158
+
</details>
170
159
171
-
#### 🔧 Manual Install
160
+
## ⚙️ Advanced Install Scenarios (Optional)
161
+
<details>
162
+
<summary>Docker containers, custom MCP clients, and manual install options</summary>
172
163
173
-
For a step-by-step installation, follow these instructions:
164
+
#### 🐋 Docker Install Steps (Optional)
165
+
For a step-by-step Docker installation, follow these instructions:
174
166
175
-
1. Add `.vscode/mcp.json`:
176
-
```json
177
-
{
178
-
"servers": {
179
-
"Azure MCP Server": {
180
-
"command": "npx",
181
-
"args": [
182
-
"-y",
183
-
"@azure/mcp@latest",
184
-
"server",
185
-
"start"
186
-
]
187
-
}
188
-
}
189
-
}
190
-
```
191
-
192
-
#### 🐋 Docker Install
193
-
194
-
For a step-by-step installation, follow these instructions:
3. Create an `.env` file with environment variables that [match one of the `EnvironmentCredential`](https://learn.microsoft.com/dotnet/api/azure.identity.environmentcredential) sets. For example, a `.env` file using a service principal could look like:
Optionally, customers can use `--env` or `--volume` to pass authentication values.
223
195
224
-
### 🔄️ Updates
225
-
226
-
#### NPX
227
-
228
-
If you use the default package spec of `@azure/mcp@latest`, npx will look for a new version on each server start. If you use just `@azure/mcp`, npx will continue to use its cached version until its cache is cleared.
229
-
230
-
#### NPM
231
-
232
-
If you globally install the cli via `npm install -g @azure/mcp` it will use the installed version until you manually update it with `npm update -g @azure/mcp`.
233
-
234
-
#### Docker
235
-
236
-
There is no version update built into the docker image. To update, just pull the latest from the repo and repeat the [docker installation instructions](#docker-install).
237
-
238
-
#### VS Code
239
-
240
-
Installation in VS Code should be in one of the previous forms and the update instructions are the same. If you installed the mcp server with the `npx` command and `-y @azure/mcp@latest` args, npx will check for package updates each time VS Code starts the server. Using a docker container in VS Code has the same no-update limitation described above.
241
-
242
-
## 🧪 Test the Azure MCP Server
243
-
244
-
1. Open GitHub Copilot in VS Code and [switch to Agent mode](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode)
245
-
2. You should see the Azure MCP Server in the list of tools
246
-
3. Try a prompt that tells the agent to use the Azure MCP Server, such as "List my Azure Storage containers"
247
-
4. The agent should be able to use the Azure MCP Server tools to complete your query
196
+
#### 🤖 Custom MCP Client Install Steps (Optional)
197
+
You can easily configure your MCP client to use the Azure MCP Server. Have your client run the following command and access it via standard IO or SSE.
248
198
249
-
## 🤖 Custom MCP Clients
199
+
#### 🔧 Manual Install Steps (Optional)
200
+
For a step-by-step installation, follow these instructions:
250
201
251
-
You can easily configure your MCP client to use the Azure MCP Server. Have your client run the following command and access it via standard IO or SSE.
202
+
1. Add `.vscode/mcp.json`:
203
+
```json
204
+
{
205
+
"servers": {
206
+
"Azure MCP Server": {
207
+
"command": "npx",
208
+
"args": [
209
+
"-y",
210
+
"@azure/mcp@latest",
211
+
"server",
212
+
"start"
213
+
]
214
+
}
215
+
}
216
+
}
217
+
```
252
218
253
219
### Using standard IO
254
220
@@ -272,12 +238,18 @@ Configure the MCP client to execute: `npx -y @azure/mcp@latest server start`. Fo
272
238
273
239
274
240
More end-to-end MCP client/agent guides are coming soon!
241
+
</details>
242
+
243
+
275
244
276
245
## 📝 Troubleshooting
277
246
278
247
See [Troubleshooting guide](https://github.com/Azure/azure-mcp/blob/main/TROUBLESHOOTING.md) for help with common issues and logging.
279
248
280
-
## 🔑 Authentication
249
+
### 🔑 Authentication
250
+
251
+
<details>
252
+
<summary>We use Azure Identity SDK under the hood via DefaultAzureCredential, which tries these credentials in order:</summary>
281
253
282
254
The Azure MCP Server seamlessly integrates with your host operating system's authentication mechanisms, making it super easy to get started! We use Azure Identity under the hood via [`DefaultAzureCredential`](https://learn.microsoft.com/dotnet/azure/sdk/authentication/credential-chains?tabs=dac), which tries these credentials in order:
This is useful when running on Azure services where you want to use managed identities.
277
+
</details>
305
278
306
279
## 🛡️ Security Note
307
280
@@ -310,7 +283,6 @@ Your credentials are always handled securely through the official [Azure Identit
310
283
MCP as a phenomenon is very novel and cutting-edge. As with all new technology standards, consider doing a security review to ensure any systems that integrate with MCP servers follow all regulations and standards your system is expected to adhere to. This includes not only the Azure MCP Server, but any MCP client/agent that you choose to implement down to the model provider.
311
284
312
285
## 👥 Contributing
313
-
314
286
We welcome contributions to the Azure MCP Server! Whether you're fixing bugs, adding new features, or improving documentation, your contributions are welcome.
315
287
316
288
Please read our [Contributing Guide](https://github.com/Azure/azure-mcp/blob/main/CONTRIBUTING.md) for guidelines on:
0 commit comments