Scratch MCP server for social interaction and project coding

Scratch MCP server for social interaction and project coding

scratchattach-mcp•byuukelele-scratch

An MCP server that connects agents to Scratch, enabling social actions on the site and building, decompiling and publishing Scratch projects.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Manages Scratch account sessions, including connecting, listing, switching and forgetting stored sessions.
  • •Reads Scratch user and project information, searches projects and checks inbox activity.
  • •Supports comments, follows, project likes and favourites, and adding projects to studios.
  • •Creates, downloads, builds and publishes Scratch projects built with goboscript.

BEST FOR

  • •Agents that need to interact with Scratch social features such as comments, follows and likes.
  • •Agents that want to create or edit Scratch projects by working in goboscript source.
  • •Workflows that need to build an `.sb3` and upload it to Scratch with assets and a thumbnail.

ABOUT SCRATCHATTACH-MCP

Scratch MCP server for social interaction and project coding is cataloged as an MCP server attributed to uukelele-scratch. An MCP server that connects agents to Scratch, enabling social actions on the site and building, decompiling and publishing Scratch projects. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Scratch MCP server for social interaction and project coding are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Do the social tools require the goboscript toolchain?

No. The project building toolchain is optional, and the social tools work without it.

Can I download an unshared Scratch project?

Yes. Downloading by id fetches through your session, so unshared projects work.

Is decompiling an exact copy of the original project?

No. Decompiling is a semantic repair rather than a byte-perfect copy, and changes are reported.

Upstream README

View this exact version on GitHub

README.md · c2d1f4f269b4 · Fetched 2026-11-13 10:37:41 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

scratchattach-mcp

An MCP server that allows any agent to connect to Scratch.

The agent can access the Scratch platform to interact with site features (e.g. social features), or code Scratch projects live.


Contents


Install

$ gh repo clone uukelele/scratch-mcp
$ cd scratch-mcp
$ uv sync

If you want your agent to be able to code projects, you will need the goboscript toolchain, in Rust. Usually you can simply get the agent to read the instructions (exposed via MCP) and install it for you; but if you wish to do it manually:

$ rustup toolchain install nightly
$ cargo +nightly install --git https://github.com/aspizu/goboscript    # compiler
$ cargo install --git https://github.com/aspizu/sb2gs sb2gs-cli        # decompiler

These are optional, social_ tools work without the project building toolchain. The agent can run project_check_toolchain to see what's missing if it wishes to create any projects.

If the binaries are not on PATH, you can set GOBOSCRIPT_BIN / SB2GS_BIN.

Configuration

{
  "mcpServers": {
    "scratch": {
      "command": "/home/x/scratch-mcp/.venv/bin/python",
      "args": ["-m", "scratch_mcp"],
      "cwd": "/home/x/scratch-mcp",
      "env": { "PYTHONPATH": "/home/x/scratch-mcp" },
      "timeout": 600000 // compiling / decompiling / publishing can take quite some time
    }
  }
}

All configuration data for the MCP itself persist on the filesystem at ~/.local/share/scratch-mcp/sessions.json. You can override this path with SCRATCH_MCP_DATA_DIR or SCRATCH_MCP_SESSION_FILE environment variables. Only the session ID is stored, not the password, which means sessions can expire eventually.


Tools

* marks a required argument.

Sessions

ToolArgumentsDescription
social_connect_sessionpath_to_env, scratch_username, scratch_password, scratch_session_id, browser_name, rememberLog in via a .env file, username + password, a session id, or a browser cookie. Remembered across restarts by default.
social_list_sessions—List held sessions and which is active.
social_set_active_session*usernameChoose which account subsequent tools act as.
social_verify_sessionusernameAsk Scratch whether a stored session is still valid. Restored sessions are rebuilt offline, so a revoked one looks fine until used.
social_forget_session*username, logoutDrop a session from memory and disk; optionally invalidate it on Scratch.

Profile

ToolArgumentsDescription
social_set_bio*textSet "About me". Max 200 characters.
social_set_whatimworkingon*textSet "What I'm working on". Max 255 characters.
social_set_pfp*fileSet the profile picture from a PNG/JPEG/GIF. Max 500×500.

Reading Scratch

ToolArgumentsDescription
social_get_user_info*username, recent_commentsA user's profile, plus whether you follow them and a preview of their newest profile comments.
social_get_project_info*id, recent_commentsA project's metadata, plus whether you have loved or favourited it and a comment preview.
social_search_projectsquery, sort, limit, offset, languageSearch shared projects, or browse the explore feed when no query is given. Sort by trending, popular or recent.
social_check_inboxlimit, offsetActivity messages, Scratch Team alerts and any pending Scratcher invite. Scratch tracks each with its own unread state, so unread_count alone does not mean an empty inbox — see unread_elsewhere.

Comments

All four accept source of project, studio or profile.

