Terraform MCP Server
for AI Agents
Connect your AI agent to StackOne's Terraform MCP server and give it 119 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
119 Agent Actions
Create, read, update, and delete across Terraform — and extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your Terraform MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every Terraform tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.
Prompt Injection Defense →Performance
Max Agent Context. Min Cost.
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Terraform call.
Tools Discovery →What is the Terraform MCP Server?
A Terraform MCP server lets AI agents read and write Terraform data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Terraform MCP server ships with 119 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Terraform MCP Tools
Every action from Terraform's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
Configuration Versions
- Create Configuration Version
Create a new configuration version for uploading configuration files.
- List Configuration Versions
List configuration versions for a workspace.
- Get Configuration Version
Retrieve details about a specific configuration version.
- Download Configuration Version
Download configuration files for a configuration version.
Notification Configurations
- Create Notification Configuration
Create a notification configuration for a workspace.
- List Notification Configurations
List notification configurations for a workspace.
- Get Notification Configuration
Retrieve details about a notification configuration.
- Update Notification Configuration
Update a notification configuration.
- Delete Notification Configuration
Delete a notification configuration.
Organizations
- Create Organization
Create a new organization.
- List Organizations
List all organizations the user has access to.
- Get Organization
Retrieve details about a specific organization.
- Update Organization
Update an existing organization's settings.
- Delete Organization
Delete an organization and all its resources.
Organization Memberships
- List Organization Memberships
List all memberships for an organization.
- Get Organization Membership
Retrieve details about a specific organization membership.
Plan Exports
- Create Plan Export
Export a plan for external use.
- Get Plan Export
Retrieve details about a plan export.
- Download Plan Export
Get download URL for an exported plan.
- Delete Plan Export
Delete an exported plan.
Projects
- Create Project
Create a new project in an organization.
- List Projects
List all projects in an organization.
- Get Project
Retrieve details about a specific project.
- Update Project
Update an existing project's configuration.
- Delete Project
Delete an empty project.
Project Tag Bindings
- List Project Tag Bindings
List tags bound to a project.
- Update Project Tag Bindings
Add or update tag bindings on a project.
Runs
- Create Run
Create a new run in a workspace.
- Get Run
Retrieve details about a specific run.
Policy Checks
- List Policy Checks
List policy checks for a run.
- Get Policy Check
Retrieve details about a specific policy check.
Run Comments
- Create Run Comment
Add a comment to a run.
- List Run Comments
List comments on a run.
Run Triggers
- Create Run Trigger
Create a run trigger to connect workspaces.
- List Run Triggers
List all run triggers for a workspace.
- Get Run Trigger
Retrieve details about a specific run trigger.
- Delete Run Trigger
Delete a run trigger.
State Versions
- Create State Version
Create a new state version for a workspace.
- List State Versions
List state versions for a workspace.
- Get State Version
Retrieve details about a specific state version.
State Version Outputs
- List State Version Outputs
List outputs for a state version.
- Get State Version Output
Retrieve a specific state version output.
Teams
- Create Team
Create a new team in an organization.
- List Teams
List all teams in an organization.
- Get Team
Retrieve details about a specific team.
- Update Team
Update an existing team's configuration.
- Delete Team
Delete a team from an organization.
Workspace Variables
- Create Workspace Variable
Create a new variable in a workspace.
- List Workspace Variables
List all variables in a workspace.
- Update Workspace Variable
Update an existing workspace variable.
- Delete Workspace Variable
Delete a variable from a workspace.
Variable Sets
- Create Variable Set
Create a new variable set in an organization.
- List Variable Sets
List all variable sets for an organization.
- Get Variable Set
Retrieve details about a specific variable set.
- Update Variable Set
Update an existing variable set.
- Delete Variable Set
Delete a variable set.
Workspaces
- Create Workspace
Create a new workspace in an organization.
- List Workspaces
List all workspaces in an organization.
- Get Workspace
Retrieve details about a specific workspace.
- Update Workspace
Update an existing workspace's configuration.
- Delete Workspace
Delete a workspace and all its data.
Workspace Tags
- Add Workspace Tags
Add tags to a workspace.
- Get Workspace Tags
List tags attached to a workspace.
- Delete Workspace Tags
Remove tags from a workspace.
Remote State Consumers
- Add Remote State Consumers
Add workspaces that can access this workspace's state.
- Get Remote State Consumers
List workspaces that can access this workspace's state.
- Delete Remote State Consumers
Remove workspaces from accessing this workspace's state.
Other (52)
- Add Members To Team
Add organization members to a team by organization membership ID.
- Add Variable To Set
Add a variable to a variable set.
- Get Account Details
Retrieve details about the authenticated user's account.
- List Agent Pools
List all agent pools for an organization.
- Get Configuration Version Commit Info
Retrieve commit information for a configuration version.
- Download Run Configuration Version
Download configuration files for a run.
- Get Cost Estimate
Retrieve a cost estimate for a run.
- Get Organization Entitlements
Retrieve the entitlement set for an organization.
- List Own Memberships
List the current user's organization memberships.
- Get Plan
Retrieve details about a specific plan.
- Get Plan JSON Output
Retrieve the JSON execution plan by plan ID.
- Get Run Plan JSON Output
Retrieve the JSON execution plan by run ID.
- Get Apply
Retrieve details about a specific apply.
- Get Errored State
Recover state from a failed apply.
- List Runs In Workspace
List all runs for a specific workspace.
- List Runs In Organization
List all runs across an organization.
- Get Current State Version
Retrieve the current state version for a workspace.
- Get Current State Version Outputs
List outputs from the current state version of a workspace.
- Get User
Retrieve details about a specific user.
- List Project Variable Sets
List all variable sets for a project.
- List Workspace Variable Sets
List all variable sets for a workspace.
- List Variable Set Variables
List all variables in a variable set.
- Get Workspace By ID
Retrieve details about a workspace using its ID.
- Move Workspaces To Project
Move workspaces into a project.
- Update Variable In Set
Update a variable in a variable set.
- Remove User From Organization
Remove a user from an organization.
- Delete Members From Team
Delete organization members from a team by organization membership ID.
- Delete Variable From Set
Delete a variable from a variable set.
- Remove Variable Set From Workspaces
Remove a variable set from one or more workspaces.
- Remove Variable Set From Projects
Remove a variable set from one or more projects.
- Archive Configuration Version
Archive a configuration version.
- Soft Delete Configuration Version
Mark a configuration version for garbage collection (Enterprise only).
- Restore Configuration Version
Restore a configuration version marked for garbage collection (Enterprise only).
- Permanently Delete Configuration Version
Permanently delete a configuration version (Enterprise only).
- Invite User To Organization
Invite a user to join an organization.
- Apply Run
Apply a planned run.
- Discard Run
Discard a run that has not been applied.
- Cancel Run
Cancel a run that is currently planning or applying.
- Force Cancel Run
Forcefully cancel a run after normal cancel has been initiated.
- Force Execute Run
Force execute a pending run.
- Override Policy Check
Override a soft-mandatory policy check.
- Rollback State Version
Rollback to a previous state version.
- Soft Delete State Version
Mark a state version for garbage collection (Enterprise only).
- Restore State Version
Restore a state version marked for garbage collection (Enterprise only).
- Permanently Delete State Version
Permanently delete a state version (Enterprise only).
- Apply Variable Set To Workspaces
Apply a variable set to one or more workspaces.
- Apply Variable Set To Projects
Apply a variable set to one or more projects.
- Safe Delete Workspace
Safely delete a workspace only if it has no managed resources.
- Lock Workspace
Lock a workspace to prevent new runs.
- Unlock Workspace
Unlock a workspace to allow new runs.
- Force Unlock Workspace
Force unlock a workspace locked by another user.
- Assign SSH Key
Assign an SSH key to a workspace.
Set Up Your Terraform MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Terraform in under 10 lines of code.
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Check More Developer Tools MCP Servers
185+ actions
141+ actions
136+ actions
136+ actions
133+ actions
129+ actions
110+ actions
Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
Terraform MCP Server FAQ
Does StackOne have a Terraform MCP server?
Terraform MCP server vs direct API integration — what's the difference?
How does Terraform authentication work for AI agents?
origin_owner_id.Are Terraform MCP tools vulnerable to prompt injection?
What is the context bloat of a Terraform agent and how do I avoid it?
Can I limit which actions my Terraform agent can access?
Can I create custom agent actions for my Terraform MCP server?
When should I NOT use a Terraform MCP server?
What AI frameworks and AI clients does the StackOne Terraform MCP server support?
Put your AI agents to work
All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.