Command Palette

Search for a command to run...

UnylyUnyly
Browse all

ReactUse

FreeNot checked

MCP server for the ReactUse library. Exposes 110+ React Hook signatures, examples, and API metadata so AI coding assistants can discover and use any hook from @

GitHubEmbed

About

MCP server for the ReactUse library. Exposes 110+ React Hook signatures, examples, and API metadata so AI coding assistants can discover and use any hook from @reactuses/core directly.

README

ReactUse - Collection of essential React Hooks ReactUse - Collection of essential React Hooks

NPM Version NPM Downloads UnLicense Tree Shaking Friendly TypeScript Support

Context7 indexed Ask DeepWiki GitMCP ReactUse MCP server on Glama

Introduction

ReactUse is a comprehensive collection of 100+ essential React Hooks for building modern React applications. Inspired by VueUse, it provides production-ready hooks for browser APIs, state management, sensors, animations, DOM elements, and more.

Features

  • 🎯 100+ Hooks — The most comprehensive React hooks collection
  • 📦 Tree-Shakable — Import only what you need
  • 🔷 TypeScript — Full type definitions for every hook
  • 🖥️ SSR Compatible — Works with Next.js, Remix, and more
  • 📚 Well Documented — Interactive demos for every hook
  • 🤖 MCP Support — AI-powered hook discovery

Installation

npm i @reactuses/core

Quick Start

import { useToggle } from "@reactuses/core";

const Demo = () => {
  const [on, toggle] = useToggle(true);
  return <button onClick={toggle}>{on ? "ON" : "OFF"}</button>;
};

Who's Using This

PDD Shopee Ctrip


Hook Categories

Browser (48 hooks)

useClipboard, useColorMode, useCookie, useDarkMode, useDocumentVisibility, useEyeDropper, useFavicon, useFileDialog, useFullscreen, useMediaDevices, useMediaQuery, useOnline, usePermission, usePlatform, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, useScreenSafeArea, useScriptTag, useTextDirection, useTitle, useWebNotification, useBroadcastChannel, useEventSource, useFetchEventSource, useGeolocation, useIdle, useKeyModifier, useMobileLandscape, useNetwork, useOrientation, usePageLeave, useSpeechRecognition, useWindowFocus, useWindowScroll, useWindowSize, and more...

State (24 hooks)

useBoolean, useControlled, useCounter, useCycleList, useDebounce, useDebounceFn, useDisclosure, useLocalStorage, useMap, usePrevious, useSessionStorage, useSetState, useThrottle, useThrottleFn, useToggle, and more...

Element (19 hooks)

useClickOutside, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementSize, useElementVisibility, useFocus, useHover, useInfiniteScroll, useIntersectionObserver, useLongPress, useMeasure, useMouse, useMousePressed, useMutationObserver, useResizeObserver, useScroll, useScrollIntoView, and more...

Effect (20 hooks)

useAsyncEffect, useCustomCompareEffect, useDeepCompareEffect, useEventListener, useInterval, useMount, useRafFn, useTimeout, useTimeoutFn, useUnmount, useUpdate, and more...


MCP Support

If you want to use the MCP (Model Context Protocol) integration with reactuse, you can easily set it up with the following configuration. This allows you to run the @reactuses/mcp utility via npx for enhanced command-line support and automation.

Add the following to your configuration:

"@reactuses/mcp": {
  "command": "npx",
  "args": ["-y", "@reactuses/mcp@latest"],
  "type": "stdio"
}

Documentation

📖 Full Documentation | 📖 LLM-friendly Documentation | 💬 Discord | 🐛 Issues


Contribute

See the Contributing Guide

ChangeLog

See the ChangeLog


Thanks

This project is heavily inspired by the following awesome projects.


Sponsor Me

If my work has helped you, consider buying me a cup of coffee. Thank you very much🥰!.

Buy me a coffee

from github.com/childrentime/reactuse

Installing ReactUse

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/childrentime/reactuse

FAQ

Is ReactUse MCP free?

Yes, ReactUse MCP is free — one-click install via Unyly at no cost.

Does ReactUse need an API key?

No, ReactUse runs without API keys or environment variables.

Is ReactUse hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install ReactUse in Claude Desktop, Claude Code or Cursor?

Open ReactUse on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare ReactUse with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs