- Explore MCP Servers
- opentofu-mcp-server
Opentofu Mcp Server
What is Opentofu Mcp Server
The opentofu-mcp-server is a Model Context Protocol (MCP) server designed for accessing the OpenTofu Registry. It enables language model assistants to search for and retrieve information about various OpenTofu providers, modules, resources, and data sources.
Use cases
Use cases for the opentofu-mcp-server include enabling AI assistants to assist developers in finding relevant OpenTofu modules, helping data scientists access data sources and documentation, and providing support for integrating OpenTofu resources into applications.
How to use
To use the opentofu-mcp-server, you can start it easily with npx by running ‘npx @opentofu/opentofu-mcp-server’ in your terminal. For global installation, use ‘npm install -g @opentofu/opentofu-mcp-server’ followed by ‘opentofu-mcp-server’. It can be integrated with AI tools like Claude and ChatGPT.
Key features
Key features of the opentofu-mcp-server include searching the OpenTofu Registry for providers and modules, obtaining detailed information about specific providers and modules, accessing documentation for resources and data sources, retrieving comprehensive configuration examples, and providing an MCP-compatible interface for AI assistants.
Where to use
The opentofu-mcp-server can be used in various fields where AI assistants are deployed, particularly in environments that require access to OpenTofu resources, such as data science, machine learning, and software development.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Opentofu Mcp Server
The opentofu-mcp-server is a Model Context Protocol (MCP) server designed for accessing the OpenTofu Registry. It enables language model assistants to search for and retrieve information about various OpenTofu providers, modules, resources, and data sources.
Use cases
Use cases for the opentofu-mcp-server include enabling AI assistants to assist developers in finding relevant OpenTofu modules, helping data scientists access data sources and documentation, and providing support for integrating OpenTofu resources into applications.
How to use
To use the opentofu-mcp-server, you can start it easily with npx by running ‘npx @opentofu/opentofu-mcp-server’ in your terminal. For global installation, use ‘npm install -g @opentofu/opentofu-mcp-server’ followed by ‘opentofu-mcp-server’. It can be integrated with AI tools like Claude and ChatGPT.
Key features
Key features of the opentofu-mcp-server include searching the OpenTofu Registry for providers and modules, obtaining detailed information about specific providers and modules, accessing documentation for resources and data sources, retrieving comprehensive configuration examples, and providing an MCP-compatible interface for AI assistants.
Where to use
The opentofu-mcp-server can be used in various fields where AI assistants are deployed, particularly in environments that require access to OpenTofu resources, such as data science, machine learning, and software development.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
OpenTofu MCP Server
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.
Features
- Search the OpenTofu Registry for providers, modules, resources, and data sources
- Get detailed information about specific providers and modules
- Access documentation for resources and data sources
- Retrieve comprehensive OpenTofu configuration examples
- MCP-compatible interface for AI assistants
Installation
You can use this MCP server with any AI assistant that supports the Model Context Protocol. Choose between the hosted service or local installation:
Hosted Service (Recommended)
The easiest way to get started is to use our hosted service at mcp.opentofu.org. Benefits include:
- ✅ No local installation required
- ✅ Always up-to-date with the latest OpenTofu Registry data
- ✅ Globally distributed via Cloudflare Workers
- ✅ High availability and performance
Claude Code
Add the hosted OpenTofu MCP server to Claude Code:
claude mcp add opentofu -t sse https://mcp.opentofu.org/sse
Cursor / VS Code
Automatically install to Cursor in one click
Add this to your settings.json.
You do not need to define any inputs.
Generic MCP Configuration
{
"mcpServers": {
"opentofu": {
"transport": "sse",
"endpoint": "https://mcp.opentofu.org/sse"
}
}
}
Local Server
Basic Usage
You can also run the server locally with npx:
npx @opentofu/opentofu-mcp-server
Global Installation
Install globally for repeated use:
npm install -g @opentofu/opentofu-mcp-server opentofu-mcp-server
Claude Code (Local)
Add the local server to Claude Code:
claude mcp add opentofu -- npx @opentofu/opentofu-mcp-server
Generic MCP Configuration (Local)
{
"mcpServers": {
"opentofu": {
"command": "npx",
"args": [
"-y",
"@opentofu/opentofu-mcp-server"
]
}
}
}
Available Tools
The OpenTofu MCP server provides the following tools:
Registry Search and Information
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
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










