draft1 for AI agents

draft1 is agent-ready. An agent can create an account key, generate a diagram, read it back, and iterate on it, without a human touching the dashboard.

Everything an agent needs

OpenAPI 3.1 spechttps://www.draft1.ai/openapi.json
Site summary for LLMshttps://www.draft1.ai/llms.txt
MCP serverabdelhadi-azouni/draft1-mcp
GitHub Actionabdelhadi-azouni/draft1-diagram-action
Full API referencedraft1.ai/docs

Claude Code, Claude Desktop

claude mcp add draft1 --env DRAFT1_API_KEY=YOUR_KEY \
  -- npx -y github:abdelhadi-azouni/draft1-mcp

Cursor, Windsurf, Codex, any MCP client

Add to the client's MCP config:

{
  "mcpServers": {
    "draft1": {
      "command": "npx",
      "args": ["-y", "github:abdelhadi-azouni/draft1-mcp"],
      "env": { "DRAFT1_API_KEY": "YOUR_KEY" }
    }
  }
}

Two tools are exposed: generate_diagram and edit_diagram.

CI: diagram your infra on every push

- uses: abdelhadi-azouni/draft1-diagram-action@v1
  with:
    api-key: ${{ secrets.DRAFT1_API_KEY }}
    source: infra/main.tf

Direct HTTP, no SDK needed

POST https://api.app.draft1.ai/api/v1/diagrams
X-API-Key: YOUR_KEY
{"prompt": "describe any system, or paste Terraform / docker-compose / SQL"}

Designed so an agent does not get stuck

Free to try

Accounts get 3 free diagrams, no card. Unlimited is $29/month, and there is a one-time $9 pack of 10 if a subscription is overkill. Create a key.