Not just boxes.
ArchLex understands cloud resources, boundaries, and typed relationships, not just shapes.
Open source · Claude, Cursor, Codex
Ask your agent to diagram AWS, Cloudflare, GCP, or Kubernetes. ArchLex validates the architecture and renders official-icon SVG you can read, diff, and share.
1direction LR
2provider aws
3validation normal
4
5account enterprise-cloud {
6 region us-east-1 {
7 dns: route53["Route 53"]
8 cdn: cloudfront["CloudFront"]
9 events: eventbridge["EventBridge"]
10
11 dns -[routes]-> cdn
12
13 vpc production-vpc {
14 subnet public-tier {
15 gateway: api-gateway["API Gateway"]
16 ingress: alb["Load Balancer"]
17 }
18
19 subnet application-tier {
20 api_service: ecs["API Cluster"]
21 worker: lambda["Event Worker"]
22 }
23
24 subnet data-tier {
25 cache: elasticache["Redis Cache"]
26 database: aurora["Aurora PostgreSQL"]
27 lake: s3["Data Lake"]
28 }
29 }
30
31 cdn -[routes]-> gateway -[invokes]-> api_service
32 cdn -[routes]-> ingress -[routes]-> api_service
33
34 api_service -[caches]-> cache
35 api_service -[writes]-> database
36 api_service -[publishes]-> events
37
38 events -[triggers]-> worker
39 worker -[streams]-> lake
40 }
41}ArchLex understands cloud resources, boundaries, and typed relationships, not just shapes.
Concise text source stays clear in diffs. Deterministic, accessible SVG keeps rendered reviews consistent.
provider aws
api: api-gateway
worker: lambda
data: dynamodb
api -[invokes]-> worker
worker -[writes]-> dataGive Claude, Cursor, and other agents cloud architecture expertise. The ArchLex MCP server validates diagrams against AWS, Cloudflare, GCP, and Kubernetes rules with zero hallucinated resource names or invalid relationships.
Connect in seconds
Register ArchLex as a remote HTTP server.
claude mcp add --transport http archlex https://mcp.archlex.dev/mcpAdd this server to .cursor/mcp.json.
{
"mcpServers": {
"archlex": {
"url": "https://mcp.archlex.dev/mcp"
}
}
}Add ArchLex to the shared Codex MCP configuration.
codex mcp add archlex --url https://mcp.archlex.dev/mcpAdd this server to .vscode/mcp.json.
{
"servers": {
"archlex": {
"type": "http",
"url": "https://mcp.archlex.dev/mcp"
}
}
}Use this URL in any client that supports remote Streamable HTTP.
https://mcp.archlex.dev/mcpOr let your agent set it up for you.
Set up the ArchLex MCP server for this project using the official remote Streamable HTTP endpoint at https://mcp.archlex.dev/mcp. Verify the connection, list the available ArchLex tools, and tell me when it is ready. Do not change unrelated MCP servers.Then ask:
Design a resilient AWS event ingestion system, validate it, and open the result in ArchLex Playground.Equip Claude Code, Cursor, Codex, and any AI coding assistant supporting the open SKILLS.md standard with deep cloud architecture diagramming and semantic validation.
npx skills add baires/archlexStep-by-step workflow for render_diagram, validate_diagram, and catalog lookups directly within your coding agent session.
Complete syntax rules, relationship kinds, containment scopes (accounts, regions, VPCs, subnets, and Cloudflare root/account placement), and diagnostic resolution.
Production-ready AWS, Cloudflare, GCP, and Kubernetes templates that any AI agent can immediately adapt, validate, and extend.
Lightweight, modular packages for browser and Node.js. Zero native binary dependencies.
npm install @archlex/core @archlex/aws @archlex/cloudflare @archlex/gcp @archlex/k8simport { render } from "@archlex/core";
import { awsProvider } from "@archlex/aws";
const result = await render(source, {
providers: [awsProvider],
validation: "normal",
});
document.querySelector("#diagram").innerHTML = result.svg;Open source · MIT licensed · No account required