Skip to main content

MCP Server

An MCP Server is a catalog resource that registers an external Model Context Protocol (MCP) server with AI Foundry.

Once created, the tools and resources exposed by the server can be discovered and then added to the Catalog tools. From that moment you can attach the MCP Server tools to Agents like any other Tool.

AI Foundry MCP Servers

MCP Server reference

FieldRequiredDescription
TitleYesDisplay name shown in the UI.
NameYesUnique identifier, auto-derived from Title. Lowercase letters, digits, dots, and hyphens only (must start and end with an alphanumeric character), max 63 characters. Immutable after creation.
DescriptionYesDescription of what the server provides.
TagsNoFree-form, multi-value tags used to make the MCP server easier to find and filter.
URLYesThe endpoint URL of the MCP server.
Transport TypeYesTransport protocol used to communicate with the MCP server: Streamable HTTP, SSE, or stdio.
Auth TypeNoAuthentication method used when connecting to this MCP server.
Tool Name PrefixNoA string prepended to all tool names exposed by this server (regex: ^[a-zA-Z_]*$). Useful to avoid name collisions across multiple servers.
Expose MCP ResourcesNoWhether to expose MCP resources in addition to tools. Defaults to false.
Require ConfirmationNoWhether tool invocations require explicit user confirmation before execution. Defaults to false.

Authentication

The Auth Type field configures how AI Foundry authenticates against the MCP server. Five schemes are supported:

Auth TypeAdditional fieldsDescription
None-No authentication.
Bearer tokenBearer TokenHTTP Authorization: Bearer <token>. Store the token in an env var and reference its name.
Basic (username / password)Username, PasswordHTTP Basic authentication.
API Key (custom header)API Key, Header NameCustom header authentication. Defaults to X-API-Key if header Name is omitted.
OAuth2 (access token)Access TokenOAuth 2 access token sent as a Bearer header.
caution

Never store secret values (tokens, passwords) directly in the Catalog. Reference the name of an environment variable that holds the actual secret value and inject it at deployment time.

How MCP tools appear in AI Foundry

Adding an MCP server's tools to the catalog is a guided, three-step onboarding flow rather than a fully automatic process:

  1. Discovery: once you save the MCP Server resource, AI Foundry connects live to its URL and lists the tools it currently exposes.
  2. Conflict check: the UI checks whether any of the discovered tool names already exist as Catalog Tool items, so you can spot and resolve naming collisions before anything is registered.
  3. Registration: for the tools you select, AI Foundry creates (or updates) the corresponding Catalog Tool items. If Tool Name Prefix is set on the MCP Server, each registered tool's name becomes {prefix}_{tool_name}; the tool's spec.mcpServer.name is set to the MCP Server's Name, linking it back to the server that exposes it.

Once registered, these tools behave exactly like manually created Tool resources: they are selectable in the agent creation form's tool picker, and at runtime AI Foundry routes calls to them to the corresponding MCP server.

See also

  • Tool: individual tools, including those sourced from MCP servers.
  • Agent: attaches tools (including MCP tools).