Skip to main content
Glama
Azure-Samples

Secure Remote MCP Server

Azure API Management を使用してリモート MCP サーバーを保護する (試験的)

図

Azure API Management は、MCP サーバーのAI ゲートウェイとして機能します。

このサンプルは最新のMCP認証仕様を実装しています

流れを理解するためのシーケンス図です。

リモート MCP サーバーを Azure にデプロイする

  1. Microsoft.Appリソース プロバイダーを登録します。

    • Azure CLI を使用している場合は、 az provider register --namespace Microsoft.App --wait実行します。

    • Azure PowerShell を使用している場合は、 Register-AzResourceProvider -ProviderNamespace Microsoft.Appを実行します。その後、しばらくしてから(Get-AzResourceProvider -ProviderNamespace Microsoft.App).RegistrationStateを実行して、登録が完了したかどうかを確認します。

  2. このazdコマンドを実行して、API 管理サービス、関数アプリ (コード付き)、およびその他の必要なすべての Azure リソースをプロビジョニングします。

    azd up

MCP検査官

  1. 新しいターミナルウィンドウで、MCP Inspectorをインストールして実行します。

    npx @modelcontextprotocol/inspector
  2. Ctrl キーを押しながらクリックして、アプリによって表示される URL から MCP Inspector Web アプリを読み込みます (例: http://127.0.0.1:6274/#resources )

  3. トランスポートタイプをSSEに設定する

  4. azd upConnectの後に表示される実行中の API Management SSE エンドポイントへの URL を設定します。

    https://<apim-servicename-from-azd-output>.azure-api.net/mcp/sse
  5. ツールの一覧を表示します。ツールをクリックしてツールを実行してください

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides standardized MCP interfaces for Azure services including Cosmos DB operations (container and item management) and AI Search operations (index management), deployed through Azure API Management gateway.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Exposes backend APIs through Azure API Management as an MCP server to enable AI assistants to interact with product catalogs and order systems. It provides standardized tools for searching products, retrieving details, and managing orders via the Model Context Protocol.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Acts as a secure OAuth 2.0/2.1 proxy gateway for MCP servers, enabling integration with Claude and ChatGPT platforms.
    8 npm
    MIT