jptb-google-tools
Enables AI agents to access and manage Google Analytics and Google Tag Manager using the user's own Google account via the JP Agent Tracking Bridge, supporting GTM read/write/publish and GA4 read-only operations with session-bound security.
README
JP Agent Tracking Bridge MCP
The JP Agent Tracking Bridge MCP lets a compatible AI agent (Hermes, Claude, Codex) work with Google Analytics and Google Tag Manager through JP Agent Tracking Bridge — using your Google account, never a service account.
AI agent
└─ jptb-google-tools (this MCP server)
└─ HTTPS → JP Agent Tracking Bridge Google Tools gateway (jpro.studio)
├─ validates your active Bridge session
├─ uses YOUR Google OAuth connection (encrypted server-side)
└─ Google Analytics + Google Tag Manager
The agent never sees your Google tokens, your client secret, or any encryption key.
Requirements
- A licensed, installed JP Agent Tracking Bridge site (WordPress or Joomla).
- A Google account with access to the site's GA4 property and GTM container.
- A compatible agent (Hermes, Claude Desktop, or Codex).
No service account, no JSON credentials, no Google Cloud setup.
The 5-step customer story
- Install/register this MCP once (below).
- Connect Google in the site's JP Agent Tracking Bridge admin.
- Start Tagging to open a temporary agent connection.
- Give the agent the connection (connection id + session token).
- Talk to the agent normally — it inspects and configures tracking, and asks before publishing anything to GTM.
Installation
Install the MCP server once:
uvx --from 'git+https://github.com/joomlapro/jp-agent-tracking-bridge-mcp.git' jptb-google-tools
Then register it in your agent. See docs/HERMES.md, docs/CLAUDE.md, or docs/CODEX.md
for the exact per-agent setup.
Configuration
The server needs two values for a given job (also passable per tool call):
export JPTB_CONNECTION_ID="<connection id from 'Connect Google'>"
export JPTB_SESSION_TOKEN="<session token from 'Start Tagging'>"
Both are shown/generated in the site's JP Agent Tracking Bridge admin and via the Bridge
API. The session_token is revoked by Stop Tagging, which immediately blocks all Google
operations through the MCP.
What the agent can do
- GTM read — list accounts/containers/workspaces/tags/triggers/variables/versions.
- GTM write — create/update JPTB tags, triggers, variables; create a container version.
- GTM publish — publish a prepared version (approval-gated; the agent asks first).
- GA4 read-only — list accounts/properties, property details, realtime and standard reports.
Security model
- Session-bound — Google access is tied to an active Bridge session; Stop Tagging revokes it.
- No secrets to the model — tokens, client secret, and the encryption key stay server-side.
- No service account — the customer's own Google OAuth authorization is the only credential.
License
MIT.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.