Animated icons with Muse Code
Add the server
Section titled “Add the server”muse mcp add magic-glyphs --user -- npx -y magic-glyphs-mcpmuse mcp listmuse mcp list should show magic-glyphs with enabled=true. Start a new Muse Code session to load the tools. You need Node.js on your computer for npx. Use --project instead of --user to keep it to one project.
The command writes this to ~/.config/muse/settings.json, if you prefer to edit the file yourself (keep schema_version; Muse Code will not start without it):
{ "schema_version": 1, "mcpServers": { "magic-glyphs": { "type": "stdio", "command": "npx", "args": ["-y", "magic-glyphs-mcp"] } }}Prefer nothing to install? Use the hosted server, which has the 8 read-only tools:
muse mcp add magic-glyphs --user --url https://magicglyphs.com/mcpIt needs no sign-in, so skip the muse mcp login step Muse Code suggests.
Muse Code runs MCP tools outside its sandbox, like every MCP client does with local servers. The Magic Glyphs server only reads your files when you point it at one, and writes only where a tool says it will (add_icons, make_icon, and migrate_icons with write: true).
The prompt
Section titled “The prompt”Paste this into Muse Code from your project folder:
Use Magic Glyphs to animate the icons in this project. Read https://magicglyphs.com/llms.txt first. 1. Find every static icon: inline SVGs, icon fonts, and imports from icon packages such as lucide, heroicons or react-icons. 2. For each one, pick the closest Magic Glyphs icon. Use the magic-glyphs MCP tools if you have them, or run: npx magic-glyphs search <words> 3. Add the icons you picked with: npx magic-glyphs add <names> --format react --out <icons folder> 4. Swap them in. Keep each icon's size and colour. 5. Add `sound` to icons inside buttons people click. For icons that react to an action (like, add to cart, send), set trigger="none" and call play() when it happens. 6. Add one sound toggle so visitors can mute every icon. 7. List any icon you could not match.
More things to ask
Section titled “More things to ask”“Switch this project from Lucide to Magic Glyphs”, “Add an icon and a sound to every button on this page”, or “Animate our logo: the outer star bounces and the inner star spins” (needs a licence). See more things to ask.