react-mcp
react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts
Documentation
React MCP (Model Context Protocol)
A powerful server implementation that enables Claude AI to interact with React applications through the Model Context Protocol.
Sample Usage
Overview
React MCP provides a bridge between Claude AI and the React ecosystem, allowing Claude to:
- Create new React applications
- Run React development servers
- Manage files and directories
- Install npm packages
- Execute terminal commands
- Track and manage long-running processes
This server implements the Model Context Protocol, providing Claude with the ability to perform real-world actions in the development environment.
Features
- React Project Management
- File Operations
- Process Management
- Command Execution
- Comprehensive Logging
- Detailed JSON and text logs
- Process tracking with timestamps
- Execution history
Installation
Installing via Smithery
To install React MCP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Streen9/react-mcp --client claudeManual Installation
1. Clone this repository
2. Install dependencies:
npm installUsage
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.
Available Tools
`create-react-app`
Creates a new React application.
Parameters:
- `name` (required): Name of the React app
- `template` (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-app`
Runs a React application in development mode.
Parameters:
- `projectPath` (required): Path to the React project folder
`run-command`
Runs a terminal command.
Parameters:
- `command` (required): Command to execute
- `directory` (optional): Directory to run the command in (defaults to current directory)
`get-process-output`
Gets the output from a running or completed process.
Parameters:
- `processId` (required): ID of the process to get output from
`stop-process`
Stops a running process.
Parameters:
- `processId` (required): ID of the process to stop
`list-processes`
Lists all running processes.
`edit-file`
Creates or edits a file.
Parameters:
- `filePath` (required): Path to the file to edit
- `content` (required): Content to write to the file
`read-file`
Reads the contents of a file.
Parameters:
- `filePath` (required): Path to the file to read
`install-package`
Installs 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 dependency
`check-installation-status`
Checks the status of a package installation process.
Parameters:
- `processId` (required): ID of the installation process to check
Logging
The server maintains detailed logs in the `logs` directory:
- `react-mcp-logs.json`: Structured JSON logs
- `react-mcp-logs.txt`: Human-readable text logs
Architecture
The server uses the following key components:
- Model Context Protocol SDK: For communication with Claude AI
- StdioServerTransport: For I/O through standard input/output
- Zod: For schema validation and type safety
- Child Process: For spawning and managing external processes
License
MIT
Author
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Frequently asked questions
What is react-mcp?
react-mcp is react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts
How do I install react-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is react-mcp open source?
Yes — it is hosted on GitHub at https://github.com/kalivaraprasad-gonapa/react-mcp and has 76 stars.
Related MCP tools
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
Enhanced MCP server for interactive user feedback and command execution in AI-assisted development, featuring dual interface support (Web UI and Desktop Application) with intelligent environment detection and cross-platform compatibility.
A powerful Zotero AI and MCP plugin with ChatGPT, Gemini 3.7, Claude Fable 5, Claude Opus 5, DeepSeek V4, Grok, OpenRouter, Kimi k3, GLM 5.3, SiliconFlow, GPT-oss, Gemma 4, Qwen 3.8
Connect your browser to AI models. Just use Dia on Chrome, Arc or Firefox.
文颜 MCP Server 可以让 AI 自动将 Markdown 文章排版后发布至微信公众号。
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP