A powerful Model Context Protocol (MCP) server that provides comprehensive code operations, filesystem management, and project analysis capabilities to Claude Desktop and other MCP clients.
- Read/Write Files - Read, create, and modify files
- Directory Management - Create, list, and navigate directories
- File Operations - Move, rename, delete files and directories
- Search Files - Find files by name pattern with glob support
- Code Search - Search across codebases with regex support
- Context-Aware Results - Get surrounding lines for better context
- Multi-Language Support - Works with all major programming languages
- Project Analysis - Understand project structure and dependencies
- Command Execution - Run shell commands with timeout protection
- Data Processing - Parse JSON/YAML, calculate hashes, encode/decode
- Project Insights - Analyze dependencies, find entry points, categorize directories
- Configure Claude Desktop
Add to your Claude Desktop config:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"codefile": {
"command": "npx",
"args": ["-y", "codefile"]
}
}
}-
Restart Claude Desktop
-
Start using! Ask Claude to:
- "Search for TODO comments in my code"
- "Analyze this project structure"
- "Find all functions containing 'async'"
npx codefile-setupThis will automatically configure Claude Desktop for you.
read_file- Read file contentswrite_file- Write content to fileedit_file- Replace text in filescreate_directory- Create directorieslist_directory- List directory contentsmove_file- Move or rename filesdelete_file- Delete files or directoriessearch_files- Search for files by patternget_file_info- Get file metadata
search_code- Search for code patternsanalyze_project_structure- Analyze project organization
execute_command- Run shell commandsparse_json- Parse JSON dataparse_yaml- Parse YAML datacalculate_hash- Calculate file hashesencode_decode- Convert between encodings
Claude: "Find all TODO comments in JavaScript files"
Claude: "What kind of project is this and what are its dependencies?"
Claude: "Replace all console.log statements with logger.debug"
- Path validation and normalization
- Automatic filtering of sensitive directories (.git, node_modules)
- Command execution timeouts
- No arbitrary code execution
- Node.js 18.0.0 or higher
- Claude Desktop or any MCP-compatible client
MIT
Vincent Emmanuel vincent_emmanuel@ymail.com