
pouyanafisi/gtm-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Google Tag Manager용 MCP 서버: 태그/triggers/variables를 읽고, 컨테이너를 게시하고, Claude/Gemini를 통해 감사의 변경.
개요
Google 태그 관리자 API v2에 대한 MCP 서버. GTM 계정, 컨테이너, 작업 공간, 태그, 트리거, 변수 및 버전 관리에 대한 programmatic 액세스를 제공합니다. - Node.js 18.0.0+ - Google Cloud Project with Tag Manager API 활성화 - OAuth 2.0 자격 증명 (Desktop 애플리케이션 유형) 1. Google Cloud Console 2. OAuth 2.0 credentials (Desktop application) 3. credentials JSON을 다운로드 4. gtm-mcp 디렉토리에 credentials.json으로 저장 globally 설치하면 바이너리를 직접 사용합니다. 플랫폼별 지침에 MCP SETUP.md를 참조하십시오. 토큰은 Token.json 및 자동 재 파쇄에 저장됩니다. 99 운영 가능 (95 API 운영 + 4 워크플로우 지원). 완전한 참고를 위해 OPERATIONS.md를 보십시오.
개요(AI 번역)
Google 태그 관리자 API v2에 대한 MCP 서버. GTM 계정, 컨테이너, 작업 공간, 태그, 트리거, 변수 및 버전 관리에 대한 programmatic 액세스를 제공합니다.
요구 사항
- Node.js 18.0.0 이상
- Google Cloud Project with Tag Manager API 활성화
- OAuth 2.0 credentials (데스크탑 신청 유형)
설치
npm에서 설치 (추천)
또는 로컬로 설치:
소스에서 설치
구글 클라우드 설정
- Google Cloud Console에서 태그 관리자 API 사용
- OAuth 2.0 자격 증명 (Desktop 신청)를 창조하십시오
- credentials JSON 다운로드
credentials.json] 에서gtm-mcp디렉토리 저장
구성
npm 패키지 사용
globally 설치하면 바이너리를 직접 사용합니다.
로컬로 설치된 경우, npx:
소스 설치 사용
MCP_SETUP.md] 플랫폼 별 지침을 참조하십시오.
인증
npm 패키지 사용
전역에 설치된 경우:
또는 npx:
소스 설치 사용
token.json에 저장된 토큰과 자동 회복.
운영
99 운영 가능 (95 API 운영 + 4 워크플로우 지원). 완전한 참고를 위해 OPERATIONS.md를 보십시오.
카테고리
- ** 계정**: 목록, 가져오기, 업데이트 계정
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Google Tag Manager MCP Server
MCP server for Google Tag Manager API v2. Provides programmatic access to GTM accounts, containers, workspaces, tags, triggers, variables, and version management.
Requirements
- Node.js 18.0.0+
- Google Cloud Project with Tag Manager API enabled
- OAuth 2.0 credentials (Desktop application type)
Installation
Install from npm (Recommended)
npm install -g gtm-mcp
Or install locally:
npm install gtm-mcp
Install from source
git clone https://github.com/pouyanafisi/gtm-mcp.git
cd gtm-mcp
npm install
npm run build
Google Cloud Setup
- Enable Tag Manager API in Google Cloud Console
- Create OAuth 2.0 credentials (Desktop application)
- Download credentials JSON
- Save as
credentials.jsoningtm-mcpdirectory
Configuration
Using npm package
If installed globally, use the binary directly:
{
"mcpServers": {
"gtm": {
"command": "gtm-mcp",
"env": {
"GTM_CREDENTIALS_FILE": "/absolute/path/to/credentials.json",
"GTM_TOKEN_FILE": "/absolute/path/to/token.json"
}
}
}
}
If installed locally, use npx:
{
"mcpServers": {
"gtm": {
"command": "npx",
"args": ["gtm-mcp"],
"env": {
"GTM_CREDENTIALS_FILE": "/absolute/path/to/credentials.json",
"GTM_TOKEN_FILE": "/absolute/path/to/token.json"
}
}
}
}
Using source installation
{
"mcpServers": {
"gtm": {
"command": "node",
"args": ["/absolute/path/to/gtm-mcp/dist/index.js"],
"env": {
"GTM_CREDENTIALS_FILE": "/absolute/path/to/gtm-mcp/credentials.json",
"GTM_TOKEN_FILE": "/absolute/path/to/gtm-mcp/token.json"
}
}
}
}
See MCP_SETUP.md for platform-specific instructions.
Authentication
Using npm package
If installed globally:
gtm-mcp-auth
Or with npx:
npx gtm-mcp-auth
Using source installation
npm run auth
Token saved to token.json and auto-refreshed.
Operations
99 operations available (95 API operations + 4 workflow helpers). See OPERATIONS.md for complete reference.
Categories
- Accounts: List, get, update accounts
- Containers: List, get, create, update, delete, snippet, lookup, combine, move tag ID
설치
npx gtm-mcp설정
{
"mcpServers": {
"gtm": {
"command": "gtm-mcp",
"env": {
"GTM_CREDENTIALS_FILE": "/absolute/path/to/credentials.json",
"GTM_TOKEN_FILE": "/absolute/path/to/token.json"
}
}
}
}