Skip to content
MCP server

grafta

Read, edit and generate code from Figma files on disk, with no account or API key

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, macOS, Windows
Runs
Locally
Version
0.5.0
Listing updated
3 days ago

About grafta

grafta is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.

Instead of calling Figma's API, grafta works on a local copy of a file saved through File, Save local copy. It understands .fig (Design), .deck (Slides), .jam (FigJam) and .site (Sites) files and reads layers, variables and a rendered picture of the design.

Changes never overwrite the original: save_as refuses an existing path, except the empty file new_file just made, then it reads back what it wrote and refuses edits Figma would have to repair. Opening the result in Figma remains the final check, so keep your original. A grafta tool command also runs tools from a terminal, and grafta tool --batch chains calls on one file.

It makes no network calls of its own, though what your model reads goes wherever your MCP client sends the conversation. Known gaps include auto-layout grids, component slots, boolean operations and prototyping.

Install

Run in a terminal

claude mcp add grafta -- npx -y grafta

Add to claude_desktop_config.json

{
  "mcpServers": {
    "grafta": {
      "command": "npx",
      "args": [
        "-y",
        "grafta"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "grafta": {
      "command": "npx",
      "args": [
        "-y",
        "grafta"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "grafta": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "grafta"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "grafta": {
      "command": "npx",
      "args": [
        "-y",
        "grafta"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "grafta": {
      "command": "npx",
      "args": [
        "-y",
        "grafta"
      ]
    }
  }
}

What it does

Local file access
Works on saved .fig, .deck, .jam and .site files.
Non-destructive saves
Edits go to a new file, never over yours.
Layers and variables
Reads structure and design variables, plus an image.
Design to code
Generate code in whichever language you use.
Terminal mode
Call tools directly or batch them without a model.

Good for

  • Ask what is inside a Figma file without opening Figma
  • Change text or styles and save a copy
  • Turn a design into front-end code
  • Script repeated edits across a file in CI

Pricing

Open source

Free; server and file parser MIT licensed

Prices change. Check n0ss4.github.io before you buy.

grafta FAQ

Do I need a Figma account or API key?

No; you only need Figma to save a local copy and open the result.

Does my file leave my machine?

grafta makes no network call, but what the model reads travels with your client's conversation.

Can it break my file?

It writes a new file, refuses writes it knows are invalid and tells you to keep the original.

Is grafta free?

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

How do I add grafta to Claude Code?

Run this command in your terminal: claude mcp add grafta -- npx -y grafta

What are the best alternatives to grafta?

The closest alternatives to grafta are REA, HyperFrames by HeyGen, Codebase Memory, GitHub and Serena MCP: the IDE for your agent.

Alternatives to grafta

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Hosted MCP connector for creating and rendering videos from HTML through AI chat

    • Remote
    • Freemium
    • 85.3K GitHub stars
    • Design and media
  3. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  4. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  5. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  6. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory