- Home
- MCP servers
- OpenTofu
OpenTofu
- typescript
77
GitHub Stars
typescript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
You can access the OpenTofu Registry through an MCP server to search for providers, modules, resources, and data sources, retrieve detailed information, and obtain OpenTofu configuration examples. Use the hosted service for simplicity or run a local server for offline or private usage.
How to use
Connect your MCP client to the OpenTofu MCP server to search for registry items, view provider and module details, and fetch resource or data source documentation. You can use the hosted service for a fully managed, always-up-to-date experience at the provided MCP URL, or run a local server to host the MCP endpoint on your own machine.
How to install
Prerequisites: you need Node.js installed on your system. You can verify installation with node -v and npm -v.
Option A: Use the hosted MCP service (recommended) — no local installation required.
Option B: Run a local MCP server using Node.js
npx @opentofu/opentofu-mcp-server
Additional configuration and usage notes
The hosted service is available at the OpenTofu MCP endpoint and supports SSE for real-time updates. If you prefer to connect from Claude Code, Cursor, or generic MCP clients, use the configuration below.
{
"mcpServers": {
"opentofu": {
"transport": "sse",
"endpoint": "https://mcp.opentofu.org/sse"
}
}
}
Security and deployment notes
When running a local server, keep your environment secure and limit access to trusted clients if you expose it on a network. Regularly update to the latest MCP server version to ensure you have current registry data and features.
Available tools
search-opentofu-registry
Search the OpenTofu Registry for providers, modules, resources, and data sources.
get-provider-details
Retrieve detailed information about a specific provider.
get-module-details
Retrieve detailed information about a specific module.
get-resource-docs
Fetch documentation for a specific resource.
get-datasource-docs
Fetch documentation for a specific data source.