{"id":50305698,"url":"https://github.com/thebabush/blendersql","last_synced_at":"2026-05-28T16:01:40.860Z","repository":{"id":357235600,"uuid":"1236013742","full_name":"thebabush/blendersql","owner":"thebabush","description":"AI + SQL for Blender","archived":false,"fork":false,"pushed_at":"2026-05-11T22:50:54.000Z","size":3154,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-12T00:24:29.505Z","etag":null,"topics":["agentic","ai-agents","blender","blender-addon","bpy","claude-code","grease-pencil","mcp","sql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thebabush.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-11T21:45:33.000Z","updated_at":"2026-05-11T22:50:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thebabush/blendersql","commit_stats":null,"previous_names":["thebabush/blendersql"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thebabush/blendersql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebabush%2Fblendersql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebabush%2Fblendersql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebabush%2Fblendersql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebabush%2Fblendersql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thebabush","download_url":"https://codeload.github.com/thebabush/blendersql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebabush%2Fblendersql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33615490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agentic","ai-agents","blender","blender-addon","bpy","claude-code","grease-pencil","mcp","sql"],"created_at":"2026-05-28T16:01:39.746Z","updated_at":"2026-05-28T16:01:40.849Z","avatar_url":"https://github.com/thebabush.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlenderSQL\n\n**Let an AI assistant see and edit what's in your Blender file.**\n\n\u003c!-- TODO: 20-30s screen capture here — e.g. \"recolor the hat\" / \"find the heaviest meshes\" / \"clean up the file\". A demo gif is the whole pitch for this page. --\u003e\n\nBlenderSQL is a Blender add-on that lets an AI coding assistant — Claude, Copilot, Codex, whatever you use — read and change your `.blend` while Blender is open: objects, grease pencil, materials, animation, the sequencer, all of it. You describe what you want in plain language; the assistant works out the rest. Every change it makes is an ordinary Blender undo step, so nothing's scary — Ctrl+Z still works.\n\n(Under the hood it talks to a live view of your file in SQL. You never have to write any.)\n\n\u003e **Blender 5.1.** BlenderSQL tracks Blender 5.1's data model (layered Actions, Grease Pencil v3, the renamed sequencer types). Other versions aren't supported yet.\n\n## What you can do with it\n\nOnce it's connected, you just ask. A sampler:\n\n**Understand a file**\n- \"What's in this scene? Is anything broken or orphaned?\"\n- \"Why is this file so heavy — which meshes have the most geometry?\"\n- \"Find every object whose constraint points at something that doesn't exist anymore.\"\n\n**Edit it**\n- \"The character in the bucket hat — recolor the hat to red.\"\n- \"Rename the objects that still have default `.001` / `.002` names to something sensible.\"\n- \"Key the camera's location on frame 1 and frame 48.\"\n\n**Tidy it up**\n- \"Purge all the orphaned data.\"\n- \"Reorganize my collections — group cameras, characters, and props per scene.\"\n- \"Remove the material slots nothing actually uses.\"\n\nIt can also **render a single object on its own** so the assistant can literally look at what it's working on — useful when datablock names don't tell you much.\n\n## Why it's nice\n\n- **Use whatever assistant you already have.** It isn't tied to one vendor or app.\n- **It reads *and* writes.** Most \"let the AI see your scene\" tools only look; this one edits too.\n- **Everything is undoable.** A prompt went sideways? Ctrl+Z, like any other Blender action.\n- **Nothing to sync or re-export.** It works on the file you have open, live — change something in Blender and the assistant sees it immediately, and vice versa.\n- **Barely any setup.** Install the add-on, install the skills plugin, done. No server to configure.\n\n## What about Blender's MCP?\n\nBlender has its own MCP add-on now (in Blender Labs), and it's good — I've used it, it works well. This isn't an either/or; run both if you want.\n\nBlenderSQL is a different bet. Instead of a fixed set of tools the assistant calls one at a time, it gets a query language over Blender's whole data model. A `.blend` is, under the hood, a pile of linked tables — datablocks, material slots, grease-pencil layers/frames/strokes, action channels, keyframes — so a database-shaped view fits it naturally:\n\n- **One question instead of ten round-trips.** \"Which materials aren't used by anything?\", \"the heaviest meshes that also have a Subdivision modifier\", \"every object whose constraint points at something that's gone\" — each is a single query, not a loop of tool calls.\n- **No ceiling.** When a query isn't the right shape, the assistant runs Python (`bpy`) directly through the same interface — so anything an MCP can do, it can do here too.\n- **Nothing is hidden.** The assistant can ask what tables and columns exist and go from there — it isn't boxed in by whatever tools someone chose to expose.\n- **Looking and editing work the same way**, and every edit is a normal Blender undo step.\n\nMy experience is that SQL is a surprisingly good model for an AI agent to work in.\n\n## Getting started\n\n### 1. Install the add-on\n\nGrab the zip for your OS from the [latest release](https://github.com/thebabush/blendersql/releases/latest), then in Blender:\n\n**Edit → Preferences → Get Extensions → Install from Disk…**, pick the zip, and tick **BlenderSQL** in the list.\n\nIt starts its local server automatically — you don't have to do anything else. (You can toggle that, or stop/start the server, in the add-on's preferences. Requires Blender 5.1.)\n\n### 2. Install the skills into your coding assistant\n\nFor Claude Code:\n\n```\n/install-plugin https://github.com/thebabush/blendersql-skills\n```\n\n(For Codex, point it at the `Skills/` folder of that repo.) This teaches the assistant the `/blendersql:*` commands — one per area: `connect`, `scene`, `grease_pencil`, `mesh`, `materials`, `animation`, `modifiers`, `vse`, `assets`, `analysis`, `python`, `functions`.\n\n### 3. Connect and go\n\nWith Blender open, in your assistant:\n\n```\n/blendersql:connect Connect to the Blender I have open and tell me what's in this file.\n```\n\nFrom there, just talk to it — see [What you can do with it](#what-you-can-do-with-it).\n\nPrefer to keep Blender headless? The assistant can also launch Blender in the background for you and work on a `.blend` without ever opening the UI — just ask. (That path uses the `blendersql` command-line tool; see [DEVELOPMENT.md](DEVELOPMENT.md#the-cli).)\n\n## Connect via MCP\n\nIf your assistant supports the Model Context Protocol over HTTP, point it at the add-on's built-in `/mcp` endpoint — no separate process, no stdio bridge:\n\n```json\n{ \"mcpServers\": { \"blendersql\": { \"type\": \"http\", \"url\": \"http://127.0.0.1:8174/mcp\" } } }\n```\n\n(Drop this into `.mcp.json` for Claude Code, or the equivalent for your client.) Six tools are exposed:\n\n- `query` — run a read-only SQL statement (SELECT/WITH/PRAGMA/EXPLAIN).\n- `execute` — run any SQL, including writes and side-effecting functions.\n- `list_tables` / `describe_table` — discover the vtables and their columns.\n- `list_functions` / `describe_function` — discover the SQL scalar functions.\n\nThe `/blendersql:*` skills already use this path; you only need the snippet above if you're wiring a non-Claude client.\n\n## Under the hood\n\nBlenderSQL exposes Blender's data as ~78 live SQL tables plus a set of editing functions, served over a small localhost HTTP endpoint, with a Python escape hatch for anything that isn't a query. If you want the technical picture — architecture, the full table and function reference, the HTTP API, the command-line tool, building from source, contributing — see **[DEVELOPMENT.md](DEVELOPMENT.md)**.\n\n## Disclosure\n\nThis is mostly vibecoded, it's young, and I mostly use it for my own Grease Pencil / 2D animation. Every edit is a normal Blender undo step, so it's not reckless — but it hasn't been stress-tested by lots of people on lots of files. So: poke at it, use it on copies and side projects, hit `save` before turning an agent loose. Don't point it at the production files at Pixar. (Yet.)\n\n## Credits\n\nHeavy inspiration from [**idasql**](https://github.com/allthingsida/idasql) by [Elias Bachaalany (@0xeb)](https://github.com/0xeb) — the project that pioneered exposing a host application's internal data model as live SQL virtual tables so any agent can query and edit it. I'm a heavy idasql user myself and consider it a game-changer for reverse engineering — if that's your space, go look. BlenderSQL applies the same idea to Blender, independently implemented in Python on [apsw](https://rogerbinns.github.io/apsw/). Big thanks to Elias.\n\n## License\n\n[Mozilla Public License 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebabush%2Fblendersql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthebabush%2Fblendersql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebabush%2Fblendersql/lists"}