A Model Context Protocol (MCP) server for React Icons integration. This server enables AI coding tools like Cursor, Windsurf, Cline, and other AI-powered coding assistants to access and understand the React Icons library.
React Icons is a popular library that includes icons from multiple icon sets like Font Awesome, Material Design, Bootstrap, and many more. It allows easy integration of icons into React applications using ES6 imports.
The Model Context Protocol is a standard for AI tools to request specific context from sources outside their main training data. This MCP server allows AI coding assistants to access information about React Icons to provide better coding assistance.
npm install -g react-icons-mcp
# or
npx react-icons-mcp
To use this MCP server with your AI coding tools, you'll need to add it to your tool's MCP configuration. Here are examples for popular AI coding assistants:
{
"mcpServers": {
"React Icons MCP": {
"command": "npx",
"args": ["-y", "react-icons-mcp", "--stdio"]
}
}
}
{
"mcpServers": {
"React Icons MCP": {
"command": "cmd",
"args": ["/c", "npx", "-y", "react-icons-mcp", "--stdio"]
}
}
}
You can also run the server directly:
# Run in HTTP mode (default port 3334)
npx react-icons-mcp
# Run in stdio mode for direct integration with AI tools
npx react-icons-mcp --stdio
# Run on a custom port
npx react-icons-mcp --port 3456
This MCP server exposes the following tools to AI coding assistants:
Here's how an AI tool might use this MCP server to help a developer:
search_icons
with query "user"import { FaUser } from 'react-icons/fa';
function UserProfile() {
return (
<div>
<FaUser size={24} />
<span>User Profile</span>
</div>
);
}
# Clone the repository
git clone https://github.com/yourusername/react-icons-mcp.git
cd react-icons-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode with hot reloading
npm run dev
MIT
{
"mcpServers": {
"React Icons MCP": {
"env": {},
"args": [
"-y",
"react-icons-mcp",
"--stdio"
],
"command": "npx"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.