MEKA
MEKA // AI 에이전트 · MCP
2026-11-30·약 7분 소요

Codex·Claude Code·Cursor에 실시간 Google Trends 연결하기 (MCP 실전 가이드)

AI 코딩 에이전트에게 시장 수요를 물어보면 오래된 학습 데이터로 검색량을 추측하거나 pytrends 스크립트를 짜다 HTTP 429 무한 루프에 빠집니다. MCP로 실시간 Google Trends를 연결하는 3가지 방법과 실전 설정을 정리했습니다.

Codex, Claude Code, and Cursor connected to live Google Trends via gtfa-mcp

프로토콜

MCP stdio / HTTP

검증된 도구

직접 trends_* 4종

로컬 비용

$0 무제한

클라우드 폴백

mcp.apify.com

핵심 요약 // TL;DR

  • 전용 MCP 도구가 없으면 AI 코딩 에이전트는 과거 학습 데이터로 검색량을 지어내거나 아카이브된 pytrends 코드를 작성해 HTTP 429 재시도로 토큰을 낭비합니다.
  • meka-im/google-trends-for-agent(gtfa-mcp)를 연결하면 로컬 stdio($0) 또는 Streamable HTTP로 실측 검증된 4개 도구(trends_ask, trends_snapshot, trends_compare, trends_now)를 바로 쓸 수 있습니다.
  • Codex CLI는 codex mcp add google-trends -- npx -y -p google-trends-for-agent gtfa-mcp 한 줄로, Claude Code와 Cursor는 표준 .mcp.json / .cursor/mcp.json으로 30초 만에 설정됩니다.

01 // 에이전트가 겪는 실제 문제

왜 AI 코딩 에이전트는 검색량을 지어내거나 pytrends 429 루프에 빠질까?

Codex, Claude Code, Cursor에 간단한 리서치 질문을 던져 보세요: "최근 3개월 미국에서 Sora, Runway, Kling의 검색 수요를 비교하고 지금 급상승하는 세부 키워드를 알려줘." 보통 두 가지 중 하나가 벌어집니다.

기억에만 의존하면 몇 달 전 학습 데이터에서 그럴듯한 숫자를 지어냅니다. 반대로 직접 조회하겠다며 아카이브된 GeneralMills/pytrends 파이썬 스크립트를 작성하면 첫 요청부터 HTTP 429에 막혀 time.sleep()과 쿠키 패치를 시도하며 수천 토큰을 허비합니다.

에이전트에게 필요한 것은 취약한 크롤러 작성이 아니라, 보정된 일일 검색량과 명시적인 RATE_LIMITED 오류 코드를 구조화된 JSON으로 반환하는 표준 MCP 도구입니다.

FIG 01 // AGENT DEMAND RESEARCH ARCHITECTURE임시 pytrends 429 루프 vs 표준 gtfa-mcp 결정적 호출 구조
WITHOUT MCP // GUESSING OR PYTRENDS LOOPCodex / Claude / Cursor"Check US demand for Sora"writes ad-hoc pytrends script→HTTP 429 Retry LoopBurns tokens debugging cookiesor falls back to stale training data→Unverified / Hallucinated• Invented monthly volumes• No live breakout signalWITH GTFA-MCP // STANDARD STDIO OR HTTP MCPAny MCP HostCodex · Claude CodeCursor · VS Code · WindsurfJSON-RPC tools/call→Local stdio: gtfa-mcp ($0)4 direct trends_* tools · local IPCloud MCP: mcp.apify.comZero install · residential proxy→Grounded Agent Output✓ Calibrated dailySearches✓ Rising queries & regions✓ Explicit RATE_LIMITED code
MCP가 없으면 에이전트가 429 디버깅이나 추측에 갇힙니다. google-trends-for-agent(gtfa-mcp)를 붙이면 모든 MCP 호스트에서 실시간 보정 수요를 바로 조회합니다.

03 // 1단계 · 30초 클라이언트 설정

검증된 4개 MCP 도구를 Codex·Claude Code·Cursor에 바로 연결하기

google-trends-for-agent@0.2.45에서 실제 MCP stdio 핸드셰이크(initialize → tools/list)를 검증한 결과 trends_ask, trends_snapshot, trends_compare, trends_now 4개 도구가 즉시 노출됩니다(MEKA의 공개 59개 Google Ads 앵커 내장).

표준 MCP stdio 및 Streamable HTTP를 따르므로 동일한 MIT npm 패키지가 Codex CLI, Claude Code / Desktop, Cursor, VS Code, Windsurf 모두에서 동작합니다.

FIG 02 // LIVE-VERIFIED MCP TOOLSgtfa-mcp@0.2.45에서 실측 검증된 4개 직접 MCP 도구
MCP TOOLS/LIST // VERIFIED ON GTFA-MCP@0.2.454 DIRECT TOOLStrends_snapshotSingle-term curve + calibrated daily search volume + rising queriesPrompt: "How big is gemini 4 carbon in the US right now?"trends_compareCompare 2–5 competitors on one shared scale (calibrate: true)Prompt: "Compare Sora, Runway, and Kling over the last 3 months"trends_askFast momentum verdict + Popular/Rising tables + regional breakdownPrompt: "Validate whether these 5 SaaS keywords are actually growing"trends_nowLive Trending Now feed across up to 30 countries (4h–168h)Prompt: "What tech topics are trending in the US and Japan today?"
npx -y -p google-trends-for-agent@0.2.45 gtfa-mcp에 JSON-RPC initialize + tools/list를 직접 호출해 검증했습니다.
SHELL & JSON // CODEX CLI · CLAUDE CODE · CURSOR 설정
# 1. OpenAI Codex CLI (local $0 stdio — 4 direct trends_* tools):
codex mcp add google-trends -- npx -y -p google-trends-for-agent gtfa-mcp

