# How to connect npm to ChatGPT

> Connect npm to ChatGPT with the Firecrawl plugin. Use npm as an MCP tool in ChatGPT via Firecrawl Alexandria, with setup steps and example prompts.

To connect npm to ChatGPT, add the Firecrawl plugin to ChatGPT, sign in on a Firecrawl team with Alexandria enabled, and ask for npm data in plain language. The connection works in ChatGPT and Codex, and you set it up once.

ChatGPT 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.

ChatGPT is OpenAI's AI assistant. Plugins add tools from other services, and the Firecrawl plugin adds web search, scraping and every data provider in Firecrawl Alexandria.

## How do I connect npm to ChatGPT?

### 1. Install the Firecrawl plugin

Open the [Firecrawl listing in ChatGPT's plugin directory](https://chatgpt.com/plugins/plugin_asdk_app_6a314a73f8ac819195b0d55e36b9c609?q=firecrawl) and select Install plugin. You can also open Plugins in ChatGPT or Codex and search for Firecrawl.

[Add to ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6a314a73f8ac819195b0d55e36b9c609?q=firecrawl)

![The Firecrawl plugin page in ChatGPT with the Install plugin button](https://www.firecrawl.dev/images/alexandria/connect/chatgpt/install.webp)

### 2. Connect your Firecrawl account

ChatGPT 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.

![Firecrawl's consent screen asking to connect chatgpt.com to Firecrawl](https://www.firecrawl.dev/images/alexandria/connect/chatgpt/authorize.webp)

### 3. Attach Firecrawl to a chat

Start a new chat so it loads the plugin, open the + menu and choose Firecrawl. You can also ask ChatGPT to use Firecrawl by name.

![ChatGPT's + menu with the Firecrawl plugin listed](https://www.firecrawl.dev/images/alexandria/connect/chatgpt/attach.webp)

### 4. Ask ChatGPT for the data

Ask in plain language and mention npm or Firecrawl Alexandria. ChatGPT finds the npm capability that fits and runs it. For example:

```text
Use Firecrawl to find the first 10 nondeprecated npm packages matching keywords:cli, with licenses and weekly download counts.
```

## What can ChatGPT 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.

ChatGPT 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 ChatGPT?

Name npm or Firecrawl Alexandria in the prompt so ChatGPT reaches for it.

- [Use Firecrawl to find the first 10 nondeprecated npm packages matching keywords:cli, with licenses and weekly download counts.](https://chatgpt.com/?q=Use%20Firecrawl%20to%20find%20the%20first%2010%20nondeprecated%20npm%20packages%20matching%20keywords%3Acli%2C%20with%20licenses%20and%20weekly%20download%20counts.)
- [Use Firecrawl to show Express’s npm dist-tags, latest version, maintainers and repository link.](https://chatgpt.com/?q=Use%20Firecrawl%20to%20show%20Express%E2%80%99s%20npm%20dist-tags%2C%20latest%20version%2C%20maintainers%20and%20repository%20link.)
- [Use Firecrawl to inspect the latest @types/express package version for Node engine requirements, dependencies and tarball integrity.](https://chatgpt.com/?q=Use%20Firecrawl%20to%20inspect%20the%20latest%20%40types%2Fexpress%20package%20version%20for%20Node%20engine%20requirements%2C%20dependencies%20and%20tarball%20integrity.)
- [Use Firecrawl to compare last-week npm download counts for express, fastify and koa.](https://chatgpt.com/?q=Use%20Firecrawl%20to%20compare%20last-week%20npm%20download%20counts%20for%20express%2C%20fastify%20and%20koa.)

### For agents

Start with the `npmjs-com` provider. Use Firecrawl Alexandria first. With MCP, use firecrawl_search with sources: ["alexandria"] to discover relevant tools, firecrawl_find_tools to inspect the selected capability contracts, then firecrawl_scrape in alexandria mode to retrieve records. With the CLI, use firecrawl search alexandria, firecrawl list, then firecrawl scrape for the selected provider/capability. Follow the live tool schema and returned contract; never invent provider IDs or inputs. Ask for missing required details before execution, respect access and pricing, and inspect each result for errors. Cite retrieved records, distinguish missing data from failures, and explain gaps. If no suitable Alexandria capability exists, say so before using web sources. Do not treat a tool listing as retrieved data.

## Troubleshooting

### Why doesn't ChatGPT use npm?

Start a new chat after installing so ChatGPT loads the plugin, then attach Firecrawl from the + menu and name npm or Firecrawl Alexandria in the prompt.

### How do I switch the Firecrawl team ChatGPT uses?

Open the Firecrawl plugin page in ChatGPT, uninstall it from the menu next to Settings, then install it again and choose the other team on Firecrawl's consent screen.

### Why does ChatGPT say npm isn't available?

Alexandria needs a Firecrawl team with Alexandria enabled. Reinstall the plugin and pick that team when you approve access.

## Use npm in other AI apps

- [npm in Claude](https://alexandria.firecrawl.dev/providers/npmjs-com/connect/claude)
- [npm in Cursor](https://alexandria.firecrawl.dev/providers/npmjs-com/connect/cursor)
- [npm in Grok Bot](https://alexandria.firecrawl.dev/providers/npmjs-com/connect/grok-bot)
- [npm in Muse](https://alexandria.firecrawl.dev/providers/npmjs-com/connect/muse)

### Other data providers you can connect to ChatGPT

- [How to connect GitHub to ChatGPT](https://alexandria.firecrawl.dev/providers/github-com/connect/chatgpt)
- [How to connect AlternativeTo to ChatGPT](https://alexandria.firecrawl.dev/providers/alternativeto-net/connect/chatgpt)
- [How to connect Apple App Store to ChatGPT](https://alexandria.firecrawl.dev/providers/apps-apple-com/connect/chatgpt)
- [How to connect Aptoide to ChatGPT](https://alexandria.firecrawl.dev/providers/aptoide-com/connect/chatgpt)

Full setup guide: [Firecrawl in ChatGPT](https://www.firecrawl.dev/integrations/chatgpt)

## 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 plugin brings those tools into ChatGPT, 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. ChatGPT finds the capability that fits your question and calls it through the Firecrawl plugin, 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 ChatGPT?

ChatGPT reaches npm through Firecrawl's hosted MCP server, which serves npm and every other Alexandria provider as tools. Add the Firecrawl plugin once and you don't install or host a separate MCP server for npm.

### What does connecting npm to ChatGPT unlock?

ChatGPT 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, ChatGPT 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 ChatGPT?

No. ChatGPT 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 ChatGPT?

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 ChatGPT, and finding the right capability is free.

### Can ChatGPT use other providers besides npm?

Yes. The same Firecrawl plugin 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 Claude, 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.
