drio
Open app

IaC Memory MCP Server

Source

This is a personal project to see if Claude 3.5 Sonnet can write a moderately complex MCP Server in Python.

Catalog onlyCatalog onlySTDIO

Overview

IaC Memory MCP Server is a Model Context Protocol (MCP) server designed to enhance Claude AI's capabilities by providing persistent memory storage for Infrastructure-as-Code (IaC) components, focusing on version tracking and relationship mapping for Terraform and Ansible resources.

To use the IaC Memory MCP Server, set up the server with the required environment variables, and utilize the provided commands to manage and analyze IaC components through a structured URI system.

  • Persistent storage and version tracking for IaC components - Hierarchical resource organization with URI-based access - Comprehensive relationship mapping between components - Version-specific documentation management - Automated relationship analysis and insights
  1. Managing Terraform and Ansible resources with version control.
  2. Analyzing relationships between different IaC components.
  3. Providing a structured approach to access and manage infrastructure entities.

Add to your AI client

Use these steps to connect IaC Memory MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "iac-memory-mcp-server-agentwong": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-iac-memory-mcp-server-agentwong"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "iac-memory-mcp-server-agentwong": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-iac-memory-mcp-server-agentwong"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "iac-memory-mcp-server-agentwong": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-iac-memory-mcp-server-agentwong"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "iac-memory-mcp-server-agentwong": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-iac-memory-mcp-server-agentwong"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "iac-memory-mcp-server-agentwong": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-iac-memory-mcp-server-agentwong"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "iac-memory-mcp-server-agentwong": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-iac-memory-mcp-server-agentwong"
      ]
    }
  }
}

FAQ

What platforms does the server support?

The server supports Terraform and Ansible for managing IaC components.

How can I configure the server?

Configuration is done through environment variables, including the database location and debug settings.

Is there a license for this project?

Yes, the project is licensed under the MIT License.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":847,"uuid":"04bd0fdf-f2f3-4067-a6e7-5f5cae64a4e4","name":"iac-memory-mcp-server","title":"IaC Memory MCP Server","description":"This is a personal project to see if Claude 3.5 Sonnet can write a moderately complex MCP Server in Python.","avatar_url":"https://avatars.githubusercontent.com/u/43461848?v=4","created_at":"2025-01-28T02:14:18.373Z","updated_at":"2025-02-23T07:22:07.192Z","status":"created","author_name":"AgentWong","author_avatar_url":"https://avatars.githubusercontent.com/u/43461848?v=4","tags":"iac-memory,mcp-server,infrastructure-as-code","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/AgentWong/iac-memory-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]