DEV Community

Daniel Jonathan
Daniel Jonathan

Posted on

⚙️ Enabling a Logic App as an MCP Server

You can enable your Logic App (Standard) to act as an MCP (Model Context Protocol) server by editing the host.json file.

This unlocks MCP-specific APIs on your app and allows Agentic/AI workflows to push or consume resources programmatically.


Steps

  1. Open your Logic App in the Azure portal.

Navigate to your Standard Logic App resource.

  1. Launch Advanced Tools (Kudu).
  • From the sidebar, under Development Tools, select Advanced Tools > Go.

  1. Open the Debug Console.
  • On the Kudu toolbar, select Debug Console > CMD.
  • Navigate to: site/wwwroot

  1. Edit the host.json file.
  • In the file list, next to host.json, click the edit (pencil) icon.
  • Inside the editor, after the extensionBundle object, add a new extensions section.

5. Verify MCP is Enabled

After saving host.json, you can verify MCP support is active:

This response means:

  • ✅ The MCP server is enabled and responding.
  • ❌ You need to supply a valid Bearer token in the Authorization header to access it.

By default, MCP endpoints are secured with OAuth 2.0 (Bearer tokens).

If you want to disable authentication (not recommended for production), you can change the type to "anonymous" in the host.json under the McpServerEndpoints section.

✅ At this point, your Logic App is officially acting as an MCP server, and you can begin integrating with MCP-aware clients or automate workflow deployment through the MCP APIs.


MCP with Anonymous Access

Here’s a minimal configuration that enables MCP support with anonymous authentication:

{
  "version": "2.0",
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle.Workflows",
    "version": "[1.*, 2.0.0)"
  },
    "extensions": {
    "workflow": {
        "McpServerEndpoints": {
            "enable": true,
            "authentication": {
                "type": "anonymous"
            }
        }
    }

  }
}
Enter fullscreen mode Exit fullscreen mode

When anonymous mode is enabled, you can browse directly to mcp endpoint and you’ll see a Server-Sent Events (SSE) stream from the MCP server as shown below.

Top comments (0)