How to connect npm to Claude
Add the Firecrawl connector to Claude once and it can call the npm API and every other provider in Firecrawl Alexandria, with no npm integration code.
To connect npm to Claude, add the Firecrawl connector to Claude, sign in on a Firecrawl team with Alexandria enabled, and ask for npm data in plain language. The connection works in Claude on the web, Claude Desktop and Cowork, and you set it up once.
Claude uses npm as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for npm.
Claude is Anthropic's AI assistant. Connectors give it tools from other services, and the Firecrawl connector adds web search, scraping and every data provider in Firecrawl Alexandria.
How do I connect npm to Claude?
Add the Firecrawl connector
Open the Firecrawl connector in Claude's connector directory and select Connect to Claude. In Claude Desktop you can also go to Customize, then Connectors, and search for Firecrawl.

Connect your Firecrawl account
Claude opens Firecrawl in your browser. Sign in, choose a team with Alexandria enabled, and approve access. No account yet? You can create one for free in the same flow.

Turn on Firecrawl in a chat
In a new conversation, open the + menu, go to Connectors and switch on Firecrawl.

Ask Claude for the data
Ask in plain language and mention npm or Firecrawl Alexandria. Claude finds the npm capability that fits, checks its inputs and runs it. For example:
Use Firecrawl to find the first 10 nondeprecated npm packages matching keywords:cli, with licenses and weekly download counts.
What can Claude do with npm?
npm, the JavaScript package registry: full-text and typeahead package search, package documents with dist-tags and version history, per-version dependencies and tarballs, download counts (totals, daily series, per version), dependents and packages by user or organization.
Claude can run any of npm's 9 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.
- Get download range: Daily download counts for one package over a period (`api.npmjs.org/downloads/range/{period}/{name}`): one row per day plus the period total. Costs 5 Firecrawl credits per call.
- Get downloads: Download counts for one or more packages over a period from npm's downloads API (`api.npmjs.org/downloads/point/{period}/{names}`). Unscoped names are fetched in one bulk request; scoped names (`@scope/name`) one request each, as the API requires. A package the API does not know is reported with null counts when several are asked, and as `not_found` when it is the only one. Costs 5 Firecrawl credits per call.
- Get package: One package's registry document (`registry.npmjs.org/{name}`): identity, description, license, homepage, repository and bug tracker, keywords, author and maintainers, every dist-tag, the latest version and its publish time, creation and last-modified times, the version count and how many versions are deprecated. Optionally every version with publish time, license and deprecation notice, and the README. Costs 5 Firecrawl credits per call.
- Get package version: One published version (or dist-tag) of a package from the registry (`registry.npmjs.org/{name}/{version}`): description, license, deprecation notice, entry points, engines, runtime/dev/peer/optional dependencies with their ranges, install-script flag, tarball URL with shasum, integrity, file count and unpacked size, publisher and git commit. Costs 5 Firecrawl credits per call.
- Get version downloads: Last-week download counts per published version of one package (`api.npmjs.org/versions/{name}/last-week`, the only period npm serves), sorted by downloads descending, with the total. An unknown package is `not_found` (checked against the registry, because the API answers an empty map for both unknown packages and packages with no downloads). Costs 5 Firecrawl credits per call.
- List dependents: Packages that depend on a package, most recently published first, from npmjs.com's dependents listing (`/browse/depended/{name}?offset=`): 36 per page with latest version, description, publisher, maintainers, dist-tags and publish time. `cursor` is the offset of the next page. An unknown package is `not_found` (checked against the registry, because the listing answers an empty page for both unknown packages and packages without dependents). Served from a public cache of up to 4 hours. Costs 5 Firecrawl credits per call.
- List owner packages: Packages maintained by a user (`npmjs.com/~{user}`) or owned by an organization (`npmjs.com/org/{org}`): the owner record (type, name, full name or GitHub handle, creation time), the total and one page of 25 packages with latest version, description, publisher, maintainers, dist-tags, publish, creation and update times and npm's high-impact flag. `page` is 0-based; the site's pagination reports whether a next page exists. Served from a public cache of up to 4 hours. Costs 5 Firecrawl credits per call.
- Search packages: Full-text package search on the npm registry (`registry.npmjs.org/-/v1/search`): every hit with its latest version, description, keywords, license, publisher and maintainers, publish date, links, weekly and monthly downloads, dependents count and npm's quality/popularity/maintenance score. Supports the registry's query qualifiers (`keywords:cli`, `author:sindresorhus`, `scope:types`, `not:deprecated`, `is:unstable`). Pages of `size` hits; `cursor` is the offset of the next page. Costs 5 Firecrawl credits per call.
- Suggest packages: Typeahead suggestions from npmjs.com (`/search/suggestions?q=`): the handful of packages the site proposes for a prefix, each with latest version, description, publisher, publish date, weekly/monthly downloads and dependents count. Costs 5 Firecrawl credits per call.
What should I ask Claude?
Name npm or Firecrawl Alexandria in the prompt so Claude reaches for it. Each example opens in Claude with the prompt filled in.
- Use Firecrawl to find the first 10 nondeprecated npm packages matching keywords:cli, with licenses and weekly download counts.
- Use Firecrawl to show Express’s npm dist-tags, latest version, maintainers and repository link.
- Use Firecrawl to inspect the latest @types/express package version for Node engine requirements, dependencies and tarball integrity.
- Use Firecrawl to compare last-week npm download counts for express, fastify and koa.
Troubleshooting
Why doesn't Claude use npm?
The connector has to be on in each conversation. Open the + menu, go to Connectors and check that Firecrawl is switched on, then ask again and name npm or Firecrawl Alexandria in the prompt.
Claude says it can't reach the Firecrawl server. What should I do?
Open Customize, then Connectors, disconnect Firecrawl and connect it again. On a Team or Enterprise plan, an owner has to allow the connector before members can add it.
Why does Claude say npm isn't available?
Alexandria needs a Firecrawl team with Alexandria enabled. Reconnect Firecrawl and pick that team on the consent screen.
Use npm in other AI apps
The same Firecrawl account reaches npm from other AI apps. Pick one for its setup steps:
Other data providers you can connect to Claude
Frequently Asked Questions
What is Firecrawl?
Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl connector brings those tools into Claude, along with every data provider in Firecrawl Alexandria.
What is Firecrawl Alexandria?
Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, npm among them. Each provider returns structured data through documented capabilities. Claude finds the capability that fits your question and calls it through the Firecrawl connector, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.
Is there a npm MCP server for Claude?
Claude reaches npm through Firecrawl's hosted MCP server, which serves npm and every other Alexandria provider as tools. Add the Firecrawl connector once and you don't install or host a separate MCP server for npm.
What does connecting npm to Claude unlock?
Claude can run all 9 of npm's capabilities, including Get download range, Get downloads and Get package, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to find the first 10 nondeprecated npm packages matching keywords:cli, with licenses and weekly download counts." In the same conversation, Claude can combine npm with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.
Do I need my own npm account or API key to use it in Claude?
No. Claude calls npm through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate npm account or API key.
How much does it cost to use npm in Claude?
Each npm call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to Claude, and finding the right capability is free.
Can Claude use other providers besides npm?
Yes. The same Firecrawl connector reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.
Can I use npm in other AI apps?
Yes. Connect Firecrawl to ChatGPT, Cursor, Grok Bot, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same npm capabilities are available there. Keyless connections don't include Alexandria.