Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables searching for component, function, and type usage in React/TypeScript projects.

README.md

mcp-component-finder

![npm version](https://badge.fury.io/js/mcp-component-finder) ![License: MIT](https://opensource.org/licenses/MIT)

MCP (Model Context Protocol) server for finding component, function, and type usage in React/TypeScript projects. Perfect for use with Claude Code!

🚀 Quick Start

Install in your project

npm install --save-dev mcp-component-finder

Auto-setup for Claude Code

npx mcp-component-finder setup

This will give you two options:

  1. Local setup (recommended) - Creates .claude_config.json in your project
  2. Global setup - Configures Claude Desktop globally

Local setup is recommended as it keeps the MCP server configuration project-specific.

📋 Manual Setup

Option 1: Local Project Configuration (Recommended)

Create .claude_config.json in your project root:

{
  "mcpServers": {
    "component-finder": {
      "command": "npx",
      "args": ["mcp-component-finder"],
      "env": {
        "PROJECT_ROOT": "."
      }
    }
  }
}

This approach:

  • ✅ Works only for the specific project
  • ✅ No global Claude Desktop configuration needed
  • ✅ Claude Code automatically detects the config
  • ✅ Easy to share with team (if not in .gitignore)

Option 2: Claude Desktop Configuration

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "component-finder": {
      "command": "npx",
      "args": ["mcp-component-finder"],
      "env": {
        "PROJECT_ROOT": "/path/to/your/project"
      }
    }
  }
}

💡 Usage Examples

Once configured, you can ask Claude Code:

Find all usage of SearchIcon component
Show me where Button from @mui/material is used
Find useState imports from react in .tsx files only
List files that use the UserProfile component

🔧 Features

  • Find React Components: JSX usage, imports, exports
  • Find Functions: Function calls, imports from any package
  • Find TypeScript Types: Interface usage, type annotations
  • NPM Package Support: Search components from any installed package
  • Smart Filtering: Excludes comments, includes only relevant files
  • Fast Search: Optimized for large codebases

📊 Search Capabilities

Import Detection

  • import { Component } from './path'
  • import Component from './Component'
  • import * as Components from 'package'
  • import 'package' (side-effect imports)

Usage Detection

  • JSX: <Component />, <Component prop="value">
  • Function calls: Component(), Component.method()
  • TypeScript types: : Component, Component<T>
  • Destructuring: { Component } = obj

🎯 Tool Parameters

  • targetName (required): Name of component/function/type to find
  • packageName (optional): NPM package name for external dependencies
  • projectRoot (optional): Project root path (defaults to current directory)
  • extensions (optional): File extensions to search (default: .ts, .tsx, .js, .jsx)
  • excludeDirs (optional): Directories to exclude (default: node_modules, .git, dist, build)
  • format (optional): Output format - 'detailed' or 'files-only'

📁 Project Structure

Works with any React/TypeScript project structure:

  • Create React App
  • Next.js
  • Vite
  • Custom webpack setups
  • Monorepos

🤝 Contributing

Contributions welcome! Please read our Contributing Guide first.

📄 License

MIT © Deonis Peretyagin

🐛 Issues

Found a bug? Please open an issue.

🏷️ Changelog

See CHANGELOG.md for version history.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Search servers.