mcp-server-google-analytics
Google 애널리틱스 MCP 서버
Google Analytics 4(GA4) 데이터에 액세스하기 위한 MCP 서버 구현으로, Model Context Protocol TypeScript SDK를 사용하여 구축되었습니다.
특징
사용자 정의 가능한 차원으로 페이지 뷰 측정 항목을 가져옵니다.
시간 경과에 따른 활성 및 신규 사용자 추적
특정 이벤트와 해당 메트릭을 분석합니다.
사용자 행동 지표(세션 기간, 이탈률) 모니터링
모든 쿼리에 대해 유연한 날짜 범위 선택 가능
Related MCP server: MCP Search Analytics Server
필수 조건
Node.js 20 이상
Google 애널리틱스 4 속성
Analytics Data API가 활성화된 Google Cloud 프로젝트
적절한 권한이 있는 서비스 계정 자격 증명
설정
Google Cloud 프로젝트를 만들고 Analytics Data API를 활성화하세요.
서비스 계정을 생성하고 자격 증명 JSON 파일을 다운로드합니다.
서비스 계정에 GA4 속성에 대한 적절한 액세스 권한을 부여하세요.
환경 변수 설정:
지엑스피1
설치
Smithery를 통해 설치
Smithery를 통해 Claude Desktop용 Google Analytics Server를 자동으로 설치하는 방법:
npx -y @smithery/cli install mcp-server-google-analytics --client claude수동 설치
pnpm install mcp-server-google-analytics용법
서버 시작
pnpm startClaude Desktop의 구성
Claude Desktop 구성에 다음을 추가하세요.
{
"mcpServers": {
"google-analytics": {
"command": "npx",
"args": ["-y", "mcp-server-google-analytics"],
"env": {
"GOOGLE_CLIENT_EMAIL": "your-service-account@project.iam.gserviceaccount.com",
"GOOGLE_PRIVATE_KEY": "your-private-key",
"GA_PROPERTY_ID": "your-ga4-property-id"
}
}
}
}사용 가능한 기능
getPageViews
특정 날짜 범위에 대한 페이지 뷰 측정 항목을 가져옵니다.
{
"startDate": "2024-01-01",
"endDate": "2024-01-31",
"dimensions": ["page", "country"] // Optional
}getActiveUsers
활성 사용자 지표 가져오기:
{
"startDate": "2024-01-01",
"endDate": "2024-01-31"
}이벤트 가져오기
이벤트 메트릭 가져오기:
{
"startDate": "2024-01-01",
"endDate": "2024-01-31",
"eventName": "purchase" // Optional
}getUserBehavior
사용자 행동 지표 가져오기:
{
"startDate": "2024-01-01",
"endDate": "2024-01-31"
}보안 고려 사항
항상 중요한 자격 증명에 환경 변수를 사용하세요
적절한 CORS 설정 구현
서비스 계정 권한을 설정할 때 최소 권한 원칙을 따르세요.
정기적으로 서비스 계정 자격 증명을 순환합니다.
API 사용을 모니터링하고 필요한 경우 속도 제한을 구현합니다.
기여하다
기여를 환영합니다! 행동 강령과 풀 리퀘스트 제출 절차에 대한 자세한 내용은 기여 가이드를 참조하세요.
특허
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides an interface to access Google Analytics Data API through Model Context Protocol (MCP), allowing users to retrieve reports and realtime data from Google Analytics 4 properties.1,2097MIT
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that provides unified access to Google Analytics 4 and Google Search Console data through real-time analytics queries.2MIT
- AlicenseBqualityDmaintenanceThis project is a Google Analytics 4 (GA4) automation server implemented as a Model Context Protocol (MCP) tool. It lets AI agents query GA4 data (reports, traffic sources, demographics, etc.) and also includes a simple connection test script.71MIT
- AlicenseNot gradedqualityDmaintenanceA powerful Model Context Protocol (MCP) server that provides comprehensive Google Analytics 4 (GA4), Google Search Console (GSC), and Google Merchant Center (GMC) integration for Claude Desktop and other MCP clients.Apache 2.0
Related MCP Connectors
MCP server for interacting with the Supabase platform
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ruchernchong/mcp-server-google-analytics'
If you have feedback or need assistance with the MCP directory API, please join our Discord server