0.1.5 • Published 6 months ago
@opentofu/opentofu-mcp-server v0.1.5
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.
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.
Basic Usage
The easiest way to use the OpenTofu MCP server is with npx:
npx @opentofu/opentofu-mcp-serverThis will start the MCP server, which can be used with Claude, ChatGPT, or other MCP-compatible assistants.
Global Installation
You can also install it globally:
npm install -g @opentofu/opentofu-mcp-server
opentofu-mcp-serverAI Tool Integration
Here's how to integrate with popular AI tools:
MCP Configuration (Generic)
{
"mcpServers": {
"opentofu": {
"command": "npx",
"args": ["-y", "@opentofu/opentofu-mcp-server"]
}
}
}Using with Claude Code
For Claude Code users, you can add this server to your session with:
claude mcp add opentofu -- npx @opentofu/opentofu-mcp-serverAvailable 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