package_file_grep

MCP tool from Socket MCP by SocketDev

Search a single file from a package for lines matching a JavaScript regular expression, returning matches with line numbers (grep -n style). Each blob is fetched once and held in a process-wide cache, so repeated reads and greps of the same hash skip the network.

How to use it

Project documentation lists package_file_grep for the Socket MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.

Install Socket MCP

$claude mcp add --transport http socket-mcp https://mcp.socket.dev/
FULL SOCKET MCP LISTING