MCP server · open source

Ask your AI assistant for a sprite and watch it paint, pixel by pixel, in LibreSprite. Layers, frames, palettes and exports, all from one chat.

↑ drawn by the MCP itself

How it feels

Type a wish. Get a sprite.

Your assistant turns plain words into drawing calls: canvas, pixels, frames, export. You keep a real .aseprite file you can open and tweak in LibreSprite.

chat with your assistant
You

▌

    Features

    A tiny art studio for your AI

    Everything an assistant needs to make game-ready pixel art.

    Draw with words

    Pixel rows, lines, ellipses, polygons, fills, outlines and hue-shifted colour ramps. Describe it, the assistant places every pixel.

    Live or offline

    Watch every stroke land in LibreSprite, or draw offline into .ase files. A browser preview follows along either way.

    Layers & frames

    Named layers, copied frames, per-frame timing and a 50-step undo for real animations.

    Export anything

    PNG, animated GIF and sprite sheets, scaled up with crisp nearest-neighbour pixels.

    Install

    Up and painting in 5 minutes

    One command sets everything up. Or let your AI assistant do it for you.

    Easiest: let your AI install it

    Paste this into Claude Code, Cursor, Codex or any assistant that can run commands. It follows AI_INSTALL.md: checks Node.js, runs setup, and tells you what to restart.

    prompt
    Install LibreSprite MCP for me by following
    https://raw.githubusercontent.com/Steper158X/libresprite_mcp/main/AI_INSTALL.md

    Or do it yourself

    1. 1

      Install Node.js

      Get Node.js 22.18 or newer from nodejs.org, then check it:

      terminal
      node --version
    2. 2

      Install LibreSprite (optional)

      Grab LibreSprite 1.3 from libresprite.github.io. Only needed to watch the AI draw live; without it, everything still works offline and saves .ase, .png and .gif files.

    3. 3

      Run setup

      One command, nothing to clone or build. It installs the bridge script into LibreSprite, keeps a copy of the server in ~/.libresprite-mcp/app/, and registers it with Claude Code, Claude Desktop and Cursor if they're installed.

      terminal
      npx -y libresprite-mcp@latest setup

      No npm registry? The same works straight from GitHub:

      terminal
      npx -y github:Steper158X/libresprite_mcp setup

      To update, run the same command again.

    4. 4

      Restart

      Restart your AI app so it loads the server, then close and reopen LibreSprite once. From then on the bridge starts with LibreSprite by itself.

    5. 5

      Start drawing

      Ask in chat, for example:

      prompt
      Create a 32x32 canvas and draw a smiling orange cat. Put the background, body and face on separate layers.

      Follow along in LibreSprite, or in the browser preview at 127.0.0.1:7787. A good first call is get_status.

    Stuck? Quick fixes

    • Tools don't show up → restart your AI app after running setup.
    • get_status says offline while LibreSprite is open → restart LibreSprite, or run Scripts → libresprite-mcp-bridge.
    • Port 7787 is already in use → another app is running the server. Close it, or set LIBRESPRITE_MCP_PORT.
    • Bridge token rejected → run setup again and restart LibreSprite.
    • Ctrl+Z in LibreSprite doesn't undo the AI's drawing → ask it to use the undo tool (50 steps).