MCP Server
Access React Suite component information directly in your AI coding assistant.
What is MCP?
The Model Context Protocol (MCP) is an open standard for connecting AI assistants to trusted sources of documentation and code. For React Suite users, this means you get answers that are accurate, up-to-date, and directly reference the official component APIs.
Why use MCP?
AI coding assistants often hallucinate component props, provide outdated examples, or cite non-existent documentation. The React Suite MCP server solves these problems by:
- Providing real, direct access to component props and types
- Using official React Suite component definitions
- Offering accurate TypeScript information for better code completion
- Enabling intelligent component search and discovery
Installation and setup
The sections below detail how to set up the React Suite MCP in popular agentic coding environments.
Windsurf
- Navigate to "Settings" > "Windsurf Settings" > "Cascade"
- Click the "Manage MCPs" button, then click the "View raw config" button
- Add the following to the MCP configuration file:
{
"mcpServers": {
"rsuite": {
"command": "npx",
"args": ["-y", "@rsuite/mcp@latest"]
}
}
}Cursor
- Navigate to "Settings" > "MCP"
- Click "Add new global MCP server"
- Add the following to the MCP configuration file:
{
"mcpServers": {
"rsuite": {
"command": "npx",
"args": ["-y", "@rsuite/mcp@latest"]
}
}
}VS Code
- Create a
.vscode/mcp.jsonfile in your workspace - Add the following to the MCP configuration file:
{
"servers": {
"rsuite": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@rsuite/mcp@latest"]
}
}
}JetBrains IDEs
Open the MCP configuration (Settings -> Tools -> AI Assistant -> Model Context Protocol (MCP)) and add the following:
- Name: React Suite MCP
- Command:
npx - Arguments:
-y @rsuite/mcp@latest
Click OK and Apply.
Zed
You can add the React Suite MCP server to Zed as a custom server:
Search for agent: add context server in the Command Palette and add the following:
{
"rsuite-mcp-server": {
"command": {
"path": "npx",
"args": ["-y", "@rsuite/mcp@latest"]
},
"env": {}
}
}Claude Code
Claude Code is Anthropic's agentic coding tool that runs in your terminal.
You can add the React Suite MCP server to Claude Code via the command line:
claude mcp add rsuite-mcp -- npx -y @rsuite/mcp@latestBy default, this installs the MCP server to local-scope of the project you are working on.
If you want the MCP server to always be available to all projects on your machine, you would install it to user-scope:
claude mcp add rsuite-mcp -s user -- npx -y @rsuite/mcp@latestTrae
- Navigate to "AI Management" > "MCP"
- Click "Add Manually"
- Add the following to the MCP configuration file:
{
"mcpServers": {
"rsuite": {
"command": "npx",
"args": ["-y", "@rsuite/mcp@latest"]
}
}
}Usage
Once configured, you can ask your AI assistant questions about React Suite components:
What props does the Button component accept?
Show me all input-related components
What's the appearance type for Button?
Find components with "picker" in the nameAvailable Tools
| Tool Name | Description |
|---|---|
| get_component_props | Get detailed props for specific components |
| list_components | List all available components with optional search |
| list_hooks | List all React Suite custom hooks |
| search_components | Search components by name or functionality |
Common issues
I've installed the MCP but there are errors in connection
- Ensure Node.js 18+ is installed
- Verify the JSON syntax in your configuration file
- Check that
@rsuite/mcpis accessible via npx
I've installed the MCP but it's not being used when I ask questions
- Restart your AI client after configuration
- Try asking specific questions about React Suite components
- Check the MCP client logs for connection status