ToolArgumentsDescription
social_get_comments*source, *source_id, limit, offset, page, include_repliesPage through top-level comments.
social_get_comment_replies*source, *source_id, *comment_id, limit, offsetReplies to one top-level comment.
social_post_comment*source, *source_id, *content, parent_id, commentee_idPost a comment. Max 500 characters.
social_reply_to_comment*source, *source_id, *parent_id, *content, commentee_idReply to a comment. parent_id must be a top-level comment.

Projects and studios page by limit + offset and fetch replies separately. Profiles page by page (30 per page, offset ignored) and return replies inline for free. Scratch has only one level of nesting: a reply to a reply is stored against the top-level comment.

Social actions

ToolArgumentsDescription
social_follow_user*username, actioncheck (default), follow, unfollow, toggle.
social_like_project*id, actioncheck (default), like, favourite, both, unlike, unfavourite, removeboth. Love and favourite are independent.
social_add_project_to_studio*project_id, *studio_idAdd a project to a studio.
social_become_scratcherconfirmAccept a pending "become a Scratcher" invitation. Reports eligibility only unless confirm is set, because accepting means agreeing to the Community Guidelines and cannot be undone.

Both action tools default to check, so a call without an explicit action cannot change anything by accident.

Project lifecycle

ToolArgumentsDescription
project_new*path, published_project_id, gitScaffold a new goboscript project and make it active.
project_open*path, published_project_idRegister an existing project directory.
project_download*path, project_id, sb3_path, overwrite, verifyDecompile a Scratch project into editable .gs source, by id or from a local .sb3. Verifies it still compiles.
project_list—List known projects.
project_select*pathChoose the active project.
project_infopathSprites, publish target and compatibility.
project_closepathForget a project. Leaves files on disk.

Downloading by id fetches through your session, so unshared projects work.

Project assets

ToolArgumentsDescription
project_list_assets*sprite, pathList a sprite's declared costumes and sounds.
project_add_costume*sprite, file, svg, name, pathAdd a costume from a file or from raw SVG markup.
project_add_sound*sprite, *file, name, pathAdd an MP3 or WAV.
project_remove_asset*sprite, *kind, *name, pathRemove a costume or sound declaration.

Format and size limits are checked before anything is written: Scratch silently refuses to load a project containing an unsupported audio format.

Building and publishing

ToolArgumentsDescription
project_buildpathCompile to .sb3. Raises with the compiler diagnostics on failure.
project_summarypathWhat the build actually produced: per-sprite block and script counts, costumes, sounds, variables, layer order, asset sizes, and warnings for unused or oversized assets and stale builds.
project_save_to_cloudpath, title, visibility, build, thumbnailBuild and upload, including assets and a thumbnail. Creates the project on first save, then reuses its id. visibility is public, private or unchanged.
project_set_thumbnailfile, pathSet a published project's thumbnail. Omit file to use the Stage backdrop. Scratch only generates thumbnails in its editor, so an uploaded project shows a grey placeholder otherwise.

Reference

ToolArgumentsDescription
project_editing_guide—Read before creating or editing a project: Scratch's hard limits and a goboscript primer.
project_goboscript_docs_helppageThe goboscript docs. No argument lists every page; pass a path for raw markdown.
project_check_toolchain—Whether goboscript and sb2gs are installed and runnable.

How a project gets made

These are instructions for agents accessing the MCP.

  1. Start with project_new or project_download to either create a new project, or to download an existing project and decompile it.
  2. Check your toolchain availability with project_check_toolchain and then view the guide with project_editing_guide. You can read the language docs, if you get stuck, with project_goboscript_docs_help.
  3. Edit the .gs files with your file tools (Read/Edit/Write/etc.).
    • project_add_costume / project_add_sound for assets.
    • project_build, fix any diagnostics, repeat.
    • project_summary to confirm the build contains what you intended.
    • project_save_to_cloud.

Notes and gotchas

  • api.scratch.mit.edu caches for roughly 15 seconds, so a read straight after a write can report the old value.
  • Scratch's search is frequently unavailable, answering 429 from its search cluster or 503 from its cache layer. social_search_projects retries and says plainly when the fault is Scratch's.
  • Relative paths in project_* tools resolve inside the project directory, not the server's working directory.
  • Decompiling is a semantic repair, not a byte-perfect copy. Real projects contain things goboscript cannot express — duplicate variable names in one sprite, two custom blocks that map to the same name, blocks referencing deleted assets. These are renamed or dropped, and every change is reported. We try to fix this using our SB3 normalizer, but please note that not everything is perfect.

Tests

$ .venv/bin/python tests/test_offline.py

No network and no credentials, these tests are just offline tests. So they might be "incomplete" as a way but really we just hope for the best ;).

Credits

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Scratch MCP server for social interaction and project coding from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/scratchattach-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools