Skip to main content
Glama

OpenTofu MCP Server

by opentofu

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:

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

Add the hosted OpenTofu MCP server to Cursor:

Cursor expects url instead of endpoint in order to properly set up the MCP server.

{ "mcpServers": { "opentofu": { "transport": "sse", "url": "https://mcp.opentofu.org/sse" } } }
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 sources
  • get-provider-details: Get detailed information about a specific provider
  • get-module-details: Get detailed information about a specific module
  • get-resource-docs: Get documentation for a specific resource
  • get-datasource-docs: Get documentation for a specific data source
-
security - not tested
F
license - not found
-
quality - not tested

A Model Context Protocol server that allows AI assistants to search for and retrieve information about OpenTofu providers, modules, resources, and data sources from the OpenTofu Registry.

  1. Features
    1. Installation
      1. Hosted Service (Recommended)
      2. Local Server
      3. Available Tools

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol (MCP) server implementation for the OpenLedger API. This server provides structured context to AI models according to the MCP specification.
      Last updated -
      8
      TypeScript
      Apache 2.0
    • -
      security
      F
      license
      -
      quality
      A Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.
      Last updated -
      275
      JavaScript
      • Apple
    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol server that provides a standardized interface for AI models to access, query, and modify content in Notion workspaces.
      Last updated -
      275
      2
      TypeScript
      MIT License
      • Apple
    • A
      security
      A
      license
      A
      quality
      A Model Context Protocol server enabling AI assistants to interact with Kong Konnect's API Gateway, providing tools to query analytics data, inspect configurations, and manage control planes through natural language.
      Last updated -
      10
      22
      TypeScript
      Apache 2.0
      • Apple

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/opentofu/opentofu-mcp-server'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server