prismuv-mcp
# PrismUV — Optical Web Analytics, IVT Shield & AI Search GEO Radar
[](https://www.npmjs.com/package/prismuv-mcp)
[](./LICENSE)
[](https://prismuv.com)
[](https://prismuv.com/geo-audit)
[](https://glama.ai/mcp/servers/derek518/prismuv)
Privacy-first, self-hosted & cloud web analytics built around optical traffic separation: isolating **Clean Humans**, **AI Search Crawlers** (`OAI-SearchBot`, `GPTBot`, `ClaudeBot`, `PerplexityBot`), **Suspect Traffic**, and **Confirmed Bots** inside one **3.9 KB gzip** script (`/s/{site_id}/prismuv.js`).
## Free Public Tools & Live Comparisons (No Login Required)
| Tool / Guide | What It Does | Direct Link |
|---|---|---|
| **Live GEO Audit & Score Badge** | 100-point AI readiness score, `llms.txt` preview & SVG badge | https://prismuv.com/geo-audit |
| **Full-Site `llms.txt` Generator** | Auto-generate `llms.txt` & `llms-full.txt` from any `sitemap.xml` | https://prismuv.com/llms-txt-generator |
| **AI Crawler `robots.txt` Checker** | Inspect & build rules across 12 search/training AI crawlers | https://prismuv.com/robots-txt-ai-checker |
| **AI Visibility Tracker** | Track Google AI Overview & ChatGPT citations vs. competitors | https://prismuv.com/ai-visibility |
| **Fail-Open AdSense IVT Shield** | 3-layer bot detection calculator & Shadow simulator | https://prismuv.com/adguard |
| **PrismUV vs. Plausible & Umami** | Same-criteria feature, IVT, AI crawler & RPV comparison | https://prismuv.com/vs/plausible |
| **PrismUV vs. Google Analytics 4** | Privacy-first <4KB gzip alternative to GA4 | https://prismuv.com/vs/ga4 |
| **Docs, REST API & 36 MCP Tools** | 1-line SDK setup, API docs & `prismuv-mcp` quickstart | https://prismuv.com/docs |
## Core Architecture
- **1-Line Zero-Config SDK (`/s/{site_id}/prismuv.js`)**: 3.9 KB gzip (~8.2 KB raw), cookieless by default, SPA transitions, P75 Core Web Vitals (`LCP`/`INP`/`CLS`), and release-tagged JS error capture (`data-release`).
- **3-Layer Invalid Traffic (IVT) & 300ms Fail-Open AdGuard**: Scores runtime globals (`webdriver`), human interaction heuristics, and datacenter ASNs. Pre-bid AdSense verification (`/t/v`) completes or fails open cleanly within 300ms.
- **GEO & AI Search Visibility Suite**: Live 100-point GEO audit, 50-page `/sitemap.xml` batch scanner, Google AI Overview (`DataForSEO async`) + ChatGPT Web citation tracking (24h smart dedupe cache), Google Search Console query sync, and one-click IndexNow pushing (`POST /v1/sites/{site_id}/indexnow/submit`).
- **Verified Creem & Stripe Net RPV**: Signed Creem (with global cards & China Alipay payout support) and Stripe server webhooks deduct refunds cleanly to calculate net USD Revenue Per Visitor (RPV) per referral source and AI engine.
- **Zero Plaintext IP Storage & Per-Site `pve_*` Edge Isolation**: IPs are immediately hashed with a daily rotating salt (`ip_hash` + `/24` digest). Each site issues an isolated `pve_*` `PRISMUV_EDGE_SECRET` for first-party `/t/edge` crawler forwarding.
## 1-Line Integration & `prismuv-mcp` Setup
Paste inside `<head>` or root layout:
```html
<script defer src="https://prismuv.com/s/YOUR_SITE_ID/prismuv.js"></script>
```
Attach the **36-tool MCP Server** via npm (`npx -y prismuv-mcp` — details in [mcp/README.md](mcp/README.md)):
```json
{
"mcpServers": {
"prismuv": {
"command": "npx",
"args": ["-y", "prismuv-mcp"],
"env": {
"PRISMUV_API_URL": "https://prismuv.com",
"PRISMUV_TOKEN": "prism_live_YOUR_TOKEN"
}
}
}
}
```
### Try `prismuv-mcp` on Glama
Explore the [PrismUV MCP Server listing on Glama](https://glama.ai/mcp/servers/derek518/prismuv) to:
- browse all 36 MCP tools and check its quality score;
- test the server online using [MCP Inspector](https://glama.ai/mcp/inspector) before installing locally.
## Quick Start (Self-Hosted Docker Compose)
1. Copy `.env.example` to `.env` and fill strong secrets:
```bash
cp .env.example .env
```
2. Build and start PostgreSQL 17, FastAPI (`prismuv-api`), Next.js 15 (`web`), and Nginx (`gateway`):
```bash
docker compose up -d --build
```
3. Open `http://127.0.0.1:18200` (or point Cloudflare Zero Trust Tunnel `CLOUDFLARED_TUNNEL_TOKEN` to `http://gateway:80`).
## Repository Structure
- `backend/` — FastAPI observability API, IVT scoring engine, GEO/sitemap auditor, AI citation workers, Growth Copilot & PostgreSQL repository
- `web/` — Next.js 15 darkroom console, public micro-tools, comparison pages & self-tracking instrumentation
- `sdk/` — Ultra-lightweight (<4KB gzip) browser telemetry & pre-bid AdGuard SDK
- `mcp/` — Published [`prismuv-mcp`](https://www.npmjs.com/package/prismuv-mcp) npm package exposing 36 MCP tools
- `gateway/` — Nginx reverse proxy, `/v1/` routes, `/indexnow-key.txt` & rate-limiting configuration
- `db/` — PostgreSQL 17 schema & monthly event partitioning setup
- `skill/` — Installable agent integration skill definition
## License
MIT License — see [LICENSE](LICENSE).
TDQS
Scored across 36 tools
Descriptions are unusually explicit and cross-reference sibling tools, so overlapping analytics views such as site vs fleet, realtime vs timeseries, and page funnel vs breakdown are mostly separable. However, with 36 tools across traffic, GEO, keywords, and growth, a few clusters still require careful reading.
All tools use snake_case with recognizable verb_noun or get_/list_/run_ prefixes, and write actions use add/check/pull/generate/update consistently. Minor awkward names like get_pages_funnel and get_realtime do not break the overall pattern.
36 tools is well above the 3-15 sweet spot and spans several product areas that could be split into separate servers. Even though each tool has a distinct role, the surface is heavy and increases selection cost.
The surface covers analytics, traffic quality, GEO audits, keyword tracking, growth tasks, AI visibility, and revenue, with read/write coverage for many workflows. Gaps remain around site update/delete and funnel/keyword lifecycle management, but core analysis and optimization workflows are covered.