Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
Redmond desk4 min

Copilot Studio MCP: API Keys Don’t Work Through the Gateway Route

Copilot Studio supports API keys for direct MCP onboarding, but Microsoft’s on-premises gateway custom-connector route excludes API-key authentication. Here’s how to choose and configure the applicable path.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Not through the documented on-premises gateway custom-connector route if the server requires API-key authentication. Microsoft’s custom connector FAQ excludes API Key authentication for that route. Copilot Studio’s MCP onboarding wizard does support API keys, but it is a separate route for an MCP server reachable from Copilot Studio. Microsoft’s documentation does not describe a stateless exception to the gateway limitation.

Which connection route fits your MCP server?

Copilot Studio documents two ways to connect to an existing MCP server: the MCP onboarding wizard and a Power Apps custom MCP connector. Choose based on endpoint reachability, privacy, authentication, and whether the API fits the custom connector schema.

As an Amazon Associate I earn from qualifying purchases.

Route When it fits Authentication and constraints
MCP onboarding wizard The endpoint is reachable from Copilot Studio and you want to connect an existing MCP server directly. Supports no authentication, API key, or OAuth 2.0. For an API key, choose a request header or query parameter and supply its name. Microsoft describes Streamable transport support. Microsoft’s existing-server connection guide.
Power Apps custom MCP connector You need a custom connector, including a route to a private API through the on-premises data gateway. The example uses OpenAPI 2.0 and Streamable MCP protocol metadata. The gateway route does not support API Key authentication; choose an authentication type supported for that route. Microsoft’s MCP connector example and custom connector FAQ.

Microsoft’s FAQ states the authentication option as “API Key (except on-premises data gateway).” That is the key compatibility constraint: an API key accepted by the direct MCP wizard does not thereby become supported through the gateway custom-connector path.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does stateless MCP make API-key authentication work through the gateway?

No documented exception establishes that. The reviewed Microsoft pages describe the gateway limitation for API-key authentication and do not say that a stateless server, or a particular MCP transport mode, bypasses it. Treat transport behavior and connector authentication as separate choices: a stateless implementation does not change the documented authentication support.

#1 Best Overall
Yubico - Security Key C NFC - Basic Compatibility - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.

If the API key must remain in use and the MCP endpoint cannot be reached from Copilot Studio, the reviewed documentation does not establish a directly supported route combining those constraints. Any intermediary or authentication bridge would need deployment-specific validation; do not assume it is a Microsoft-documented gateway configuration.

Connect directly with the MCP onboarding wizard

Use this route when Copilot Studio can reach the MCP server endpoint. Microsoft’s guide describes configuring the server URL and authentication in the wizard.

Rank #2
Yubico - YubiKey 5C NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5C NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5C NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5C NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
  1. In Copilot Studio, add an MCP tool using the MCP onboarding option.
  2. Enter the server name, description, and URL.
  3. Choose API key authentication.
  4. Choose whether the key is sent in a request header or as a query parameter, then enter the required parameter name and key details.
  5. Complete the connection and verify that the agent can access the intended tools.

Microsoft’s connection guide describes the header choice this way: “Header: Select this option if your MCP server requires the API key to be sent in the request header.” Use the placement your MCP service expects; a query parameter is not interchangeable with a header unless the server is configured to accept it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use a custom MCP connector with a gateway

For a private API that must use an on-premises data gateway, the documented custom-connector route is the relevant one—but it does not support API-key authentication through that gateway. Confirm that the API’s authentication method is compatible before building the connector.

Rank #3
Yubico - YubiKey 5 NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-A or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts

Prepare the connector schema

Microsoft’s MCP custom-connector example uses an OpenAPI 2.0 YAML schema, an HTTPS host, a POST operation, and the extension x-ms-agentic-protocol: mcp-streamable-1.0. The custom connector FAQ says connectors currently support OpenAPI 2.0 rather than OpenAPI 3.0. The sample’s host and operation are illustrative; describe your actual service rather than copying fictional endpoint details.

Import and configure it

  1. Prepare an OpenAPI 2.0 YAML file that describes the MCP endpoint and its operation.
  2. In Power Apps, import the OpenAPI file to create the custom connector.
  3. Complete connector setup, including the gateway connection and an authentication method supported for that gateway route.
  4. Make the connector available to Copilot Studio and validate the connection and tools in your environment.

Microsoft’s MCP connection guide provides the schema example and directs makers to Power Apps for connector import and setup. The custom connector FAQ documents the authentication exception.

Rank #4
Yubico - Security Key NFC - Basic Compatibility - Multi-Factor Authentication (MFA) Key, Connect via USB-A or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key NFC via USB-A and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Check policies and agent requirements

MCP access in Copilot Studio relies on Power Platform connectors, so data policies that govern connectors also govern access to MCP servers and their tools. Microsoft also requires generative orchestration for MCP support. Review the tenant’s connector policies and agent configuration before treating a successful connector setup as available to the agent. See Microsoft’s MCP connection documentation and MCP tools and resources guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The agent maker is responsible for the external server’s tools and resources. Describe their actions clearly and expose only the tools needed for the task. A connection can provide access to capabilities beyond simple information retrieval, depending on the tools the server offers.

Best Value
FIDO2 U2F Security Key Passkey Two-Factor Authentication (2FA) USB Key PIN+Touch (Non-Biometric) USB-A Type TrustKey T110
  • Security Key : Protect your online accounts against unauthorized access by using FIDO2 and U2F authentication with T110. It's the world's most protective security key that works with windows, Mac OS, Linux as well as Chrome, Firefox, Edge and many other major browsers.
  • Certified with the new FIDO2 standard, T110 provides the benefit of fast login and strong protection against phishing, account takeover as well as many other online attactks.
  • Works with : Bank of America, Github, Google, Microsoft, DUO, Twitter, Facebook, Dropbox, Apple, ebay, BINANCE, mor and more.
  • Fits USB-A port : Insert the T110 security key into the USB-A port of each service and log in conveniently with one touch
  • For the driver download and user guide, please visit TrustKey Solutions Home support page.

What to verify in your environment

  • Whether Copilot Studio can reach the MCP endpoint directly, or whether it is private to the network.
  • Whether your required authentication method is supported by the selected route; API key is not supported for the on-premises gateway custom-connector route.
  • Whether the service can be represented by the OpenAPI 2.0 custom connector schema if using that route.
  • Whether gateway configuration, tenant data policies, endpoint behavior, and server-side authentication permit the intended connection.
  • Whether generative orchestration is enabled and the agent has access only to appropriate MCP tools.

Microsoft’s MCP connection page was last updated May 28, 2026, and its tools-and-resources page August 19, 2026. Product behavior and labels can change, so consult the current Microsoft Learn instructions when configuring a tenant.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.