The `postinstall` script helper for handling native bindings in legacy `npm` versions
If you already use Napi, the napi mcp server is the piece that lets your assistant work with it directly. The postinstall script helper for handling native bindings in legacy npm versions.
The postinstall script helper for handling native bindings in legacy npm versions, this is a reimplementation of the [node-install][node-install] functionality from [esbuild][esbuild] for [napi-rs][napi-rs] ecosystem packages like [rollup][rollup], [@swc/core][swc-core] and [unrs-resolver][unrs-resolver].
The server ships on npm as napi-postinstall, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
Types — export declare function checkAndPreparePackage( packageNameOrPackageJson: PackageJson | string, checkVersion?: boolean, ): PromiseExample — if (isNpm()) { void checkAndPreparePackage('unrs-resolver' /* */) }Sponsors — The Sponsors tool exposed by this serverBackers — The Backers tool exposed by this serverThis sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Napi's toolset — Types, Example, Sponsors and 1 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Napi's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Types | export declare function checkAndPreparePackage( packageNameOrPackageJson: PackageJson | string, checkVersion?: boolean, ): Promise<void> |
| Example | if (isNpm()) { void checkAndPreparePackage('unrs-resolver' /* <napi-package-name> */) } |
| Sponsors | The Sponsors tool exposed by this server. |
| Backers | The Backers tool exposed by this server. |
{
"mcpServers": {
"napi": {
"command": "npx",
"args": ["-y", "napi-postinstall"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.