npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

codefile

v1.0.2

Published

CodeFile - MCP server for code operations, filesystem management, and project analysis

Downloads

12

Readme

CodeFile - MCP Server for Code Operations

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.

Features

🗂️ Filesystem Operations

  • 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 Intelligence

  • 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

🛠️ Developer Utilities

  • 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

Quick Start

Installation via npx (Recommended)

  1. 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"]
    }
  }
}
  1. Restart Claude Desktop

  2. Start using! Ask Claude to:

    • "Search for TODO comments in my code"
    • "Analyze this project structure"
    • "Find all functions containing 'async'"

Automatic Setup

npx codefile-setup

This will automatically configure Claude Desktop for you.

Available Tools

File Operations

  • read_file - Read file contents
  • write_file - Write content to file
  • edit_file - Replace text in files
  • create_directory - Create directories
  • list_directory - List directory contents
  • move_file - Move or rename files
  • delete_file - Delete files or directories
  • search_files - Search for files by pattern
  • get_file_info - Get file metadata

Code Intelligence

  • search_code - Search for code patterns
  • analyze_project_structure - Analyze project organization

Utilities

  • execute_command - Run shell commands
  • parse_json - Parse JSON data
  • parse_yaml - Parse YAML data
  • calculate_hash - Calculate file hashes
  • encode_decode - Convert between encodings

Examples

Search for patterns in code

Claude: "Find all TODO comments in JavaScript files"

Analyze project

Claude: "What kind of project is this and what are its dependencies?"

Refactor code

Claude: "Replace all console.log statements with logger.debug"

Security

  • Path validation and normalization
  • Automatic filtering of sensitive directories (.git, node_modules)
  • Command execution timeouts
  • No arbitrary code execution

Requirements

  • Node.js 18.0.0 or higher
  • Claude Desktop or any MCP-compatible client

License

MIT

Author

Vincent Emmanuel [email protected]

Repository

https://github.com/VincentEmmanuel/codefile