Skip to main content
Glama

npm-trends-mcp

npm Trends MCP Works with Claude Works with Cursor

AIアシスタント向けnpmパッケージトレンドデータ 任意のnpmパッケージの週間ダウンロード数を追跡します。パッケージのダウンロードトレンドを見れば、どのJavaScriptライブラリやフレームワークが開発者に採用されているか、どれが衰退しているか、エコシステムの方向性がわかります。

完全なドキュメントとライブデモ: https://trendsmcp.ai/npm-trends

Trends MCP の一部 – 12以上のソースからライブトレンドデータを提供するMCPサーバーです。 メインリポジトリ: https://github.com/trendsmcp/trends-mcp


2ステップで始める

ステップ1: trendsmcp.ai で無料のAPIキーを取得 1日100リクエスト、クレジットカード不要。

ステップ2: AIクライアントに追加(YOUR_API_KEY を置き換えてください):

+ Cursorに追加(ワンクリック)

Cursor / Windsurf / Cline   (~/.cursor/mcp.json または同等)

{
  "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) ユーザー → 設定 → 開発者 → 設定を編集 — 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(ブラウザ)   設定 → コネクタ → カスタムコネクタを追加:

https://api.trendsmcp.ai/mcp

Related MCP server: npm-trends-mcp

クエリ例

接続後、AIに次のように尋ねてください:

get_trends(keyword='react', source='npm', data_mode='weekly')

利用可能なツール

ツール

機能

get_trends

このソースにおけるキーワードの時系列データ

get_growth

1週間、1ヶ月、3ヶ月、6ヶ月、1年単位の成長率

get_top_trends

このソースで現在トレンドのトピック

get_ranked_trends

ボリューム順にランク付けされたトップトピック


FAQ

任意のnpmパッケージの週間ダウンロード数を、0〜100のスケールに正規化した値、生のダウンロードボリューム、標準期間(7日、1ヶ月、3ヶ月、1年)の成長率、および最大5年分の過去の時系列を返します。

特定のパッケージをクエリするにはどうすればいいですか?

正確なnpmパッケージ名を使用してください — 例: 'react', 'lodash', 'express', '@anthropic-ai/sdk'。スコープ付きパッケージは @org/package 形式で指定します。

複数のパッケージを比較できますか?

はい。カンマ区切りのパッケージ名で get_growth を使用するか、各パッケージに対して get_trends を呼び出して正規化された系列を比較してください。React vs Vue vs Svelte のようなフレームワーク比較に便利です。

投資調査においてnpmデータが役立つ理由は?

npmのダウンロードトレンドは、開発者エコシステムの採用の先行指標です。ダウンロードが急増しているライブラリは、その基盤となるプラットフォームやフレームワークの商業的な採用が広がる前兆であることが多いです。

npmダウンロードデータはどのように正規化されますか?

生の週間ダウンロード数は、パッケージ自身の過去のピークを基準に0〜100のスケールに正規化されます。これにより、絶対的なダウンロード数が大きく異なるパッケージ間でも、採用速度を比較できます。


すべてのデータソース

Trends MCPは1つの接続で12以上のソースをカバー: Google検索、YouTube、TikTok、Reddit、Amazon、Wikipedia、 ニュースセンチメント、Webトラフィック、アプリダウンロード、Steam、npmなど。

すべてを閲覧: https://trendsmcp.ai/data-sources


Pythonクライアントとしても動作

同じAPIキーがPythonで直接使用可能 — MCPホストは不要です。

pip install npm-trends-mcp
import 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)

完全なPythonドキュメント: trendsmcp.ai/docs

ライセンス

MIT © Trends MCP

Available Tools

3 tools
get_growthA
Read-onlyIdempotent
Inspect

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_seriesA
Read-onlyIdempotent
Inspect

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 3 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides 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.
      9
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      9
      14 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables querying NPM package download statistics, metadata, and dependency information through natural language.
      2
      MIT