# Khavion Architecture Review

The Khavion Architecture Review MCP server for Claude Code checks Terraform, CloudFormation, and Kubernetes against fixed rules. It also retrieves cited cloud guidance for infrastructure reviews.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: Khavion
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Khavion/architecture-review-mcp
- Updated: 2026-11-04
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/khavion-architecture-review

## What it does

The server reviews Terraform, CloudFormation, and Kubernetes files, or a list of cloud services. Its findings come from a fixed rule set, so identical inputs produce identical results. Separate tools retrieve provider documentation with citations and explain a finding by its rule ID.

Reviews run on the local machine. File contents, service lists, and tokens stay there. Without an API key, the review returns the three highest-severity findings and counts for the others. Setting `KHAVION_API_KEY` enables the full findings and a report link; the server then contacts Khavion to verify the key and create that link. Node 20 or newer is required.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `KHAVION_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add architecture-review-mcp -e KHAVION_API_KEY=<KHAVION_API_KEY> -- npx -y @khavion/architecture-review-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add khavion-architecture-review --env KHAVION_API_KEY=<KHAVION_API_KEY> -- npx -y @khavion/architecture-review-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "khavion-architecture-review": {
            "command": "npx",
            "args": [
                "-y",
                "@khavion/architecture-review-mcp"
            ],
            "env": {
                "KHAVION_API_KEY": "<KHAVION_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "khavion-architecture-review": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@khavion/architecture-review-mcp"
            ],
            "env": {
                "KHAVION_API_KEY": "<KHAVION_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e KHAVION_API_KEY=<KHAVION_API_KEY> khavion-architecture-review npx -y @khavion/architecture-review-mcp
```
Replace <…> with your own values

## When to use it
- check Terraform files against architecture rules
- find issues in CloudFormation templates
- review Kubernetes files with fixed rules
- retrieve cited cloud-provider guidance
- explain a review finding by its rule ID

## Example prompts
- Review these Terraform files and explain the findings.
- Find cited guidance for this cloud service.
- Review this service list and explain the finding with this rule ID.

## Similar
- [architecture-review](https://affpapa.org/en/nevibecode/skills/architecture-review.md) — skill · 653 installs
- [aws-architecture-review-expert](https://affpapa.org/en/nevibecode/agents/aws-architecture-review-expert.md) — subagent · ★ 372 repo stars
- [aws-well-architected-review](https://affpapa.org/en/nevibecode/skills/aws-well-architected-review.md) — skill · 84 installs
- [resilience-hub-getting-started](https://affpapa.org/en/nevibecode/skills/resilience-hub-getting-started.md) — skill · 4700 installs
- [aws-cloud-architecture](https://affpapa.org/en/nevibecode/skills/aws-cloud-architecture.md) — skill · 600 installs
- [iac-security-scan-skills](https://affpapa.org/en/nevibecode/skills/iac-security-scan-skills.md) — skill · 319 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
