Skip to content
Founders offer: 80% off every plan with code FOUNDERS80% off with FOUNDERSGet Magic Glyphs

Animated icons with ChatGPT and Codex

Animate every icon with ChatGPT and Codex · 0:28

Codex (CLI, IDE extension, ChatGPT desktop)

Section titled “Codex (CLI, IDE extension, ChatGPT desktop)”

Codex runs on your computer and can edit your project, so it can do the whole icon swap. Add the Magic Glyphs MCP server once:

Terminal window
codex mcp add magic-glyphs -- npx -y magic-glyphs-mcp

That writes the server to ~/.codex/config.toml, which the Codex CLI, the IDE extension and the ChatGPT desktop app all read. You can also add it by hand:

[mcp_servers.magic-glyphs]
command = "npx"
args = ["-y", "magic-glyphs-mcp"]

Check it with codex mcp list, then open Codex in your project and paste the prompt below.

ChatGPT on the web connects to remote MCP servers by URL. On a plan that allows custom apps (connectors), open Settings → Apps, create an app, and use:

https://magicglyphs.com/mcp

No sign-in is needed. ChatGPT can then search every icon and give you ready-to-paste code. It cannot edit files on your computer, so paste its code yourself, or use Codex for the full swap.

Prompt
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.

Change react to vue or html to match your project.

“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” (local server and a licence). See more things to ask.