React Native MCP Server
This MCP server automates React Native CLI project upgrades by providing version management and generating comprehensive migration diffs.
Fetch Latest Stable Version: Retrieve the most recent production-ready React Native release from GitHub, excluding betas and release candidates
Access Release Candidates: Get pre-release RC versions for early testing and feature validation
Generate Upgrade/Downgrade Diffs: Create detailed differences between any two React Native versions using
rn-diff-purge, showing:Package.json dependencies and versions
iOS configuration (Podfile, xcodeproj settings)
Android configuration (build.gradle, settings.gradle)
Project structure changes
Binary file updates
Template file modifications
Native code changes
Automatic Version Detection: Auto-detect the current React Native version from your project's
package.jsonif not explicitly providedMigration Guidance: Receive step-by-step instructions for applying upgrades, including dependency updates, configuration changes, binary file handling, and build tool version updates
Troubleshooting Support: Get package-manager-specific troubleshooting steps including Pod cleanup, Gradle wrapper updates, and dependency reinstallation
Preserve Custom Code: Apply upgrades while maintaining existing customizations in native code, configuration files, and TypeScript/JavaScript files
Supports React Native Android configuration analysis and upgrade assistance, helping manage Android-specific native code changes during React Native upgrades.
Streamlines Expo React Native app upgrades and configurations, helping developers manage Expo SDK upgrades and configuration changes.
Offers integration capabilities with GitHub Copilot, enhancing the development experience by providing AI-assisted React Native guidance.
Provides tools for handling iOS configurations in React Native projects, assisting with iOS-specific native code changes during React Native upgrades.
Provides platform-specific tools for React Native development on macOS, helping with configuration and upgrade processes.
Enables streamlined React Native development workflows including project initialization, configuration, and AI-assisted development guidance.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@React Native MCP Server show me the upgrade diff from React Native 0.72 to 0.73"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
react-native-upgrader-mcp
A Model Context Protocol (MCP) server that streamlines React Native project upgrades. It provides developers with automated tools to seamlessly upgrade React Native CLI projects to any desired version or the latest stable release. The MCP Server uses rn-diff-purge to generate the diff.
🚀 Features
Version Management: Fetch and track the latest stable React Native versions with semantic versioning support
Upgrade Automation: Generate detailed upgrade/downgrade diffs between versions with step-by-step migration guidance
Release Candidate Support: Access and evaluate pre-release versions for early testing and feature validation
Important: This MCP Server is not compatible with Expo projects.
Related MCP server: Expo MCP Server
đź”§ Setup
Cursor
Open Cursor Settings
Look for an option called "Tools and integrations" and click on it
Click on "New MCP Server"
Configure:
{ "mcpServers": { "react-native-upgrader-mcp": { "command": "npx", "args": ["-y", "react-native-upgrader-mcp"] } } }Restart Cursor
VS Code
Install MCP extension (e.g., "MCP Server Manager")
Configure:
{ "mcp.servers": { "react-native-upgrader-mcp": { "command": "npx", "args": ["-y", "react-native-upgrader-mcp"] } } }
🛠️ Tools
get-stable-version- Get latest stable versionget-react-native-diff- Generate upgrade diff between versionsget-rc-version- Get RC versions
🛠️ Development
git clone https://github.com/patrickkabwe/react-native-upgrader-mcp.git
cd react-native-upgrader-mcp
bun install
bun run build
bun run dev🤝 Contributing
Fork the repository
Create a feature branch
Make your changes
Submit a pull request
đź“„ License
Available Tools
2 toolsget-react-native-diffGet React Native DiffA
Gets the React Native diff between the current version and the user provided version. This diff will show all changes needed to upgrade React Native, including:
Package.json dependencies and their versions
iOS configuration changes (Podfile, xcodeproj settings)
Android configuration (build.gradle, settings.gradle)
Project structure changes
Binary files that need to be updated
Template files modifications
Native code changes
Troubleshooting steps if any
If no fromVersion is provided, the current version from package.json will be used. The diff follows standard git diff format and should be carefully analyzed to:
Update all dependencies to compatible versions
Apply configuration changes while preserving custom settings and user defined code
Handle binary file updates appropriately
Maintain existing customizations in native code and ts/js files
Update build tools versions (Gradle, CocoaPods, etc) with the correct version from the diff using specific cmds
Preserve any local modifications to template files
Please add the end of the process give instruction on the troubleshooting steps if any(Please detect user's package manager and run the correct cmd):
DELETE Pod and Podfile.lock file in iOS folder
Run pod install to prevent errors in iOS folder
Run this cmd to update android binary ./gradlew wrapper --gradle-version {{CURRENT_GRADLE_VERSION_FROM_DIFF}} —distribution-type {{DISTRIBUTION_TYPE_FROM_DIFF}} in android folder
Run {{CURRENT_PACKAGE_MANAGER}} install to install the correct version of the dependencies
YOU MUST call get-react-native-stable-version tool to get the stable version of React Native before calling this tool.
Inputs: toVersion (required), fromVersion.
get-react-native-stable-versionGet Stable VersionA
Gets the latest stable version of React Native from GitHub releases.
This version represents the most recent production-ready release that has been thoroughly tested and is recommended for use in applications.
The version number follows semantic versioning (e.g. 0.72.0) and excludes any release candidates or beta versions.
This tool is commonly used before planning an upgrade to ensure targeting the latest stable release and must be called before calling get-react-native-diff tool.
The output of this tool will be used as the toVersion parameter in the get-react-native-diff tool.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have completely distinct purposes with no overlap. get-react-native-diff provides detailed upgrade instructions between versions, while get-react-native-stable-version simply retrieves the latest stable version number. An agent would never confuse which tool to use for which task.
Both tools follow the exact same naming pattern: get-react-native- followed by a descriptive noun (diff, stable-version). The kebab-case is consistent throughout, and the verb 'get' is used consistently for both retrieval operations.
With only 2 tools, this server feels severely underpowered for a React Native upgrade domain. While the tools work together logically, there are obvious missing operations like applying the diff, checking current version, or handling specific platform configurations separately. The scope suggests more comprehensive tooling would be appropriate.
The server is severely incomplete for React Native upgrade workflows. While it provides version information and a diff, there's no tool to actually execute the upgrade steps described in the diff output. Agents would be left with detailed instructions but no automated way to implement them, creating a significant gap in the operational surface.
Maintenance
Related MCP Connectors
Your Expo and EAS project in natural language: up to date SDK docs, cloud builds (status, logs, trig
Drive and test your React Native and Expo apps end-to-end on iOS and Android. Supports real devices, simulators, and emulators. Snapshots, taps, typing, swipes, screenshots, deep links, reloads, builds and runtime errors.
Visual builder for React Native and Expo apps. Read and update project design tokens.
Search, read and install agent-ready React components, screens and blocks for AI products.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides comprehensive React Native development assistance with expert-level automated code remediation, security vulnerability fixes, performance optimization, and production-ready code generation. Includes testing suite generation, dependency management, and accessibility compliance tools.1366MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server designed to streamline Expo and React Native development for AI assistants like Cursor and Claude. It provides a comprehensive suite of tools for project initialization, EAS builds, OTA updates, and development server management.1-
- AlicenseAqualityDmaintenanceAn MCP server designed for React Native and Expo development that provides specialized tools for project scaffolding, architectural best practices, and troubleshooting. It enables AI assistants to guide users through setup, navigation configuration, and CI/CD processes using modern stacks like NativeWind and Zustand.131MIT
- AlicenseAqualityDmaintenanceProvides AI agents with accurate, version-aware documentation for React Native, Expo, React Navigation, and Ignite by automatically detecting project dependencies and fetching matching documentation.12MIT