Mcp_usehooks

Created By
packages10 months ago
A Model Context Protocol (MCP) server for accessing React hooks from usehooks.io. - Access all hooks from the usehooks.io repository - Search hooks by keyword - Filter hooks by category - Get detailed information about specific hooks including implementation code
Overview

Available Tools

list_hooks

Lists all available React hooks, optionally filtered by category.

Parameters:

  • category (optional): Filter hooks by category (e.g., "state", "browser", "utility")

Example:

{
  "server_name": "usehooks-mcp",
  "tool_name": "list_hooks",
  "args": {
    "category": "state"
  }
}

search_hooks

Searches for hooks by keyword in name or description.

Parameters:

  • keyword: Keyword to search for in hook names and descriptions

Example:

{
  "server_name": "usehooks-mcp",
  "tool_name": "search_hooks",
  "args": {
    "keyword": "storage"
  }
}

get_hook

Retrieves detailed information about a specific hook, including its implementation code.

Parameters:

  • name: Name of the hook to retrieve (e.g., "use-counter", "use-local-storage")

Example:

{
  "server_name": "usehooks-mcp",
  "tool_name": "get_hook",
  "args": {
    "name": "use-counter"
  }
}

Server Config

{
  "mcpServers": {
    "usehooks": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-usehooks"
      ]
    }
  }
}
Project Info
Created At
10 months ago
Updated At
10 months ago
Author Name
packages
Star
-
Language
-
License
-
Category

Recommend Servers

View All
Gelbooru

a day ago