Configure the MCP Server for AI Agents
mainThe Model Context Protocol (MCP) server allows AI coding agents to use icon tools. You can configure it interactively using the setup command, which supports Cursor, Claude Code, OpenCode, Windsurf, VS Code (Copilot), and Google Antigravity.
npx better-icons setupManual Configuration
If you prefer manual setup, add the following configuration to your agent's settings file:
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"better-icons": {
"command": "npx",
"args": ["-y", "better-icons"]
}
}
}Claude Code (CLI)
Add to ~/.claude/settings.json:
{
"mcpServers": {
"better-icons": {
"command": "npx",
"args": ["-y", "better-icons"]
}
}
}Google Antigravity
Add to ~/.gemini/antigravity/mcp_config.json:
{
"mcpServers": {
"better-icons": {
"command": "npx",
"args": ["-y", "better-icons"]
}
}
}npx better-icons setup