https://github.com/Streen9/react-mcp
React MCP(モデルコンテキストプロトコル)
Claude AI がモデル コンテキスト プロトコルを通じて React アプリケーションと対話できるようにする強力なサーバー実装。
使用例
Related MCP server: MCP-Claude Code Bridge
概要
React MCP は、Claude AI と React エコシステムの間に橋渡しをし、Claude に次のことを可能にします。
新しいReactアプリケーションを作成する
React開発サーバーを実行する
ファイルとディレクトリを管理する
npmパッケージをインストールする
端末コマンドを実行する
長時間実行されるプロセスを追跡および管理する
このサーバーはモデルコンテキストプロトコルを実装し、開発環境で実際のアクションを実行する機能を Claude に提供します。
特徴
Reactプロジェクト管理
オプションのテンプレートを使用して新しい React アプリケーションを作成する
開発サーバーを実行する
依存関係を管理する
ファイル操作
ファイルの読み取りと書き込み
Reactコンポーネントと設定を編集する
プロセス管理
長時間実行プロセスを開始および監視する
プロセス出力をリアルタイムで追跡
必要に応じてプロセスを終了する
コマンド実行
任意のターミナルコマンドを実行する
npmパッケージをインストールする
開発タスクを実行する
包括的なログ記録
詳細なJSONおよびテキストログ
タイムスタンプによるプロセス追跡
実行履歴
インストール
このリポジトリをクローンする
依存関係をインストールします:
npm install使用法
claude_desktop_configに以下を追加します:
{
"mcpServers": {
"react-mcp": {
"command": "node",
"args": [
"C:/Users/kalip/OneDrive/Desktop/react-mcp/index.js"
]
},
}
}サーバーは stdio トランスポート上で実行されるため、Desktop Claude APP でモデル コンテキスト プロトコル ツールとして使用できます。
利用可能なツール
create-react-app
新しい React アプリケーションを作成します。
パラメータ:
name(必須): Reactアプリの名前template(オプション):使用するテンプレート(例:typescript、cra-template-pwa)directory(オプション):アプリを作成するベースディレクトリ(デフォルトはホームディレクトリ)
run-react-app
React アプリケーションを開発モードで実行します。
パラメータ:
projectPath(必須): React プロジェクト フォルダへのパス
run-command
ターミナルコマンドを実行します。
パラメータ:
command(必須): 実行するコマンドdirectory(オプション):コマンドを実行するディレクトリ(デフォルトは現在のディレクトリ)
get-process-output
実行中または完了したプロセスから出力を取得します。
パラメータ:
processId(必須): 出力を取得するプロセスのID
stop-process
実行中のプロセスを停止します。
パラメータ:
processId(必須): 停止するプロセスのID
list-processes
実行中のすべてのプロセスを一覧表示します。
edit-file
ファイルを作成または編集します。
パラメータ:
filePath(必須): 編集するファイルへのパスcontent(必須): ファイルに書き込むコンテンツ
read-file
ファイルの内容を読み取ります。
パラメータ:
filePath(必須): 読み取るファイルへのパス
install-package
プロジェクトに npm パッケージをインストールします。
パラメータ:
packageName(必須): インストールするパッケージの名前 (バージョンを含めることができます)directory(オプション):プロジェクトのディレクトリ(デフォルトは現在のディレクトリ)dev(オプション): 開発依存関係としてインストールするかどうか
check-installation-status
パッケージのインストール プロセスのステータスを確認します。
パラメータ:
processId(必須): 確認するインストールプロセスのID
ログ記録
サーバーはlogsディレクトリに詳細なログを保持します。
react-mcp-logs.json: 構造化されたJSONログreact-mcp-logs.txt: 人間が読めるテキストログ
建築
サーバーは次の主要コンポーネントを使用します。
モデルコンテキストプロトコルSDK :Claude AIとの通信用
StdioServerTransport : 標準入出力を介したI/O用
Zod : スキーマ検証と型安全性
子プロセス: 外部プロセスの生成と管理
ライセンス
マサチューセッツ工科大学
著者
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
Available Tools
9 toolscreate-react-appC
Create a new React application
Inputs: name (required), template, directory.
edit-fileC
Create or edit a file
Inputs: content (required), filePath (required).
get-process-outputB
Get the output from a running or completed process
Inputs: processId (required).
install-packageC
Install a npm package in a project
Inputs: packageName (required), dev, directory.
list-processesA
List all running processes
Inputs: no named parameters.
read-fileB
Read the contents of a file
Inputs: filePath (required).
run-commandC
Run a terminal command
Inputs: command (required), directory.
run-react-appC
Run a React application in development mode
Inputs: projectPath (required).
stop-processB
Stop a running process
Inputs: processId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Tools are mostly distinct: process management (list, stop, get output), file operations (read/edit), and React-specific actions (create/run app) are clearly separated. However, 'run-react-app' and generic 'run-command' could be confused if an agent doesn't read descriptions, and 'run-command' overlaps slightly with the dev server startup.
All tools follow a consistent verb_noun snake_case pattern (e.g., stop-process, create-react-app, list-processes). No deviations or mixed conventions, making the naming predictable and intuitive.
With 9 tools, the server covers the core React development workflow (create, run, manage processes, edit files, install packages) without redundancy. Each tool serves a clear purpose and the count is well within the ideal 3-15 range.
The toolset covers the essential React development lifecycle: project creation, dev server management, file editing, package installation, and process monitoring. Minor gaps like build/test commands or file deletion are missing but agents can work around them using run-command or edit-file.
Related MCP Connectors
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
MCP hosting for AI agents: Claude or Codex writes the code, runs it and sends a live link.
One message in, a full agentic application out: website and MCP app, live. Built from any AI client.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegration project for Model Context Protocol (MCP) servers with Claude Desktop App, enabling filesystem operations, development support, and file management through natural language.MIT
- FlicenseBqualityDmaintenanceBridges Claude Desktop with Claude Code CLI to delegate complex coding tasks like creating React apps, building APIs, and debugging scripts while maintaining interaction through the Desktop interface.51-
- AlicenseBqualityDmaintenanceGenerates React Native/Expo UI components using AI, integrates with Claude Desktop to create and optimize Tamagui-based components via natural language commands.62MIT
- AlicenseNot gradedqualityDmaintenanceA Todo app leveraging MCP Apps to provide interactive UI within conversations, allowing users to manage todos via Claude Desktop or Claude Code.MIT