# 2. Claude Code (remote zero-install Streamable HTTP via Apify OAuth):
claude mcp add --transport http google-trends-apify \
  "https://mcp.apify.com?tools=meka.im/google-trends-for-agent"

# 3. Cursor / VS Code / Claude Desktop (.cursor/mcp.json or .mcp.json):
# {
#   "mcpServers": {
#     "google-trends": {
#       "command": "npx",
#       "args": ["-y", "-p", "google-trends-for-agent", "gtfa-mcp"]
#     }
#   }
# }

04 // 2단계 · 같은 프롬프트 Before → After

MCP를 붙였을 때 에이전트 실행 흐름이 어떻게 달라지나

40줄짜리 깨지는 파이썬 스크립트를 쓰다 첫 호출에서 멈추는 대신, 호스트가 trends_compare와 trends_snapshot을 직접 호출해 보정된 일일 검색량과 급상승 검색어 JSON을 한 번에 받습니다.

변경 전 // MCP 없음 (취약한 pytrends 작성 후 429 루프)
# Agent tries to answer "Compare Sora, Runway, Kling in the US"
# 1. Installs archived pytrends
# 2. Runs TrendReq().build_payload(["Sora", "Runway", "Kling"])
# 3. Hits: TooManyRequestsError: Google returned a response with code 429
# 4. Wastes 4 tool turns adding time.sleep() and fake headers, then guesses numbers.
변경 후 // gtfa-mcp stdio (표준 JSON-RPC 도구 호출 + 보정 일일 검색량)
// Host calls MCP tool: trends_compare
{
  "keywords": ["Sora", "Runway", "Kling"],
  "geo": "US",
  "time": "today 3-m",
  "calibrate": true
}

// Also verify local MCP server health anytime from your terminal:
// npx -y -p google-trends-for-agent gtfa doctor --json

팁: npm install -g google-trends-for-agent를 한 번 설치해 두고 gtfa-mcp를 직접 지정하면 npx 지연 없이 즉시 실행됩니다.

05 // 3단계 · 로컬 429 우회, IDE OAuth 해결 및 선택 가이드

클라우드 주거용 프록시 폴백, Cursor OAuth 해결 및 최종 선택법

매일 쓰다 보면 두 가지 실전 변수를 만나게 됩니다. 첫째, 회사 VPN이나 클라우드 환경에서 429가 뜰 때는 APIFY_TOKEN과 --egress actor-public을 붙이거나 원격 Streamable HTTP(https://mcp.apify.com?tools=meka.im/google-trends-for-agent, 동일한 MIT Apify Actor 기반·월 $5 무료 크레딧)로 전환하세요.

둘째, Cursor나 VS Code 일부 버전에서 원격 MCP OAuth 창이 반복된다면 사용자 수준 MCP 설정에 Authorization: Bearer <APIFY_TOKEN> 헤더를 명시하거나(git 커밋 금지) 로컬 stdio 모드로 전환하면 바로 풀립니다.

  • Node.js 20+가 설치된 개인 PC라면 로컬 gtfa-mcp($0 무제한, 4개 trends_* 도구 직결)가 가장 빠릅니다.
  • 웹 에이전트나 VPN 환경에서 429가 뜬다면 --egress actor-public 또는 https://mcp.apify.com?tools=meka.im/google-trends-for-agent를 연결하세요.
  • 급상승 경쟁사의 실제 웹사이트 방문수까지 교차 검증하려면 MEKA의 Similarweb Scraper를 함께 쓰세요.

CLI·파이썬 마이그레이션과 앵커 보정 원리도 함께 보기

pytrends 429·404 오류 해결 및 2026 대안 비교 또는 Google Trends 실제 일일 검색량 구하기도 확인해 보세요.

JSON // 로컬 STDIO + 클라우드 주거용 프록시 폴백 설정
{
  "mcpServers": {
    "google-trends": {
      "command": "npx",
      "args": ["-y", "-p", "google-trends-for-agent", "gtfa-mcp", "--egress", "actor-public"],
      "env": { "APIFY_TOKEN": "<your-apify-token>" }
    }
  }
}

FAQ

자주 묻는 질문 (FAQ)

google-trends-for-agent MCP 서버는 어떤 도구를 제공하나요?
로컬 stdio로 gtfa-mcp를 실행하면 trends_ask(추세 판정·인기/급상승어·지역별), trends_snapshot(보정 일일 검색량과 시계열), trends_compare(2~5개 키워드 비교 및 앵커 보정), trends_now(최대 30개국 실시간 급상승) 4가지 도구가 노출됩니다.
Codex, Claude Code, Cursor에서 gtfa-mcp를 무료로 쓸 수 있나요?
네. MIT 오픈소스이며 로컬 머신 IP나 본인 HTTPS_PROXY에서는 $0 무제한입니다. 회사 VPN이나 클라우드 IP에서 429가 발생할 때만 --egress actor-public 또는 mcp.apify.com(Apify 월 $5 무료 크레딧으로 약 3,000~7,000회)으로 전환하면 됩니다.
Cursor나 VS Code에서 원격 MCP OAuth 인증이 반복될 때는 어떻게 하나요?
일부 IDE 버전에서 https://mcp.apify.com의 OAuth가 무한 반복될 수 있습니다. 사용자 수준 MCP 설정에 Authorization: Bearer <APIFY_TOKEN> 헤더를 직접 지정하거나(git 커밋 금지), 로컬 stdio gtfa-mcp를 사용하면 바로 해결됩니다.