# ArchGuard MCP

> ArchGuard MCP is an open-source MCP server for developer tools. MCP server that audits code architecture, SQL migrations and distributed-systems math. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, Self-hosted, Linux, macOS, Windows
- **Website:** https://arch-guard-mcp.yashwant938.workers.dev
- **Repository:** https://github.com/yashwant938/arch-guard-mc
- **MCP Registry name:** io.github.yashwant938/arch-guard-mc
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-20

## About

The README says ArchGuard exists to stop coding agents from quietly introducing structural and reliability problems. It runs deterministic checks rather than model guesses: a Tarjan strongly-connected-components pass finds circular dependencies, a set of twelve rules flags issues such as N+1 query loops, HTTP calls without timeouts, unbounded in-memory caches and missing idempotency keys, and a SQL guardian reviews PostgreSQL, MySQL and SQLite DDL for locking and rolling-deploy hazards.

Beyond code review, the server exposes calculators and simulators for capacity planning: QPS, storage, bandwidth, Redis memory and shard bottlenecks, plus quorum checks for Dynamo-style and Raft clusters, tail-latency amplification with hedged requests, and a consistent-hashing ring simulation that compares key remapping against modulo hashing. A recommendation tool turns workload traits into an architecture outline.

The remote endpoint is streamable HTTP and needs no authentication, while a local stdio variant adds scanning of files on disk. It suits developers and architects who use MCP-capable assistants and want verified numbers and migration plans instead of generated estimates.

## Features

- **Circular dependency detection:** Builds an import graph and uses Tarjan's SCC algorithm to locate cycles, with coupling metrics and a Mermaid diagram.
- **Reliability rule checks:** Applies twelve rules covering N+1 loops, missing timeouts, unbounded caches, check-then-act races and injection risks.
- **Expand-Contract migration review:** Flags DDL that takes table locks or breaks rolling deploys and proposes a three-phase safe rewrite.
- **Capacity estimation:** Computes QPS, storage, bandwidth, Redis RAM, shard count and Little's Law concurrency, with presets for named services.
- **Quorum and latency verification:** Checks W+R>N quorum rules, Raft fault tolerance and fanout tail-latency with hedged-request comparison.
- **Consistent hashing simulation:** Runs a seeded FNV-1a ring to measure load skew and key remapping during scale-out.

## Good for

- Catch circular imports and reliability anti-patterns before an AI agent commits code
- Review SQL migrations for table locks before deploying to production
- Check back-of-envelope capacity numbers in a system design document
- Verify quorum settings and tail-latency targets for a replicated service
- Prepare for system design interviews with calculated trade-offs

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http arch-guard-mc https://arch-guard-mcp.yashwant938.workers.dev/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://arch-guard-mcp.yashwant938.workers.dev/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "arch-guard-mc": {
      "url": "https://arch-guard-mcp.yashwant938.workers.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "arch-guard-mc": {
      "type": "http",
      "url": "https://arch-guard-mcp.yashwant938.workers.dev/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "arch-guard-mc": {
      "serverUrl": "https://arch-guard-mcp.yashwant938.workers.dev/mcp"
    }
  }
}
```

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://arch-guard-mcp.yashwant938.workers.dev/mcp
```

Enter a Name (for example "ArchGuard MCP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "arch-guard-mc": {
      "type": "http",
      "url": "https://arch-guard-mcp.yashwant938.workers.dev/mcp"
    }
  }
}
```

## Tools

- `audit_code_snippet`: Audit source files for circular dependencies (Tarjan SCC), coupling metrics (Ca/Ce/I), and 12 production reliability/security/SOLID anti-patterns (N+1 loops, missing HTTP timeouts, unbounded caches, check-then-act races, missing idempotency keys, SQL/command injection). Returns health score + Mermaid graph.
- `check_migration_safety`: Audit PostgreSQL/MySQL/SQLite DDL migrations for production table locks and rolling-deploy breaks, generating a 3-phase Expand-Contract plan.
- `estimate_system_capacity`: Compute exact distributed systems capacity math: avg/peak QPS, storage, bandwidth Gbps, Redis RAM, shard count & bottleneck, Little's Law concurrency. Supports Big Tech presets or custom inputs.
- `simulate_quorum_and_tail_latency`: Verify Dynamo quorum (W+R>N), Raft fault tolerance, and Jeff Dean fanout tail-latency amplification (1-(1-p)^K) with hedged RPC comparison.
- `simulate_consistent_hashing`: Run deterministic FNV-1a+fmix32 consistent hashing ring simulation measuring load skew & scale-out key remapping % vs modulo hashing.
- `recommend_architecture`: Generate a Staff-level distributed system architecture blueprint from workload traits (consistency, R/W ratio, contention, real-time need, latency SLO).

## FAQ

### Does the remote server require authentication?

The README describes the hosted Streamable HTTP endpoint as zero auth.

### Can ArchGuard MCP scan files on my machine?

Local repository scanning is provided by the stdio variant. The remote endpoint audits source files passed to it over HTTP.

### Which databases does the migration checker support?

PostgreSQL, MySQL and SQLite DDL migrations.

### Is ArchGuard MCP free?

Yes. ArchGuard MCP is open source, so you can use and self-host it for free.

### How do I add ArchGuard MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http arch-guard-mc https://arch-guard-mcp.yashwant938.workers.dev/mcp

### What are the best alternatives to ArchGuard MCP?

The closest alternatives to ArchGuard MCP are Guard, Agent Guardian — MCP Contract Auditor, MCP Archimedes, Repo Test Architect and Audit Gap Auditor.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 22 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Guard](https://ai-powered.com/mcp/guard): Guard is an open-source MCP server for developer tools.
- [Agent Guardian — MCP Contract Auditor](https://ai-powered.com/mcp/agent-guardian-mcp-contract-auditor): Agent Guardian — MCP Contract Auditor is an MCP server for legal and government.
- [MCP Archimedes](https://ai-powered.com/mcp/mcp-archimedes): MCP Archimedes is an open-source MCP server for security.
- [Repo Test Architect](https://ai-powered.com/mcp/repo-test-architect): Repo Test Architect is an open-source MCP server for developer tools.
- [Audit Gap Auditor](https://ai-powered.com/mcp/audit-gap-auditor): Audit Gap Auditor is an MCP server for security.
- [Arbor](https://ai-powered.com/mcp/arbor): Arbor is an open-source MCP server for developer tools.
- [Archiet Xray](https://ai-powered.com/mcp/archiet-xray): Archiet Xray is an open-source MCP server for developer tools.
- [Ai Architect MCP Spec](https://ai-powered.com/mcp/ai-architect-mcp-spec): Ai Architect MCP Spec is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/archguard-mcp
