AItraffic
Provides typed read-only reports for Google Analytics 4 (GA4), enabling agents to query audience, acquisition, and event metrics.
Provides typed read-only reports for Google Search Console, enabling agents to retrieve search performance data such as clicks, impressions, and rankings.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AItrafficrun acquisition report for last 30 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AItraffic
Open, terminal-first evidence for how search engines and AI systems discover, crawl, cite, refer, and convert traffic.
The project is designed to be directly usable by humans, Codex, Claude Code, CI jobs, and any MCP-compatible agent.
aitraffic.dev · npm · GitHub · Apache-2.0 · Node.js 20+
Current alpha
The working alpha includes:
a zero-prompt CLI contract with human and JSON output;
project initialization and environment diagnostics;
a versioned evidence JSON Schema;
local Nginx/Apache combined-log and NDJSON import;
honest AI crawler/agent classification with
user_agent_onlyverification labels;native Google OAuth with PKCE, state validation, named profiles, refresh, and revoke;
native OS credential-store persistence with no CLI or plaintext token fallback;
a credential-isolating adapter for existing local Google OAuth profiles;
typed read-only GA4 and Google Search Console reports;
an equal-period AI/search acquisition report with explicit limitations;
a local read-only MCP server with Google, log, and evidence tools;
Codex and Claude Code setup guidance;
research and roadmap documentation under
docs/research/.
AItraffic does not yet include scheduled collection or a hosted connector. Native OAuth imports a Google Web application client from its downloaded JSON or a private environment file; no client secret is bundled in npm. The person running the CLI personally completes Google consent, and tokens stay in the OS credential store. Tokens are never printed or exposed through MCP.
Related MCP server: Citare
Quick start
npx -y aitraffic@latest doctor
npx -y aitraffic@latest init --agent both --site https://example.com
npx -y aitraffic@latest schema evidence --format json
npx -y aitraffic@latest logs import access.log --format jsonConnect Google directly:
# Import a Google Web application client into the OS credential store.
npx -y aitraffic@latest auth google configure \
--from-client-json /absolute/path/to/client_secret.json
# You personally complete Google sign-in and consent in the browser.
npx -y aitraffic@latest auth google login --profile work
npx -y aitraffic@latest google inventory --profile work --format json
# Select exact resources after reviewing inventory.
npx -y aitraffic@latest google select \
--profile work \
--ga4-property 123456789 \
--gsc-site sc-domain:example.com \
--dry-run
# Review the dry run, then repeat without --dry-run.
npx -y aitraffic@latest google status --format json
npx -y aitraffic@latest report acquisition --days 28 --format jsonThe dedicated AItraffic Google project is currently in Testing, so only listed test users can authorize it and refresh tokens may expire after seven days. Public zero-configuration OAuth requires a hosted token broker plus Google verification; the npm package does not distribute the Web client secret. See the Google connector guide for the beta setup and optional TrafficClaw/external-adapter path.
Install globally if you prefer the shorter executable:
npm install --global aitraffic
aitraffic doctor
aitraffic init --agent both
aitraffic logs import access.log --format json
aitraffic mcp servePin an exact version for reproducible automation:
npx -y aitraffic@0.2.1 versionTerminal contract
Human-readable output is the default in a TTY.
--format jsonproduces one stable JSON document on stdout.Diagnostics and MCP lifecycle messages go to stderr.
Success exits
0, expected user/input errors exit2, and unexpected failures exit1.Read-only analysis is the default.
Raw credentials are never sent to an agent or written to output.
User-agent matching is reported as a claim, not verified bot identity.
Commands
aitraffic init [--agent codex|claude-code|both] [--site URL] [--force]
aitraffic doctor
aitraffic schema evidence
aitraffic logs import <path>
aitraffic crawlers <path>
aitraffic classify <user-agent>
aitraffic auth google configure (--from-client-json PATH | --from-env-file PATH)
aitraffic auth google login --profile NAME
aitraffic auth google status [--profile NAME]
aitraffic auth google revoke --profile NAME [--dry-run] [--local-only]
aitraffic google configure --adapter-script PATH --profile NAME [--ga4-property ID] [--gsc-site SITE] [--dry-run]
aitraffic google select --profile NAME [--ga4-property ID] [--gsc-site SITE] [--dry-run]
aitraffic google status
aitraffic google inventory [--profile NAME]
aitraffic ga4 report [--start DATE] [--end DATE] [--dimensions CSV] [--metrics CSV] [--limit N]
aitraffic gsc report [--start DATE] [--end DATE] [--dimensions CSV] [--limit N]
aitraffic report acquisition [--days N]
aitraffic mcp serve
aitraffic versionEvery non-MCP command supports --format text|json.
Codex
Build once, then register the local stdio server:
codex mcp add aitraffic -- node "$PWD/dist/src/cli.js" mcp serve
codex mcp get aitrafficOr use the published npm package without cloning:
codex mcp add aitraffic -- npx -y aitraffic@latest mcp serveCodex should read AGENTS.md for the repository-specific contract.
Claude Code
The checked-in .mcp.json makes the local server available at project scope after the project is built and approved by Claude Code.
Or register it explicitly:
claude mcp add --scope project aitraffic -- node "$PWD/dist/src/cli.js" mcp serveOr use the published npm package:
claude mcp add --scope user aitraffic -- npx -y aitraffic@latest mcp serveClaude Code should read CLAUDE.md, which points to the same engineering and evidence rules.
See Agent integrations for local development, published-package, JSON, and security examples.
The Google connector extraction and TrafficClaw hosted/local boundary is documented in the TrafficClaw Google reuse plan. Native OAuth, direct Google APIs, and the compatible external adapter are documented in the Google connector guide.
Example log analysis
aitraffic logs import examples/sample-access.logExample interpretation:
Parsed requests: 5
Claimed AI/search agent requests: 4
OpenAI / OAI-SearchBot: search
OpenAI / ChatGPT-User: agent
Anthropic / ClaudeBot: training
Perplexity / PerplexityBot: searchThese identities are based on user-agent strings in this bootstrap. They are spoofable and therefore explicitly labeled user_agent_only. Published-IP, reverse-DNS, CDN-verified, and signed-request verification belong in the next collector phase.
Research
Start with the research index. It covers:
product thesis and market;
179-feature catalog;
open-source and license landscape;
SEO and GEO/AEO playbooks;
data and integration architecture;
monetization;
phased roadmap;
source register.
The first live connector dogfood is documented in the TrafficClaw alpha report.
Development
npm install
npm run build
npm run typecheck
npm test
npm run checkNode.js 20 or newer is required.
License
Apache-2.0. See LICENSE.
This server cannot be installed
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
- Alicense-qualityBmaintenanceTransforms raw Google Search Console signals into actionable marketing insights, such as detecting cannibalization, segmenting search intent, and identifying citation opportunities, for any MCP-compliant AI agent.Last updated34MIT
- Alicense-qualityCmaintenanceAI search intelligence + Ahrefs-class SEO suite as 59 MCP tools. Track your brand across ChatGPT, Google AI Overview, Gemini, Claude, and Perplexity with persona-anchored Brand Radar dispatches.Last updatedMIT
- AlicenseAqualityAmaintenanceSEO MCP over Search Console, GA4, PageSpeed, Cloudflare, IndexNow, CrUX, and 7 technical-SEO HTTP tools.Last updated702MIT
- AlicenseAqualityDmaintenanceUnifies traditional SEO and Generative Engine Optimization (GEO) for Google, Bing, Yandex, and major LLMs, providing tools for search performance analysis, citation tracking, on-page audits, and internal link graph analysis.Last updated363MIT
Related MCP Connectors
SEO MCP server: crawl your site, find AI-visibility gaps, and ship the fix from your coding agent.
Live SEO workflow tools for Claude Code, Codex, and AI agents.
SEO research, audits, backlinks, GSC, and content workflow tools for AI agents.
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/devanshug2307/aitraffic'
If you have feedback or need assistance with the MCP directory API, please join our Discord server