Animated icons with Cursor
Add the server
Section titled “Add the server”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" } }}Cursor CLI
Section titled “Cursor CLI”The agent command in your terminal reads the same mcp.json files. Check it with:
agent mcp listagent mcp list-tools magic-glyphsmagic-glyphs: ready and 13 tools means it works.
If it says “Connection failed”
Section titled “If it says “Connection failed””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.
The prompt
Section titled “The prompt”Open the agent, then paste:
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” (local server and a licence). See more things to ask.