scratch-mcp
Allows reading, editing, and saving Scratch .sb3 project files programmatically, with tools for modifying sprites, scripts, costumes, sounds, and other project assets.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@scratch-mcpAdd a cat sprite that says 'Hello' when clicked"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
scratch4js
A pnpm monorepo of small, focused JavaScript packages for working with Scratch
and TurboWarp ā edit .sb3 projects programmatically, talk to the Scratch
website, drive it all from an AI agent, and build & bundle TurboWarp extensions.
š Documentation: https://playforge-coding.github.io/scratch4js/
Packages
Path | Package | What it is |
| The core library: read/edit | |
| A class-based wrapper for the Scratch website API: read public data, and log in to download/edit/publish | |
| An MCP server exposing the library's editing surface as tools, plus a TurboWarp live-reload bridge. | |
| webpack/Rspack plugin that bundles a multi-file TurboWarp extension into one IIFE-wrapped file. | |
| Rollup/Rolldown/Vite plugin that bundles a multi-file TurboWarp extension into one IIFE-wrapped file. | |
| Scaffolder ( | |
| Reusable React building blocks for in-browser IDEs: split-pane layout, Monaco, an xterm/WebContainer terminal, file tree. | |
| In-browser IDE (built on | |
| TurboWarp Desktop userscript (ES modules ā one IIFE): scratch-mcp live-reload + real-time collaboration over a WebSocket relay. |
Related MCP server: rbxsync-mcp
How they fit together
AI agent / MCP client
ā (MCP tools over stdio)
ā¼
āāāāāāāāāāāāāāāā edits in memory āāāāāāāāāāāāāā
ā scratch-mcp ā āāāāāāāāāāāāāāāāāāāŗ ā scratch4js ā
āāāāāāāā¬āāāāāāāā save ā .sb3 file āāāāāāāāāāāāāā
ā WebSocket bridge (localhost:9060)
ā¼ "loadSB3" ā fetch /get.sb3
TurboWarp Desktop + userscript āāāŗ live previewAn agent edits a project through scratch-mcp; on save the server writes the
.sb3 and signals the userscript, which reloads it into TurboWarp Desktop
instantly.
Getting started
pnpm install
pnpm build # build every package (-r build)
pnpm lint
pnpm fmt # prettier --write .Then:
Install the userscript into TurboWarp Desktop (
pnpm --filter userscript deploy; per-OS paths in its README).Run the MCP server and point your MCP client at it.
Open
.sb3files, edit, andsave_projectto see changes live.
Workspace layout
.
āāā packages/
ā āāā scratch4js/ # the core library (+ examples + example.sb3)
ā āāā s-api4js/ # Scratch website API wrapper
ā āāā scratch-mcp/ # the MCP server + live-reload bridge
ā āāā tw-plugin-webpack/ # webpack/Rspack extension bundler plugin
ā āāā tw-plugin-rollup/ # Rollup/Rolldown/Vite extension bundler plugin
ā āāā create-tw-extension/ # extension scaffolder CLI
ā āāā web-editor/ # in-browser IDE building blocks
ā āāā tw-extension-maker/ # in-browser extension IDE
ā āāā userscript/ # TurboWarp Desktop userscript: live-reload + collaboration
āāā docs/ # Rspress documentation site
āāā pnpm-workspace.yaml
āāā package.json # workspace root (build/lint/fmt delegate to -r)This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceEnables AI assistants to edit, run, inspect, and fix Godot 4 projects through an MCP server with dynamic tool groups and setup-gated capabilities.Last updated128236MIT

rbxsync-mcpofficial
Flicense-qualityBmaintenanceEnables AI agents to extract, sync, test, and debug Roblox games bidirectionally between Studio and filesystem via MCP.Last updated30- Alicense-qualityDmaintenanceUnified MCP server for Construct 3 providing offline documentation, project read/write, analysis, and scripting support. Enables AI-driven game development and project management through natural language.Last updatedMIT
- Alicense-qualityCmaintenanceEnables AI agents to create, compile, and run Scratch projects by editing plain text and using a live editor loop.Last updated44Mozilla Public 2.0
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Connect AI agents to Flato's editable canvas runtime through a hosted MCP server.
An MCP server that gives your AI access to the source code and docs of all public github repos
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/playforge-coding/scratch4js'
If you have feedback or need assistance with the MCP directory API, please join our Discord server