Summary
@notionhq/notion-mcp-server@2.2.1 publishes main: "index.js" in package.json, but the npm package does not include index.js. Importing the package root fails before any Notion API configuration is involved.
The CLI entrypoint exists at bin/cli.mjs, so this looks like a stale package main field or a missing build artifact.
Reproduction
tmp="$(mktemp -d)"
cd "$tmp"
npm init -y >/dev/null
npm install --ignore-scripts @notionhq/notion-mcp-server@2.2.1
node - <<'NODE'
const fs = require('node:fs');
const path = require('node:path');
const root = path.join(process.cwd(), 'node_modules/@notionhq/notion-mcp-server');
const pkg = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
console.log({ version: pkg.version, type: pkg.type, main: pkg.main, bin: pkg.bin });
for (const file of ['index.js', 'bin/cli.mjs', 'src/index.ts']) {
console.log(file, fs.existsSync(path.join(root, file)));
}
NODE
node -e "import('@notionhq/notion-mcp-server')"
Actual behavior
The package contains bin/cli.mjs and source files, but not index.js. The root import fails with:
ERR_MODULE_NOT_FOUND
Cannot find package '.../node_modules/@notionhq/notion-mcp-server/index.js'
Expected behavior
The package root should either import successfully, or main should be removed if this package is intended to be CLI-only.
Notes
The npm latest dist-tag currently resolves to 2.2.1. The current main branch package.json is version 2.3.1 and still contains main: "index.js".
Environment used to reproduce: macOS, Node v24.10.0, npm 11.6.0.
Summary
@notionhq/notion-mcp-server@2.2.1publishesmain: "index.js"inpackage.json, but the npm package does not includeindex.js. Importing the package root fails before any Notion API configuration is involved.The CLI entrypoint exists at
bin/cli.mjs, so this looks like a stale packagemainfield or a missing build artifact.Reproduction
Actual behavior
The package contains
bin/cli.mjsand source files, but notindex.js. The root import fails with:Expected behavior
The package root should either import successfully, or
mainshould be removed if this package is intended to be CLI-only.Notes
The npm
latestdist-tag currently resolves to2.2.1. The currentmainbranch package.json is version2.3.1and still containsmain: "index.js".Environment used to reproduce: macOS, Node v24.10.0, npm 11.6.0.