
OpenTofu
STDIOHTTP-SSEMCP server for searching and retrieving OpenTofu Registry information for AI assistants.
MCP server for searching and retrieving OpenTofu Registry information for AI assistants.
A Model Context Protocol (MCP) server for accessing the OpenTofu Registry. This server allows language model assistants to search for and retrieve information about OpenTofu providers, modules, resources, and data sources.
Available as both a local Node.js server and a remote Cloudflare Worker deployment.
You can use this MCP server with any AI assistant that supports the Model Context Protocol. Choose between the hosted service or local installation:
The easiest way to get started is to use our hosted service at mcp.opentofu.org
. Benefits include:
Add the hosted OpenTofu MCP server to Claude Code:
claude mcp add opentofu -t sse https://mcp.opentofu.org/sse
Automatically install to Cursor in one click
Add this to your settings.json
.
{ "mcp": { "servers": { "opentofu": { "type": "sse", "url": "https://mcp.opentofu.org/sse" }, } } }
You do not need to define any inputs.
{ "mcpServers": { "opentofu": { "transport": "sse", "endpoint": "https://mcp.opentofu.org/sse" } } }
You can also run the server locally with npx:
npx @opentofu/opentofu-mcp-server
Install globally for repeated use:
npm install -g @opentofu/opentofu-mcp-server opentofu-mcp-server
Add the local server to Claude Code:
claude mcp add opentofu -- npx @opentofu/opentofu-mcp-server
{ "mcpServers": { "opentofu": { "command": "npx", "args": ["-y", "@opentofu/opentofu-mcp-server"] } } }
The OpenTofu MCP server provides the following tools:
search-opentofu-registry
: Search for providers, modules, resources, and data sourcesget-provider-details
: Get detailed information about a specific providerget-module-details
: Get detailed information about a specific moduleget-resource-docs
: Get documentation for a specific resourceget-datasource-docs
: Get documentation for a specific data source