trendspyg について
trendspygは、現在のトレンド、キーワードの関心度、関連クエリ、地域別の関心度を取得するPythonライブラリのスキルです。mcporterでMCPツールを確認し、呼び出す方法も説明します。
主な機能
- 01現在のトレンド取得
- 02キーワード関心度の推移確認
- 03関連クエリの検索
- 04地域別関心度の確認
- 05MCPツールの一覧表示と呼び出し
活用シーン
- 01現在のGoogle Trendsの確認
- 02キーワード関心度の推移の追跡
- 03地域間の検索関心度の比較
MCP 対応
trendspygのMCPサーバーを起動し、mcporterでツール一覧やスキーマを確認して呼び出す方法を示します。
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ aahl/ skills --skill trendspygインストール後、Claude Code で/trendspygを入力して読み込まれたか確認します。
詳細
trendspyg
Google Trends データを扱う無料のオープンソース Python ライブラリです。現在のトレンド、キーワードの経時的な関心度、関連クエリ、地域別の関心度を取得できます。CLI と API を備えた、メンテナンスされている pytrends の代替ライブラリです。
export UVX_TRENDSPYG='uvx --from "trendspyg[mcp]" trendspyg-mcp'
利用可能なツールの一覧
alias trendspyg-list="npx -y mcporter list --stdio '$UVX_TRENDSPYG'"
trendspyg-list --all-parameters
# Get the schema of the specified tool
trendspyg-list --json | jq '.tools[] | select(.name == "<tool_name>")'
指定したツールを呼び出す
alias trendspyg-call="npx -y mcporter call --stdio '$UVX_TRENDSPYG'"
trendspyg-call --tool <tool_name> --args '{"key":"val"}'
mcporter について
互換性を高めるには、コマンドの実行時に mcporter の代わりに npx -y mcporter を使用してください。
コメント
Markdown 対応