Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"opentofu": {
"args": [
"-y",
"@opentofu/opentofu-mcp-server"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
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.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@opentofu/opentofu-mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked @opentofu/opentofu-mcp-server against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in devops
MCP server for using the GitLab API
Yunxiao MCP Server provides AI assistants with the ability to interact with the Yunxiao platform. It provides a set of tools that interact with Yunxiao's API, allowing AI assistants to manage Codeup repository, Project, Pipeline, Packages etc.
MCP server for Komodo - manage Docker containers, servers, stacks, and deployments via AI
MCP server for ZenML - browse stacks, pipelines, runs, artifacts & trigger pipeline runs via API
MCP Security Weekly
Get CVE alerts and security updates for Opentofu Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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