React MCP
STDIO连接Claude AI与React的应用开发工具
连接Claude AI与React的应用开发工具
A powerful server implementation that enables Claude AI to interact with React applications through the Model Context Protocol.
React MCP provides a bridge between Claude AI and the React ecosystem, allowing Claude to:
This server implements the Model Context Protocol, providing Claude with the ability to perform real-world actions in the development environment.
React Project Management
File Operations
Process Management
Command Execution
Comprehensive Logging
To install React MCP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Streen9/react-mcp --client claude
npm install
Add this in claude_desktop_config:
{
  "mcpServers": {
    "react-mcp": {
      "command": "node",
      "args": [
        "C:/Users/kalip/OneDrive/Desktop/react-mcp/index.js"
      ]
    },
  }
}
The server runs on the stdio transport, allowing it to be used with Desktop Claude APP as a Model Context Protocol tool.
create-react-appCreates a new React application.
Parameters:
name (required): Name of the React apptemplate (optional): Template to use (e.g., typescript, cra-template-pwa)directory (optional): Base directory to create the app in (defaults to home directory)run-react-appRuns a React application in development mode.
Parameters:
projectPath (required): Path to the React project folderrun-commandRuns a terminal command.
Parameters:
command (required): Command to executedirectory (optional): Directory to run the command in (defaults to current directory)get-process-outputGets the output from a running or completed process.
Parameters:
processId (required): ID of the process to get output fromstop-processStops a running process.
Parameters:
processId (required): ID of the process to stoplist-processesLists all running processes.
edit-fileCreates or edits a file.
Parameters:
filePath (required): Path to the file to editcontent (required): Content to write to the fileread-fileReads the contents of a file.
Parameters:
filePath (required): Path to the file to readinstall-packageInstalls a npm package in a project.
Parameters:
packageName (required): Name of the package to install (can include version)directory (optional): Directory of the project (defaults to current directory)dev (optional): Whether to install as a dev dependencycheck-installation-statusChecks the status of a package installation process.
Parameters:
processId (required): ID of the installation process to checkThe server maintains detailed logs in the logs directory:
react-mcp-logs.json: Structured JSON logsreact-mcp-logs.txt: Human-readable text logsThe server uses the following key components:
MIT
Contributions are welcome! Please feel free to submit a Pull Request.