mcp-component-finder
Allows finding React component, function, and type usage in projects built with Create React App.
Supports searching for usage of MUI (Material-UI) components and functions imported from @mui packages.
Allows finding React component, function, and type usage in Next.js projects.
Supports searching for components, functions, and types from any installed npm package.
Enables finding React components (JSX usage), imports, and exports in codebases.
Enables finding TypeScript types, interfaces, and type annotations in project files.
Allows finding React component, function, and type usage in Vite projects.
Allows finding React component, function, and type usage in projects using webpack.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-component-finderfind usages of the Button component in the project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-component-finder
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-finderAuto-setup for Claude Code
npx mcp-component-finder setupThis will give you two options:
Local setup (recommended) - Creates
.claude_config.jsonin your projectGlobal setup - Configures Claude Desktop globally
Local setup is recommended as it keeps the MCP server configuration project-specific.
Related MCP server: React USWDS MCP Server
📋 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 componentShow me where Button from @mui/material is usedFind useState imports from react in .tsx files onlyList 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 findpackageName(optional): NPM package name for external dependenciesprojectRoot(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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/karudo/mcp-component-finder'
If you have feedback or need assistance with the MCP directory API, please join our Discord server