Npm MCP server
{
"mcpServers": {
"trendsapi-npm": {
"type": "http",
"url": "https://npm.api.trendsapi.ai/mcp"
}
}
}{
"mcpServers": {
"trendsapi-npm": {
"type": "http",
"url": "https://npm.api.trendsapi.ai/mcp"
}
}
}{
"mcpServers": {
"trendsapi-npm": {
"type": "http",
"url": "https://npm.api.trendsapi.ai/mcp"
}
}
}{
"servers": {
"trendsapi-npm": {
"type": "http",
"url": "https://npm.api.trendsapi.ai/mcp"
}
}
}{
"mcpServers": {
"trendsapi-npm": {
"type": "http",
"url": "https://npm.api.trendsapi.ai/mcp"
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsonversion 1.0.1
What it does
Exposes npm package download trend data via the Trends API, returning normalized 0-100 interest scores and growth metrics for specific package names over time. Intended for developers who want to query historical download trends and adoption growth for npm packages programmatically.
- Retrieve a normalized time-series history of npm package downloads to observe how interest in a package has changed over time.
- Calculate percentage growth for an npm package over configurable windows such as 3M, 12M, or YTD to assess adoption trajectory.
- Compare download trend data for multiple packages asynchronously to evaluate relative popularity.
Tools this server exposes
| Tool | Does |
|---|---|
| get_time_series | Returns a list of dated 0-100 indexed data points representing normalized npm download interest for a given package name. |
| get_growth | Returns percentage growth and direction for a package over one or more specified time windows. |
| get_top_trends | Returns top trending packages or keywords for a given type on the specified source. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.