MCP Server Azure Integration: 2026 Setup Guide

A practical guide to Azure MCP Server: what it can do, how to connect it to Copilot Studio or Microsoft Foundry, and how to keep Azure access controlled from day one.

Executive summary: The Azure MCP Server (azmcp) is Microsoft's first-party MCP server for Azure. It exposes Azure services as agent tools and uses Microsoft Entra ID with Azure RBAC, so access still follows the permissions assigned to the user or managed identity. Use it locally for developer workflows, or deploy it as a remote server for Copilot Studio and Microsoft Foundry agents. For production, add governance before you expand the tool scope.

A good MCP server Azure integration should not start by exposing every Azure tool to an agent. It should start with a narrow operating use case, a scoped identity, and a clear approval model. This guide covers the Azure MCP Server, what it exposes, how to connect it to Copilot Studio or Microsoft Foundry agents, and how to govern it with RBAC and an AI Gateway where appropriate.

Quick Answer: When Should You Use Azure MCP Server?

Use Azure MCP Server when an agent or IDE assistant needs governed access to Azure operations, such as listing resources, inspecting storage, querying logs, checking configuration, or running approved operational tasks. Start with read-only access and a small namespace. Add write-capable tools only when RBAC, approvals, logging, and ownership are clear.

What Is the Azure MCP Server?

The Azure MCP Server implements the Model Context Protocol so AI agents and MCP-compatible clients can work with Azure resources through tool calls instead of hand-written SDK or REST requests. In practice, that means a developer or agent can ask for resource groups, inspect storage, query logs, check Key Vault data with confirmation, or run supported operations through a governed Azure identity. The server authenticates through Microsoft Entra ID via the Azure Identity library and works with clients such as GitHub Copilot agent mode, the OpenAI Agents SDK, and Semantic Kernel.

  • Broad Azure coverage: services across compute, storage, databases, DevOps, security, monitoring, AI, and governance.
  • Editor-friendly setup: supported from Visual Studio Code, Visual Studio 2022 (17.14.30+), Cursor, Windsurf, IntelliJ, Eclipse, and Cline.
  • Flexible tool exposure: run in namespace mode by default, or use consolidated, all, or single mode when the workflow needs a different shape.
  • Read-only mode: start with read-only access for inventory, diagnostics, and reporting before allowing change operations.
Official source: What is the Azure MCP Server? — Microsoft Learn

What the Azure MCP Server Exposes

Microsoft's tool reference groups Azure MCP Server tools into more than a dozen categories. The table below is a practical sample, not the full catalog. Always check the official tool reference before designing a production agent.

CategoryExample servicesNamespace
ComputeApp Service, Functions, AKS, virtual machines, Service Fabricappservice, functionapp, aks, compute
DatabasesCosmos DB, Azure SQL, PostgreSQL, MySQL, Rediscosmos, sql, postgres, mysql, redis
StorageStorage accounts, blobs, tables, file shares, file syncstorage, fileshares, storagesync
AI and MLMicrosoft Foundry models/deployments, Azure AI Search, Speechfoundry, search, speech
DevOpsBicep schemas, Terraform, deployments, Monitor, Grafanabicepschema, azureterraform, deploy, monitor
Security & identityKey Vault, Azure RBAC, Confidential Ledgerkeyvault, role, confidentialledger
Management & governanceAdvisor, Policy, Cost/Pricing, Resource Health, Quotas, Backupadvisor, policy, pricing, resourcehealth, quota
Messaging & integrationService Bus, Event Hubs, Event Gridservicebus, eventhubs, eventgrid

Typical prompts include: "Show me all my resource groups," "List blobs in my storage container named 'documents'," "Query my Log Analytics workspace for errors in the last hour," or "What's the value of the 'ConnectionString' key in my app configuration?"

Sensitive data requires confirmation. Tools that can return secrets, such as Key Vault values, connection strings, or certificate private keys, trigger an elicitation prompt before they run. There is a disable user confirmation start flag for trusted automation, but it removes an important safety check. Avoid it for production agents that handle user prompts or untrusted input.

Official source: Azure MCP Server tools — Microsoft Learn

Local Developer Tool vs. Remote Server for Agents

The Azure MCP Server can run in two main ways. This choice affects authentication, hosting, networking, and how much governance you need around the agent.

ModeBest forNotes
Local (STDIO)An individual developer working in VS Code, Visual Studio, or another supported editorUses the developer's own Azure CLI credential; Microsoft explicitly scopes this to developer use within your organization, not external-facing scenarios
Remote (HTTPS)Copilot Studio and Microsoft Foundry agents that need to call it over the networkYou self-host it, typically on Azure Container Apps, with a managed identity and its own RBAC role assignment

Step-by-Step Azure MCP Approach

