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

Animated icons with Cursor

Animate every icon with Cursor · 0:28

Create .cursor/mcp.json in your project (or ~/.cursor/mcp.json for every project):

{
"mcpServers": {
"magic-glyphs": {
"command": "npx",
"args": ["-y", "magic-glyphs-mcp"]
}
}
}

Open Cursor’s MCP settings to check that magic-glyphs is on and shows its tools. Prefer nothing to install? Use the hosted server instead:

{
"mcpServers": {
"magic-glyphs": { "url": "https://magicglyphs.com/mcp" }
}
}

The agent command in your terminal reads the same mcp.json files. Check it with:

Terminal window
agent mcp list
agent mcp list-tools magic-glyphs

magic-glyphs: ready and 13 tools means it works.

npx downloads the server the first time, so it needs to reach the npm registry. Behind a company proxy, Cursor may not pass your proxy settings to the server. Either add them to the server’s settings:

"magic-glyphs": { "command": "npx", "args": ["-y", "magic-glyphs-mcp"], "env": { "HTTPS_PROXY": "http://your-proxy:8080" } }

or install it once with npm install -g magic-glyphs-mcp and use "command": "magic-glyphs-mcp" with no args.

Open the agent, then paste:

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.

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