Purpose: mcp-terragrunt-docs is an MCP (Model Context Protocol) server developed with Deno and TypeScript, positioned as a Terragrunt documentation context provider. It targets scenarios where AI assistants are used to write Terragrunt Infrastructure as Code (IaC) configurations, addressing the problems of insufficient IDE support for Terragrunt and AI autocompletion frequently producing incorrect results or false-positive lint errors.
Main capabilities: As an MCP provider, this server exposes tools and resources so that AI agents or other MCP clients can query Terragrunt documentation information and development information such as GitHub issues. With this context, LLMs/AI assistants can obtain the latest documentation and issues from the Terragrunt GitHub repository, thereby providing more accurate information.
Usage: Deno must be installed first, then clone the repository: git clone https://github.com/Excoriate/mcp-terragrunt-docs.git,并进入目录 cd mcp-terragrunt-docs. All tools require a valid GitHub Token environment variable to be set; the optional variable names are GITHUB_TOKEN, GH_TOKEN, or GITHUB_PERSONAL_ACCESS_TOKEN. On Unix/macOS you can use export GITHUB_TOKEN=ghp_xxx..., on Windows cmd you can use set GITHUB_TOKEN = ghp_xxx..., and it can also be set in a .env file. To run the server, use deno run -A main.ts directly, or use just run from the justfile; just inspect can also be used for local debugging and inspection. The project also provides a way to use it directly from JSR, as well as configuration instructions for use with Claude Desktop (adding the corresponding configuration in claude_desktop_config.json), and supports building a Docker image and running in Docker. If using a local .env file, it can be passed via --env-file .env.
Applicable scenarios: Suitable for use in MCP clients such as Claude Desktop to provide developers writing Terragrunt configurations with the latest documentation and GitHub issue context, improving the accuracy of AI-assisted coding.
Limitations: The materials do not provide a specific tool list, resource list, performance metrics, or pricing information; a valid GitHub Token must be prepared before use, and a Deno environment must be installed. The project uses the MIT License.