# package.json exports resolver (which file Node loads)

> package.json exports resolver (which file Node loads) is an open-source MCP server. Which file Node loads for import or require of pkg/sub, and why: package.json exports, same as Node. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/lawatch/10aday/tree/HEAD/products/mcp/package-exports
- **MCP Registry name:** io.github.Lawatch/package-exports
- **Listing updated:** 2026-11-16

## About

Which file Node loads for import or require of pkg/sub, and why: package.json exports, same as Node.

## Install

### Claude Code (Terminal)

```sh
claude mcp add package-exports -- docker run -i --rm ghcr.io/lawatch/package-exports:1.0.0
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "package-exports": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/lawatch/package-exports:1.0.0"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "package-exports": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/lawatch/package-exports:1.0.0"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "package-exports": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/lawatch/package-exports:1.0.0"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "package-exports": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/lawatch/package-exports:1.0.0"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "package-exports": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/lawatch/package-exports:1.0.0"
      ]
    }
  }
}
```

## FAQ

### Is package.json exports resolver (which file Node loads) free?

Yes. package.json exports resolver (which file Node loads) is open source, so you can use and self-host it for free.

### How do I add package.json exports resolver (which file Node loads) to Claude Code?

Run this command in your terminal: claude mcp add package-exports -- docker run -i --rm ghcr.io/lawatch/package-exports:1.0.0

---
Source: https://ai-powered.com/mcp/package-json-exports-resolver-which-file-node-loads