Start with the operating model before choosing a tool surface. Azure MCP can expose powerful read and write operations, so the safest implementation is deliberate and incremental.

  1. Pick the user journey. Decide whether the goal is developer productivity in an IDE, an internal Copilot Studio agent, or a pro-code Microsoft Foundry agent. That choice determines whether you use local STDIO, a custom connector, or Foundry's native MCP tool support.
  2. Choose the smallest Azure scope. Select one subscription, resource group, and service namespace first, such as storage, monitor, or keyvault. Avoid exposing every namespace until you have a tested governance model.
  3. Set the identity and RBAC. For local use, confirm the developer's Azure account has only the roles it needs. For a remote server, assign a managed identity and keep the initial role to Reader unless the use case requires writes.
  4. Run read-only first. Start with read-only mode for inventory, diagnostics, and reporting prompts. Add write-capable tools only after the approval and audit path is proven.
  5. Connect the agent surface. Use a Power Apps custom connector for Copilot Studio, or add a remote MCP tool directly in Microsoft Foundry. For private endpoints, confirm the required VNet, subnet, and agent setup before testing.
  6. Require approval for risky calls. Keep user confirmation for secrets and require approval for changes such as configuration updates, restarts, deployments, role assignments, and delete operations.
  7. Add governance before rollout. For Foundry, route eligible new MCP tools through an AI Gateway and apply rate limits, IP filtering, logging, and correlation IDs. For Copilot Studio, review Power Platform DLP policy and connector ownership.

Connect the Azure MCP Server to a Copilot Studio Agent

For the Azure MCP Server, Copilot Studio uses a Power Apps custom connector configured for the MCP protocol. Microsoft provides an azd template that deploys the remote server and supporting identity pieces, which makes the setup much easier to repeat across environments.

  1. Deploy the server. Clone Microsoft's template and provision it to Azure Container Apps: azd init -t azmcp-copilot-studio-aca-mi, then azd up. This provisions the container app, a user-assigned managed identity with a Reader role, and two Entra app registrations (client and server).
  2. Create the custom connector. In Power Apps, create a blank custom connector, set Host to the deployed container app URL, and in the Swagger editor expose a POST method at the root path with the custom property x-ms-agentic-protocol: mcp-streamable-1.0 — this is what tells the connector to speak MCP.
  3. Configure OAuth 2.0 security. Set authentication type to OAuth 2.0 / Azure Active Directory, using the client app registration's ID, the server app registration as the resource, and on-behalf-of login enabled.
  4. Test the connection in the connector, signing in with the account that will access the MCP tools.
  5. Add the connector to your agent. In Copilot Studio, open the agent's Tools tab, select Add a tool, and search for the custom connector by name. On success, the agent lists every tool the MCP server exposes.

Single-tenant by default. The custom connector doesn't support multi-tenant sign-in out of the box; the client app registration must be restricted to its own tenant. Cross-tenant setups need an extra service principal provisioning step and can be blocked by Power Platform tenant isolation policy.

Official source: Deploy the Azure MCP Server and connect using Copilot Studio — Microsoft Learn

Connect an MCP Server to a Microsoft Foundry Agent

Microsoft Foundry Agent Service has native MCP tool support, so you do not need a Power Apps custom connector. Foundry can connect to reachable public or private MCP-compatible endpoints, subject to supported authentication and networking setup, and you can require approval before tool calls execute.

Python — add a remote MCP server as an agent tool
from azure.identity import DefaultAzureCredential
from azure.ai.projects import AIProjectClient
from azure.ai.projects.models import PromptAgentDefinition, MCPTool

project = AIProjectClient(
    endpoint="your_project_endpoint",
    credential=DefaultAzureCredential(),
)

tool = MCPTool(
    server_label="azure-mcp",
    server_url="https://your-azure-mcp-server-endpoint/mcp",
    require_approval="always",          # or "never", or a per-tool allow list
    project_connection_id="my-mcp-connection",
)

agent = project.agents.create_version(
    agent_name="AzureOpsAgent",
    definition=PromptAgentDefinition(
        model="gpt-5-mini",
        instructions="Use MCP tools as needed",
        tools=[tool],
    ),
)
  • Authentication: store API keys or bearer tokens in a project connection rather than hard-coding them; Foundry also supports Microsoft Entra identities and OAuth identity passthrough.
  • Approval control: require_approval accepts always, never, or a selective list — require approval for anything that writes or changes Azure resources.
  • Foundry Toolboxes: bundle several MCP servers and other tools (Web Search, Code Interpreter, Azure AI Search, OpenAPI tools) behind one MCP-compatible endpoint instead of wiring each tool into every agent separately.
  • Private endpoints: reaching an MCP server that isn't public requires Standard Agent Setup with private networking (BYO VNet) and a dedicated MCP subnet — Basic agent setup doesn't support it.
  • Known limit: synchronous MCP tool calls time out at 100 seconds; long-running operations need background mode with a model that supports it, such as GPT-5.4 or GPT-5.5.
Official source: Connect to MCP server endpoints for agents — Microsoft Foundry

Govern MCP Tools with an AI Gateway

Once an MCP server is used by production agents, route eligible tools through an AI Gateway backed by Azure API Management. That gives you one governed entry point for traffic controls, logs, and policy enforcement instead of agents calling the server directly.

