samarth-analytics-mcp: Instructions file for Claude Code

CLAUDE.md

samarth-analytics-mcp CLAUDE.md is an instructions file for Claude Code from samarthanalytics-sj/samarth-analytics-mcp. It costs 1,517 tokens per session, scanned A, original, MIT.

Repository-specific instructions for working on the samarth-analytics-mcp project, including its purpose and safety rules.

In plain words
What is it for?
Use them when an agent needs to inspect or modify that repository while following its project rules.
Why use it?
They give an coding agent context about the repository and set boundaries such as read-only work by default and not committing secrets.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is samarthanalytics-sj/samarth-analytics-mcp's own configuration. It tells Claude Code how to work on samarth-analytics-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything samarth-analytics-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to samarthanalytics-sj/samarth-analytics-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/samarthanalytics-sj/samarth-analytics-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/samarthanalytics-sj/samarth-analytics-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for samarth-analytics-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/samarthanalytics-sj/samarth-analytics-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/samarthanalytics-sj/samarth-analytics-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/samarthanalytics-sj/samarth-analytics-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/samarthanalytics-sj/samarth-analytics-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for samarth-analytics-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/samarthanalytics-sj/samarth-analytics-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/samarthanalytics-sj/samarth-analytics-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,517 This file is loaded in full into every session.
When invoked 1,517 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01517 $0.01517
Opus 5.5 $0.00607 $0.00607
Sonnet 5.5 $0.00303 $0.00303
Haiku 4.5 $0.00152 $0.00152

Measured 2d ago against content hash cb1a97565282, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

samarth-analytics-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

Project-specific guidance for working in this repo with Claude Code (Desktop / App / CLI). These instructions override default behavior — follow them.

What this repo is

Samarth Analytics MCP — a production MCP server for the Google Tag Manager API v2, plus read-only GA4 (Admin + Data API) tooling, and a white-label customer portal that runs GTM/Consent Mode v2 audits.

Layout:

  • src/ — the MCP server (stdio + HTTP transports, tools, guardrails, auth).
  • apps/portal/ — the customer portal. Vite client + Express dev server, deployed to Vercel as serverless functions under apps/portal/api/.
  • apps/portal/shared/ — framework-free audit engines (incl. the Consent Mode v2 engine and its test suite).
  • apps/runtime-worker/ — read-only headless-Chromium capture worker. Not for Vercel — needs a real browser host (Render/Fly/Railway/VPS).
  • apps/web-audit-mcp/ — a second MCP server (stdio + Streamable HTTP) with a built-in site audit agent: Playwright crawl, form inventory, consent-banner (CMP) interaction, Consent Mode v2 compliance findings, and optional GTM container reconciliation. Reuses the shared consent engine; SSRF guard mirrors the runtime worker. Ships a Dockerfile (Playwright base image, HTTP transport) for hosted deploys — not for Vercel either. The autonomous audit agent's only permitted page interaction is clicking consent-banner controls — never submit forms or click anything else from those tools.
    • Exception — the verify tool (apps/web-audit-mcp/src/verify/, the TagDrishti tag verification engine): operator-driven, it performs the spec-supplied interactions including real form submits to prove trigger-fired events (user-authorized 2026-07-04). OFF by default, gated behind WEB_AUDIT_ENABLE_VERIFY=true; the samarth-verify CLI is an explicit local invocation and needs no flag. Client-side only — server-side verification (CAPI/sGTM/Measurement Protocol) is a documented non-goal with an empty stub, never claimed in output. Do NOT widen the audit agent's interaction surface, and do NOT flip the verify flag default, without an explicit user request.

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed cb1a97565282
  2. 2mo ago First seen · 130 lines · 1,517 tokens per session scan A a07f149341ef

Subscribe to this mod's changes

samarth-analytics-mcp CLAUDE.md is an instructions file published in the GitHub repository samarthanalytics-sj/samarth-analytics-mcp (3 stars, last pushed 3d ago), licensed MIT. It adds 1,517 tokens to every session, about $0.0061 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

samarth-analytics-mcp CLAUDE.md compared with instructions from other repositories

samarth-analytics-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
samarth-analytics-mcp CLAUDE.mdsamarthanalytics-sj/samarth-analytics-mcpInstructions file33d agoMITA1,517Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode