Skip to main content
Glama
React Native MCP Server

React Native MCP Server

by patrickkabwe

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

  1. Open Cursor Settings

  2. Look for an option called "Tools and integrations" and click on it

  3. Click on "New MCP Server"

  4. Configure:

    {
        "mcpServers": {
            "react-native-upgrader-mcp": {
                "command": "npx",
                "args": ["-y", "react-native-upgrader-mcp"]
            }
        }
    }
  5. Restart Cursor

VS Code

  1. Install MCP extension (e.g., "MCP Server Manager")

  2. Configure:

    {
        "mcp.servers": {
            "react-native-upgrader-mcp": {
                "command": "npx",
                "args": ["-y", "react-native-upgrader-mcp"]
            }
        }
    }

🛠️ Tools

  • get-stable-version - Get latest stable version

  • get-react-native-diff - Generate upgrade diff between versions

  • get-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

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes

  4. Submit a pull request

đź“„ License

MIT License

Available Tools

2 tools
get-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:

  1. Update all dependencies to compatible versions

  2. Apply configuration changes while preserving custom settings and user defined code

  3. Handle binary file updates appropriately

  4. Maintain existing customizations in native code and ts/js files

  5. Update build tools versions (Gradle, CocoaPods, etc) with the correct version from the diff using specific cmds

  6. Preserve any local modifications to template files

  7. 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

    A4/5.0

    Scored across 2 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count2/5

    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.

    Completeness2/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides 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.
      13
      66
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      A 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
      -
    • A
      license
      A
      quality
      D
      maintenance
      An 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.
      13
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides AI agents with accurate, version-aware documentation for React Native, Expo, React Navigation, and Ignite by automatically detecting project dependencies and fetching matching documentation.
      12
      MIT