npm-trends-mcp
npm-trends-mcp
Datos de tendencias de paquetes npm para asistentes de IA Sigue el conteo semanal de descargas de cualquier paquete npm. Las tendencias de descarga de paquetes revelan qué bibliotecas y frameworks de JavaScript están adoptando los desarrolladores, cuáles están perdiendo terreno y hacia dónde se dirige el ecosistema.
Documentación completa y demo en vivo: https://trendsmcp.ai/npm-trends
Parte de Trends MCP - el servidor MCP para datos de tendencias en vivo de más de 12 fuentes. Ver el repositorio principal: https://github.com/trendsmcp/trends-mcp
Comienza en 2 pasos
Paso 1: Obtén tu clave API gratuita en trendsmcp.ai 100 solicitudes/día, no se requiere tarjeta de crédito.
Paso 2: Añádelo a tu cliente de IA (reemplaza YOUR_API_KEY):
Cursor / Windsurf / Cline (~/.cursor/mcp.json o equivalente)
{
"mcpServers": {
"trends-mcp": {
"url": "https://api.trendsmcp.ai/mcp",
"transport": "http",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}VS Code / GitHub Copilot (.vscode/mcp.json)
{
"servers": {
"trends-mcp": {
"type": "http",
"url": "https://api.trendsmcp.ai/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}Claude Desktop (claude_desktop_config.json)
Usuario → Configuración → Desarrollador → Editar configuración — añadir dentro de mcpServers
{
"mcpServers": {
"trends-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.trendsmcp.ai/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer YOUR_API_KEY"
}
}
}
}Claude.ai (navegador) Configuración -> Conectores -> Añadir conector personalizado:
https://api.trendsmcp.ai/mcpRelated MCP server: npm-trends-mcp
Consulta de ejemplo
Después de conectar, pregúntale a tu IA:
get_trends(keyword='react', source='npm', data_mode='weekly')Herramientas disponibles
Herramienta | Qué hace |
| Serie temporal para una palabra clave en esta fuente |
| % de crecimiento en períodos de 1S, 1M, 3M, 6M, 1A |
| Lo que está en tendencia ahora mismo en esta fuente |
| Temas principales clasificados por volumen |
Preguntas frecuentes
¿Qué datos de npm devuelve Trends MCP?
Conteos semanales de descargas para cualquier paquete npm, normalizados a una escala 0-100, más el volumen de descargas en bruto, tasas de crecimiento en períodos estándar (7D, 1M, 3M, 1A) y una serie temporal histórica que se remonta hasta 5 años.
¿Cómo consulto un paquete específico?
Usa el nombre exacto del paquete npm - por ejemplo 'react', 'lodash', 'express' o '@anthropic-ai/sdk'. Los paquetes con ámbito usan el formato @org/paquete.
¿Puedo comparar múltiples paquetes?
Sí. Usa get_growth con nombres de paquetes separados por comas o llama a get_trends para cada paquete y compara las series normalizadas. Útil para comparaciones de frameworks como React vs Vue vs Svelte.
¿Por qué son útiles los datos de npm para la investigación de inversiones?
Las tendencias de descarga de npm son un indicador adelantado de la adopción en el ecosistema de desarrolladores. Una biblioteca que crece rápidamente en descargas a menudo precede a una adopción comercial más amplia de la plataforma o framework subyacente.
¿Cómo se normalizan los datos de descarga de npm?
Los conteos semanales de descargas en bruto se normalizan a una escala 0-100 en relación con el pico histórico del propio paquete. Esto permite comparar la velocidad de adopción entre paquetes con volúmenes de descarga absolutos muy diferentes.
Todas las fuentes de datos
Trends MCP cubre más de 12 fuentes en una conexión: Google Search, YouTube, TikTok, Reddit, Amazon, Wikipedia, Sentimiento de noticias, Tráfico web, Descargas de aplicaciones, Steam, npm y más.
Explorar todas: https://trendsmcp.ai/data-sources
También funciona como cliente Python
La misma clave API funciona directamente en Python - no se necesita un host MCP.
pip install npm-trends-mcpimport os
from npm_trends_mcp import TrendsMcpClient, SOURCE
client = TrendsMcpClient(api_key=os.environ["TRENDSMCP_API_KEY"])
series = client.get_trends(source=SOURCE, keyword="your keyword")
growth = client.get_growth(source=SOURCE, keyword="your keyword", percent_growth=["1M", "3M", "12M"])
top = client.get_top_trends(type="Npm", limit=10)Documentación completa de Python: trendsmcp.ai/docs
Licencia
MIT © Trends MCP
Available Tools
3 toolsget_growthARead-onlyIdempotentInspect
Point-to-point growth for a keyword on one or more sources. Each window is a preset string (12M, 3M, YTD, and the other listed periods). Values are on a 0-100 scale, plus absolute volume when available. Prefer this over get_time_series for growth questions. app downloads and app rankings are keyword sources (Android bundle ID). They are not the App Store / Google Play live boards on get_top_trends. If the request is rate limited or the monthly quota is used up, tell the user their plan limit is reached.
Inputs: source (required), keyword (required), percent_growth. Returns: result
get_time_seriesARead-onlyIdempotentInspect
Full historical series for one keyword and one source (0-100 values, plus volume when available). Use for charting or custom math. Not for live 'what's trending now' boards (use get_top_trends). For most growth questions, use get_growth. If the request is rate limited or the monthly quota is used up, tell the user their plan limit is reached.
Inputs: source (required), keyword (required). Returns: result
get_top_trendsARead-onlyIdempotentInspect
Live top-trending board for exactly one feed type. No keyword. For 'Amazon Best Sellers by Category', 'Google Trends by Category', 'Top Websites', and 'Substack by Category', always pass category. Default sort is current rank. Use sort='rank_change' for climbers vs a prior snapshot (window 1d, 3d, 7d, 14d, or 30d). App Store Top Free, App Store Top Paid, and Google Play are live store boards, not keyword lookups. For an app's history use get_growth or get_time_series with source app downloads or app rankings and an Android bundle ID. Do not use get_time_series for live boards. If the request is rate limited or the monthly quota is used up, tell the user their plan limit is reached.
Inputs: type (required), sort, limit, offset, +2 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The tools are largely distinct: get_top_trends targets live boards, while get_growth and get_time_series both handle historical keyword data and could be confused. However, the descriptions explicitly separate 'point-to-point growth' from 'full historical series' and tell agents which to prefer, so the boundary is workable.
All three tools follow a clean get_<noun> pattern: get_growth, get_top_trends, get_time_series. There is no mixing of styles or inconsistent verbs, making the naming predictable and easy to navigate.
Three tools is a focused, sensible scope for a trends data server. Each tool covers a distinct core user need: current top boards, point-to-point growth, and full time-series data, so each earns its place.
The set covers the main trend-related workflows: live rankings, growth comparisons, and historical charting data. Minor gaps exist, such as no explicit endpoint for listing available feeds, categories, or discovering keywords, but agents can work around those with known values and guidance in the descriptions.
Maintenance
Related MCP Connectors
npm package download trends and adoption growth over time. Free key at trendsapi.ai
Package intelligence for AI agents across npm, PyPI, crates.io and deps.dev. No API keys.
Package intelligence for AI agents across npm, PyPI, crates.io and deps.dev. No API keys.
Provide AI-powered real-time analysis and intelligence on NPM packages, including security, depend…
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides comprehensive contextual information about npm packages including README files, versions, dependencies, download statistics, and search functionality. Enables users to explore and analyze npm packages through natural language queries with intelligent GitHub README fetching and branch fallback.9MIT
- AlicenseNot gradedqualityCmaintenanceProvides weekly download counts and trend data for npm packages, enabling comparison of adoption velocity across JavaScript libraries.MIT
- AlicenseAqualityDmaintenanceEnables AI coding agents to search the npm registry and retrieve package metadata, READMEs, download stats, GitHub details, and usage snippets via the Model Context Protocol.914 npmMIT
- AlicenseBqualityDmaintenanceEnables querying NPM package download statistics, metadata, and dependency information through natural language.2MIT