action.skip

Using Terraform MCP Server (open beta) for Megaport Terraform Provider

This topic introduces the current status of the Terraform Model Context Protocol (MCP) Server (open beta) in relation to the Megaport Terraform Provider.

Linking AI applications with Infrastructure-as-Code (IaC) opens new frontiers for network automation via AI agents. This integration enables AI applications to move beyond simple text generation, allowing them to actively evaluate and execute network configurations using Megaport’s infrastructure.

What is MCP?

The Model Context Protocol (MCP) is an open-source standard that acts as a universal translator between AI models and external tools or data sources.

Instead of building custom integrations for every AI application (such as Claude, ChatGPT, or Copilot), MCP allows a server to expose specific capabilities, such as reading files or executing API calls, to any compatible AI host, enabling complex tasks beyond simple text generation.

This allows AI applications to interact directly with technical environments, such as executing infrastructure changes via Terraform or retrieving live network analytics.

How does that relate to Terraform?

In the context of infrastructure management, an MCP server for Terraform allows AI applications to understand and interact with existing Terraform configurations and providers.

The Megaport Terraform Provider is a tool that communicates directly with the Megaport API to provision network resources, and MCP Server is a translator that helps AI applications to understand how to use the Megaport Terraform Provider correctly.

Note

The Megaport Terraform Provider is built on HashiCorp Terraform. HashiCorp is actively developing and progressively releasing the Terraform MCP Server implementation, which is currently in open beta. Megaport is closely monitoring HashiCorp’s MCP Server deployment.

Tutorial contents

We have developed an introductory tutorial for customers interested in testing the Megaport Terraform Provider alongside the Terraform MCP Server in the staging environment.

It is available in the Megaport Terraform Provider GitHub repository. For more information, see Tutorial: Building an Agentic Network with Megaport and Terraform.

Helpful resources