package_file_contents

MCP tool from Socket MCP by SocketDev

Read a single file from a package. Pass the hash printed next to an entry in packagefiles output. Returns up to 1 MB of UTF-8 text; binary files return metadata only.

How to use it

Project documentation lists package_file_contents 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