home / mcp / iac memory mcp server
This is a personal project to see if Claude 3.5 Sonnet can write a moderately complex MCP Server in Python.
Configuration
View docs{
"mcpServers": {
"agentwong-iac-memory-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/path/to/iac-memory-mcp-server",
"run",
"iac-memory-mcp-server"
],
"env": {
"DATABASE_URL": "sqlite:////home/herman/iac.db"
}
}
}
}IaC Memory MCP Server provides persistent memory storage with version-aware context for Infrastructure-as-Code components. It organizes IaC resources, tracks relationships, and enables quick discovery and analysis of Terraform and Ansible artifacts, helping you maintain accurate, up-to-date context for your infrastructure definitions.
You integrate the IaC Memory MCP Server with your MCP client to explore, analyze, and manage IaC components. Use the search features to discover resources, analyze entities to understand dependencies, and retrieve provider or module details for Terraform and Ansible. The server exposes hierarchical resource URIs, supports relationship mappings, and returns version-aware information to help you reason about changes over time.
Retrieve detailed provider information including version and resources for Terraform providers.
List all resources available for a specific Terraform provider.
Get detailed information about a Terraform resource type.
Register a new Terraform provider with versioning and documentation.
Add resource definitions with schemas for Terraform resources.
Update Terraform provider versions with updated documentation.
Get detailed information about an Ansible collection.
List all available Ansible collections.
View version history for an Ansible collection.
Get detailed information about a specific Ansible module.
List all modules within an Ansible collection.
Check version compatibility for Ansible modules.
Register a new Ansible collection.
Add new Ansible modules with validation and documentation.
Create a new infrastructure entity in memory with relationships.
Modify an existing infrastructure entity and its relationships.
Remove an entity and clean up its relationships.
Analyze dependencies and relationships between entities.
Search for IaC resources by provider and resource type.
Analyze an entity and its relationships with observations.
Get information about a Terraform provider, optionally by version.
Get information about a specific Ansible module in a collection, optionally by version.