
How to add Azure MCP Server to Cursor
Microsoft's official Azure MCP server, including Azure Blob Storage container and blob tools. Paste the config into ~/.cursor/mcp.json and restart Cursor.
Last updated June 15, 2026 · 2.4k★ · stdio · oauth · official
Cursor config for Azure MCP Server
npx -y @azure/mcp@latest server start{
"mcpServers": {
"azure-mcp-server": {
"command": "npx",
"args": [
"-y",
"@azure/mcp@latest",
"server",
"start"
]
}
}
}Setup steps
- 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
- 2Paste the Azure MCP Server config below into the "mcpServers" object.
- 3Fill in placeholder secrets, then save.
- 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
- 5Ask Cursor to use one of Azure MCP Server's tools to confirm it's connected.
Before you start
- Node.js LTS (20 or later) to run via npx — or .NET 10 (`dnx`) / `uv` (uvx) as alternative runtimes
- The Azure CLI installed and signed in with `az login`, or DefaultAzureCredential configured (managed identity / environment credentials)
- An Azure subscription with appropriate RBAC roles on the resources you want to access (e.g. Storage Blob Data Reader/Contributor for blob operations)
What Azure MCP Server can do in Cursor
storage account createCreate a storage account in a resource group/location (destructive).
storage account getGet details for one or all storage accounts in a subscription (read-only).
storage blob container createCreate a new blob container in a storage account (destructive).
storage blob container getList containers or get details for a specific container (read-only).
storage blob getList blobs in a container or get properties for a single blob (read-only).
storage blob uploadUpload a local file to a blob if it doesn't already exist.
storage table listList the tables in a storage account (read-only).
Security
The server acts with your authenticated Azure identity, so its reach equals your Azure RBAC assignments; sign in with a least-privilege account. Storage tools can create containers and modify blobs in your subscription.
Azure MCP Server + Cursor FAQ
Where is the Cursor config file?
Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the Azure MCP Server config there under the "mcpServers" key and restart the client.
Is Azure MCP Server safe to use with Cursor?
The server acts with your authenticated Azure identity, so its reach equals your Azure RBAC assignments; sign in with a least-privilege account. Storage tools can create containers and modify blobs in your subscription.
What is the npm package name?
`@azure/mcp`. Run it with `npx -y @azure/mcp@latest server start`. A .NET tool (`Azure.Mcp`, via `dnx`) and a uvx option also exist.
How does authentication work?
Via Azure's standard identity model — `az login` (Azure CLI) or DefaultAzureCredential. The agent inherits your Azure RBAC permissions; no separate API key is needed.
How is Azure Blob Storage supported?
Through the storage tool group: create/get storage accounts, create/get blob containers, list or get individual blobs, list storage tables, and upload a local file to a blob.