
npm Trends API
Weekly npm package download trends and growth rates, as an API and MCP server
- Pricing
- Freemium
- Platforms
- API, CLI
- Runs
- Remotely
- Version
- 1.0.2
- Listing updated
- 2 days ago
About npm Trends API
npm Trends API is a freemium MCP server for analytics and data. It runs as a hosted remote server, so there is nothing to install locally.
Raw npm download counts are hard to compare, because popular packages can have a hundred times the traffic of a niche one. This server rescales a package's weekly downloads to a 0-100 curve and works out growth over 3-month, 6-month, 12-month and 5-year windows, so an assistant can say whether a library is still climbing or has levelled off.
It is one of several per-source endpoints from Trends API, served at its own npm address over streamable HTTP. A Python client (trendsapi-npm) and a plain REST call, POST https://api.trendsapi.ai/api with a bearer key, return the same data. Package names are exact and case-sensitive, and scoped packages such as @tanstack/react-query work.
The service has a free tier of 100 requests a month, and the response shape matches the vendor's other sources (Google, TikTok and more), which makes cross-source comparison straightforward.
Install
Run in a terminal
claude mcp add --transport http npm https://npm.api.trendsapi.ai/mcpAdd to Settings → Connectors → Add custom connector
https://npm.api.trendsapi.ai/mcpAdd to ~/.cursor/mcp.json
{
"mcpServers": {
"npm": {
"url": "https://npm.api.trendsapi.ai/mcp"
}
}
}Add to .vscode/mcp.json
{
"servers": {
"npm": {
"type": "http",
"url": "https://npm.api.trendsapi.ai/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"npm": {
"serverUrl": "https://npm.api.trendsapi.ai/mcp"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"npm": {
"type": "http",
"url": "https://npm.api.trendsapi.ai/mcp"
}
}
}Tools this server provides (2)
Taken from the project documentation; the running server may differ.
- get_time_series
- Weekly download series for an exact package name, normalized 0-100.
- get_growth
- Growth percentages over chosen windows for a package.
What it does
- Normalized download curve
- Weekly downloads for any package rescaled to a 0-100 series.
- Built-in growth windows
- 3M, 6M, 12M and 5Y growth plus presets like YTD and custom date pairs.
- Scoped package support
- Names such as @tanstack/react-query are passed in full.
- Python and REST clients
- The same data is available from a pip package or a single POST endpoint.
- Shared response shape
- Output matches the vendor's other trend sources for easy comparison.
Good for
- Check whether a library is still growing before adopting it
- Back a technology choice with a download curve
- Track a package's adoption after a launch or conference talk
- Compare momentum across competing frameworks
Pricing
Freemium
100 free requests a month; paid plans billed annually from $192 a year
Prices change. Check trendsapi.ai before you buy.
npm Trends API FAQ
Does it handle scoped packages?
Yes. Pass the full name including the scope, for example @tanstack/react-query.
How can two packages be compared?
Make one call per package and compare the normalized values; the 0-100 scale makes that meaningful even when raw counts differ widely.
How fresh is the data?
Weekly series update as npm publishes new counts, and each response carries its own timestamp.
What does it cost to try?
The free tier allows 100 requests a month with no credit card.
Is npm Trends API free?
npm Trends API has a free plan, with paid plans for more usage or features.
How do I add npm Trends API to Claude Code?
Run this command in your terminal: claude mcp add --transport http npm https://npm.api.trendsapi.ai/mcp
What are the best alternatives to npm Trends API?
The closest alternatives to npm Trends API are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to npm Trends API

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Agent-Native Analytics
MCP serverOpen-source analytics app where an AI agent builds charts and dashboards from your data
- Remote
- Open source
- 7.7K GitHub stars
- Analytics and data