get-datasource-docs
Get detailed documentation for a specific OpenTofu data source by provider namespace, provider name, and data source name.
Look up an OpenTofu provider, module, resource or data source and read its documentation while you are writing the configuration.
LABSCO SUMMARY
Resource and data-source documentation is fetched per version, so what gets written matches the provider you have pinned instead of whatever was current when the model was trained. Search takes the simple name — the 'terraform-provider-' prefix is dropped rather than required.
A client for the OpenTofu Registry: one search across providers, modules, resources and data sources, plus detail and documentation lookups for each of them.
npx on your PATH. No account and no key.
One command — npx -y @opentofu/opentofu-mcp-server
USE CASES
Search by the plain name, then read the resource's documentation at the version you have pinned rather than the one the model remembers.
Module details come back per namespace, name and target, which is what distinguishes two modules with the same short name.
Provider details list what is there; data-source documentation covers the half of a provider that resource docs do not.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
get-datasource-docsGet detailed documentation for a specific OpenTofu data source by provider namespace, provider name, and data source name.
get-module-detailsGet detailed information about a specific OpenTofu module by namespace, name, and target. Use the simple module name, NOT the full repository name.
get-provider-detailsGet detailed information about a specific OpenTofu provider by namespace and name. Do NOT include 'terraform-provider-' prefix in the name.
get-resource-docsGet detailed documentation for a specific OpenTofu resource by provider namespace, provider name, and resource name.
search-opentofu-registrySearch the OpenTofu Registry to find providers, modules, resources, and data sources. Use simple terms without prefixes like 'terraform-provider-' or 'terraform-module-'.
BEFORE YOU INSTALL
5 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 5 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"opentofu-mcp-server": {
"command": "npx",
"args": [
"-y",
"@opentofu/opentofu-mcp-server"
]
}
}
}npx -y @opentofu/opentofu-mcp-serverhttps://mcp.opentofu.org/mcpAdd this hosted endpoint to your MCP client.