Skip to main content
Glama
redux-mcp
by n1snt

redux-mcp

redux-mcp lets AI tools (via MCP) and your app connect to Redux state in a simple way.

It gives you:

  • MCP tools to read state, list actions, dispatch actions, and reset history

  • A WebSocket runtime for live state updates

  • A simple API to register your own Redux stores

What It Does

After integration, LLMs or clients can:

  • read current Redux state

  • see available/observed actions

  • dispatch actions into your store

  • receive live updates over WebSocket

Related MCP server: Tesseron

Install

Use in your app:

npm install redux-mcp

For local development of this repo:

npm install

Integrate In Your App

Quick start (auto-start runtime)

import "redux-mcp";

This auto-starts the runtime WebSocket server on:

  • ws://localhost:8788/redux-events

import { registerStoresForMCP } from "redux-mcp";

registerStoresForMCP({
  stores: [{ storeName: "app", store }],
});

Notes:

  • store should provide getState() and dispatch(...)

  • multiple stores are supported

  • action types are learned from observed dispatched actions

Manual runtime control (optional)

import { startReduxRuntimeServers } from "redux-mcp";

const runtime = startReduxRuntimeServers({
  websocketPort: 8788,
  websocketPathname: "/redux-events",
});

// runtime.stop();

Install MCP In Cursor

Add this to Cursor MCP config:

{
  "mcpServers": {
    "redux-mcp": {
      "command": "npx",
      "args": ["-y", "redux-mcp"]
    }
  }
}

If Cursor cannot find npx (spawn npx ENOENT), use the absolute npx path instead:

{
  "mcpServers": {
    "redux-mcp": {
      "command": "/absolute/path/to/npx",
      "args": ["-y", "redux-mcp"]
    }
  }
}

Then restart MCP servers in Cursor.

Available tools:

  • redux_get_state

  • redux_get_state_diff

  • redux_get_actions

  • redux_dispatch_action

  • redux_reset_state

For detailed Cursor setup: documentation/cursor-mcp-setup.md.

Available Tools

5 tools
redux_dispatch_actionDispatch Redux ActionC

Dispatch an action to the Redux store.

Inputs: type (required), payload, storeName.

redux_get_actionsGet Redux ActionsB

Return available actions and optionally dispatched history.

Inputs: includeHistory.

redux_get_stateGet Redux StateA

Return the current Redux store snapshot.

Inputs: no named parameters.

redux_get_state_diffGet Redux State DiffA

Return field-level changes between current state and the previous snapshot (or a provided baseline).

Inputs: previousState, rememberCurrentAsPrevious.

redux_reset_stateReset Redux StateA

Reset Redux state and action history to initial values.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool serves a unique purpose: dispatching actions, retrieving actions/history, getting state, computing state diffs, and resetting state. No overlaps exist.

    Naming Consistency5/5

    All tools follow the consistent pattern 'redux_verb_noun', using snake_case and clear verbs (dispatch, get, reset). No deviations.

    Tool Count5/5

    Five tools cover the essential operations for Redux state management without being excessive or insufficient. The count matches the domain scope.

    Completeness5/5

    The set covers all key Redux interactions: dispatching, reading state, diffing, resetting, and viewing action history. No obvious gaps for a basic server.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP-compatible AI agents to execute typed live-app actions over WebSocket, allowing agents to directly interact with real application state without browser automation or scraping.
      21
      Business Source 1.1
    • A
      license
      A
      quality
      D
      maintenance
      Bridges Zustand stores over WebSocket, enabling MCP-capable AI to inspect and manipulate live application state.
      5
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Connects AI agents to ROS 2 robots via rosbridge, enabling observation, inspection, and control of robot topics, services, and actions through natural language.
      11
      2
      MIT