API Management policy — rate limit MCP tool calls
<inbound>
  <base />
  <rate-limit-by-key calls="60" renewal-period="60"
      counter-key="@(context.Request.IpAddress)" />
</inbound>
  • What it adds: consistent authentication and access control, centralized traffic logs and metrics, plus rate limiting, IP filtering, and routing policies without changing the MCP server or agent code.
  • Scope: preview feature, and only new MCP tools created without managed OAuth are routed through the gateway automatically; existing tools must be re-created after the gateway is connected.
  • Not covered: Foundry-native tools like SharePoint, code-first MCP tools, tools using managed OAuth, and OpenAPI tools aren't eligible for AI Gateway routing.
  • Verification: confirm the tool's endpoint in Foundry shows the gateway URL (not the direct MCP server URL), then check API Management logs for 2xx success, 429 rate-limit, or 403 IP-filter responses.
Official source: Govern MCP tools by using an AI Gateway — Microsoft Foundry

Azure MCP Server vs. Work IQ SharePoint MCP Server

Azure MCP ServerWork IQ SharePoint
ScopeAzure development, operations, and platform servicesSharePoint sites, lists, and files
PublisherAzure developer tools teamMicrosoft 365 / Agent 365
LicensingDepends on host: GitHub Copilot for supported editor use; Copilot Studio or Foundry licensing/billing for agent use; Azure RBAC always appliesMicrosoft 365 Copilot license (preview)
Typical clientVS Code, Visual Studio, Copilot Studio, Microsoft FoundryCopilot Studio
GovernanceAzure RBAC, elicitation, AI Gateway (Foundry)Microsoft 365 admin center Agent Tools registry

The two servers solve different problems. A single Copilot Studio agent could use SharePoint tools to read a policy document and Azure MCP tools to check the resource the policy refers to. See our MCP server SharePoint integration setup guide for the SharePoint side.

Current Limitations and Watch-Outs

  • Developer-scoped by design: Microsoft states the local Azure MCP Server is for developer use inside your organization, not for external-facing applications.
  • Prerequisite gate: local Azure MCP Server tools require a GitHub Copilot subscription and are disabled by default until enabled in a supported host.
  • AI Gateway is in preview and doesn't cover every tool type — check the exclusions above before assuming a tool is governed.
  • 100-second synchronous timeout on Foundry MCP tool calls; plan background mode for anything long-running.
  • Single-tenant custom connector for the Copilot Studio path unless you do the extra cross-tenant service principal work.
  • Third-party MCP servers are unverified by Microsoft. If you connect a non-Microsoft MCP server to a Foundry agent, Microsoft explicitly disclaims responsibility for that server — review data handling and prefer servers hosted by trusted providers directly, not proxies.

Recommended Rollout Plan

  1. Week 1 — try it locally: enable Azure MCP Server tools in VS Code or Visual Studio for one developer, scoped to a single namespace (e.g. storage or monitor), to validate the RBAC model against a non-production subscription.
  2. Week 2 — pick the agent surface: decide Copilot Studio (custom connector path) or Microsoft Foundry (native MCP tool) based on where the target agent already lives.
  3. Week 3 — deploy and connect: stand up the remote server (Container Apps via the azd template, or your own hosting), wire it to the agent, and require approval on every tool call during testing.
  4. Week 4 — govern and pilot: for Foundry, connect an AI Gateway and apply rate limiting before wider rollout; for Copilot Studio, confirm the custom connector sits inside your existing Power Platform DLP policy.

Frequently Asked Questions

MCP server Azure integration connects an AI agent or MCP-compatible client to Azure tools through the Azure MCP Server (azmcp). It lets the agent query and manage Azure services through governed tool calls backed by Microsoft Entra ID and Azure RBAC.

No. Work IQ SharePoint is scoped to SharePoint and OneDrive under Microsoft 365 Copilot. The Azure MCP Server is broader and focuses on Azure development, operations, and platform services. A single Copilot Studio agent can use both when a workflow touches SharePoint content and Azure resources.

Deploy it as a remote HTTPS server (Microsoft's azd template targets Azure Container Apps), create a Power Apps custom connector pointed at it with the x-ms-agentic-protocol: mcp-streamable-1.0 property and OAuth 2.0 security, then add that connector to the agent's Tools in Copilot Studio.

It authenticates with your Azure credentials or managed identity and is bound by Azure RBAC, so it can only do what that identity is allowed to do. It also prompts for confirmation before returning secrets, and can run in read-only mode to block writes entirely.

For Microsoft Foundry, route new MCP tools through an AI gateway backed by Azure API Management and apply rate limiting, IP filtering, and audit logging as standard policies. For Copilot Studio, the custom connector is governed by your existing Power Platform DLP policy.

Official Microsoft Sources

💬

Need help wiring Azure into your Copilot Studio agents?

OceanCloud helps teams connect Azure and Microsoft 365 through MCP the right way, with governance, RBAC, and rollout planning built in from day one.

Book a Free 60-Minute Consultation ➜