Recognizes and automatically excludes Git directories (.git) during project exploration and file searches.
Provides reference to the project's GitHub repository, enabling users to find the source code and contribute to development.
Enables searching and analyzing Node.js projects, including checking for outdated npm packages and analyzing import/export statements in JavaScript files.
Provides tools for analyzing npm dependencies, checking for outdated packages, and offering detailed update recommendations with version information.
Supports analysis of TypeScript projects with specialized features for detecting import/export statements and searching through TypeScript files.
🔍 Project Explorer MCP Server
A powerful Model Context Protocol server for exploring, analyzing, and managing project files with advanced search capabilities
📦 Available on npm:
@team-jd/mcp-project-explorer
⚡ Quick Start
🚀 Overview
The Project Explorer MCP Server provides comprehensive tools for analyzing project structures, searching through codebases, managing dependencies, and performing file operations. Perfect for developers who need intelligent project navigation and analysis capabilities.
📦 Installation & Setup
🚀 For MCP Users (Recommended)
Add this server to your MCP settings configuration:
📁 Multiple Directory Access:
🛠️ For Developers
🛠️ Available Commands
📂 explore_project
Analyzes project structure with detailed file information and import/export analysis
✨ Features:
- 📊 File size analysis with human-readable formatting
- 🔍 Import/export statement detection for JS/TS files
- 🚫 Automatically excludes build directories (
node_modules
,.git
,dist
, etc.) - 📁 Recursive directory traversal
- 🎯 Support for subdirectory analysis
🔎 search_files
Advanced file and code search with comprehensive filtering capabilities
🎛️ Search Options:
Parameter | Type | Default | Description |
---|---|---|---|
pattern | string | ".*" | Search pattern (text or regex) |
searchPath | string | first allowed dir | Directory to search in |
extensions | string[] | all | Include only these file types |
excludeExtensions | string[] | [] | Exclude these file types |
excludePatterns | string[] | [] | Exclude filename patterns |
regexMode | boolean | false | Treat pattern as regex |
caseSensitive | boolean | false | Case-sensitive search |
wordBoundary | boolean | false | Match whole words only |
multiline | boolean | false | Multiline regex matching |
maxDepth | number | unlimited | Directory recursion depth |
followSymlinks | boolean | false | Follow symbolic links |
includeBinary | boolean | false | Search in binary files |
minSize | number | none | Minimum file size (bytes) |
maxSize | number | none | Maximum file size (bytes) |
modifiedAfter | string | none | Files modified after date (ISO 8601) |
modifiedBefore | string | none | Files modified before date (ISO 8601) |
snippetLength | number | 50 | Text snippet length around matches |
maxResults | number | 100 | Maximum number of results |
sortBy | string | "relevance" | Sort by: relevance, file, lineNumber, modified, size |
groupByFile | boolean | true | Group results by file |
excludeComments | boolean | false | Skip comments (language-aware) |
excludeStrings | boolean | false | Skip string literals |
outputFormat | string | "text" | Output format: text, json, structured |
🎯 Use Cases:
- 🔍 Find all TODO comments:
pattern: "TODO.*", excludeStrings: true
- 🐛 Search for potential bugs:
pattern: "console\\.log", regexMode: true
- 📦 Find import statements:
pattern: "import.*from", regexMode: true
- 🔧 Recent changes:
modifiedAfter: "2024-01-01", extensions: [".js", ".ts"]
📊 check_outdated
Checks for outdated npm packages with detailed analysis
📋 Output Formats:
detailed
- Full package info with versions and update commandssummary
- Count of outdated packages by typeraw
- Raw npm outdated JSON output
🔧 Requirements:
- Node.js and npm must be installed
- Valid
package.json
in the specified directory
🗑️ delete_file
Safely delete files or directories with protection mechanisms
⚠️ Safety Features:
- 🔒 Only works within allowed directories
- 📁 Requires
recursive: true
for non-empty directories - 🛡️ Protection against accidental deletions
- ⚡ Optional force deletion for read-only files
✏️ rename_file
Rename or move files and directories
✨ Features:
- 📁 Works with both files and directories
- 🔄 Can move between directories
- 🚫 Fails if destination already exists
- 🔒 Both paths must be within allowed directories
📋 list_allowed_directories
Shows which directories the server can access
🔧 Use Cases:
- 🔍 Check access permissions before operations
- 🛡️ Security validation
- 📂 Directory discovery
🎨 Usage Examples
📊 Project Analysis Workflow
🔍 Advanced Search Scenarios
🛡️ Security & Permissions
The server operates within allowed directories only, providing:
- 🔒 Sandboxed access - Cannot access files outside allowed paths
- 🛡️ Safe operations - Built-in protections against dangerous operations
- 📂 Path validation - All paths are normalized and validated
- ⚠️ Error handling - Clear error messages for permission issues
🔧 Development
📁 Project Structure
🏗️ Build Commands
🤝 Contributing
- 🍴 Fork the repository
- 🌟 Create a feature branch
- 💻 Make your changes
- ✅ Test thoroughly
- 🚀 Submit a pull request
📄 License
See LICENSE file for details.
Happy coding! 🎉
Built with ❤️ using TypeScript and the Model Context Protocol
This server cannot be installed
Provides tools for analyzing project structures, searching through codebases, managing dependencies, and performing file operations with advanced filtering capabilities.
Related MCP Servers
- AsecurityAlicenseAqualityProvides tools for collecting and documenting code from directories.Last updated -48112TypeScriptMIT License
- AsecurityAlicenseAqualityAnalyzes source code dependencies across multiple programming languages in the specified directory to identify file relationships, assisting in dependency management and project structure understanding.Last updated -1PythonMIT License
- -securityAlicense-qualityA comprehensive code analysis and management tool that integrates with Claude Desktop to analyze code at project and file levels, helping adapt changes to projects intelligently.Last updated -29PythonMIT License
- -securityFlicense-qualityAnalyzes codebases to generate dependency graphs and architectural insights across multiple programming languages, helping developers understand code structure and validate against architectural rules.Last updated -5JavaScript