react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts
What is kalivaraprasad gonapa react mcp
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
- Create new React applications with optional templates
- Run development servers
- Manage dependencies
-
File Operations
- Read and write files
- Edit React components and configuration
-
Process Management
- Start and monitor long-running processes
- Track process output in real-time
- Terminate processes when needed
-
Command Execution
- Run arbitrary terminal commands
- Install npm packages
- Execute development tasks
-
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 claude
Manual Installation
- Clone this repository
- Install dependencies:
npm install
Usage
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 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-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 executedirectory
(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 editcontent
(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 logsreact-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.
Leave a Comment
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
chrisdoc hevy mcp
sylphlab pdf reader mcp
An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.
aashari mcp server atlassian bitbucket
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
aashari mcp server atlassian confluence
Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.
prisma prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
Zzzccs123 mcp sentry
mcp sentry for typescript sdk
zhuzhoulin dify mcp server
zhongmingyuan mcp my mac
zhixiaoqiang desktop image manager mcp
MCP 服务器,用于管理桌面图片、查看详情、压缩、移动等(完全让Trae实现)
zhixiaoqiang antd components mcp
An MCP service for Ant Design components query | 一个减少 Ant Design 组件代码生成幻觉的 MCP 服务,包含系统提示词、组件文档、API 文档、代码示例和更新日志查询
Submit Your MCP Server
Share your MCP server with the community
Submit Now