AgentFirstStack Analytics MCPサーバー
コミット 2026年11月11日クッキーレス分析、タグ管理、メール受信ボックス、セッションリプレイを含む、完全なGTM(Go-To-Market)スタックのセットアップと管理をAIエージェント経由で実現します。
別名 StartGlobal-AI/agentfirststack, agentfirststack
- スター
- 1
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- 0.1.1
- 最終コミット
- 2026年11月11日
- ライセンス
- AGPL-3.0
AgentFirstStack Analytics MCPとは
AgentFirstStack AnalyticsはMCPサーバーです。 クッキーレス分析、タグ管理、メール受信ボックス、セッションリプレイを含む、完全なGTM(Go-To-Market)スタックのセットアップと管理をAIエージェント経由で実現します。.
プロジェクトのREADMEから生成された概要
AgentFirstStack Analytics MCP server について
AgentFirstStack Analyticsは、AIエージェントが手動でダッシュボードを操作することなくデプロイできるように設計された、完全なGTMインフラストラクチャを提供します。サインアップフォームや確認メールを必要とする従来のセットアップワークフローを、単一のAPIリクエストに置き換えます。このシステムには、クッキーレスのウェブ分析、サーバーサイドのコンバージョン追跡用タグマネージャー、メール受信ボックス、およびセッションリプレイツールが含まれています。
開発者は、ホスト版を使用するか、Cloudflare Workersへのセルフホストによって利用できます。ホスト版サービスを使用する場合、MCPツールを使用してClaude Code、Cursor、またはその他のクライアントを通じてエージェントを構成できます。セットアッププロセスでは、サイトのページとアクションのマッピングを行い、自動テストトラフィックを通じてデプロイを検証します。本プラットフォームはGA4やPlausibleなどのツールからの履歴インポートをサポートしており、人間はGoogleサインインリンクを介してプロジェクトを管理し、ダッシュボードでデータを確認できます。
できること
- 1サーバーサイドのコンバージョン追跡単一のイベントIDを使用して、コンバージョンイベントを複数の広告プラットフォームに同時にルーティングするタグマネージャーを構成します。
- 2メール認証の自動化メールサービスを使用して、受信メッセージから認証コードをプログラムで受信および抽出します。
- 3セッションの記録と分析ユーザーのインタラクションをキャプチャし、ヒートマップやトランスクリプトを通じて、技術的なエラーやユーザーの不満を特定します。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
AgentFirstStack Analytics MCPのインストール方法
フォーマット検証日 2026年11月10日Claude CodeにAgentFirstStack Analytics MCPをインストール
$ claude mcp add --transport http agentfirststack https://analytics.agentfirststack.com/mcpCursorにAgentFirstStack Analytics MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"agentfirststack": {
"url": "https://analytics.agentfirststack.com/mcp"
}
}
}VS CodeにAgentFirstStack Analytics MCPをインストール
.vscode/mcp.json
{
"servers": {
"agentfirststack": {
"type": "http",
"url": "https://analytics.agentfirststack.com/mcp"
}
}
}CodexにAgentFirstStack Analytics MCPをインストール
~/.codex/config.toml
[mcp_servers.agentfirststack] url = "https://analytics.agentfirststack.com/mcp"
Gemini CLIにAgentFirstStack Analytics MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"agentfirststack": {
"httpUrl": "https://analytics.agentfirststack.com/mcp"
}
}
}設定
CLOUDFLARE_API_TOKEN
| 名前 | 説明 | 種類 |
|---|---|---|
| CLOUDFLARE_API_TOKEN | — |
自動チェック
実行日 2026年11月14日詳細レポート →まだ検証されていません。サーバーには80点のスコア、重大な問題がないこと、および検証に必要な十分なデータが必要です。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能startglobal-ai/agentfirststack is public and reachablegithub.com/startglobal-ai/agentfirststack ↗合格
- パッケージがこのリポジトリをソースとして示している未チェック
- ビルドの来歴(Sigstore 証明)未チェック
- オープンソースライセンス (OSI)AGPL-3.0spdx.org/licenses/AGPL-3.0.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-11-11github.com/startglobal-ai/agentfirststack ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していない未チェック
- パッケージと依存関係に重大なアドバイザリがない未チェック
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモート endpoint が MCP ハンドシェイクに応答するHTTPS endpoint answered 401 (sign-in required)合格
README
GitHubで見るEvery new website needs the same infrastructure: analytics, a tag manager with conversion tracking, and an email address to sign up for everything else. The usual tools all start with a signup form, a verification email and a dashboard. Coding agents can't get past those steps alone.
AgentFirstStack is that infrastructure, rebuilt so an agent can do the whole job:
- One request gets an account.
POST /v1/signupreturns a key that works on every service. - Everything is an API call and an MCP tool. Nothing is hidden behind a settings page.
- The manual is a text file. Each service serves
/llms.txtwith every endpoint, tool and field. - Every step can be verified. The agent checks its own work instead of guessing.
- Served from your own domain. Analytics, tags and replay load from a first-party domain (one CNAME, no server code) or a path proxy, so ad blockers don't drop your visitors.
- Humans optional. When it's done, the agent hands its person a claim link. They sign in with Google to see the project's analytics, tags, replay and mail in a dashboard, manage keys and teammates, connect Claude or ChatGPT over OAuth, and delete the project. We email them about their projects, and alert them when a site stops sending data, gets suspicious traffic (one network over its share or a sudden flood is set aside, out of reports and budgets, for review), or a project gets close to a fair-use limit (docs/accounts.md).
Services
| What it does | Instead of | |
|---|---|---|
| Analytics | Cookieless web analytics. Country, region and city from Cloudflare's edge; channels including AI assistants; UTM and ad click ids; goals, funnels, paths, attribution, realtime (a live stream within a second); revenue, subscriptions and MRR from Stripe, Polar, Paddle or LemonSqueezy; ad spend and ROAS; ecommerce items; AI crawler visits and an AI search report (which AI bots read which pages, which assistants send visitors, what to change); Core Web Vitals from real visitors; alerts and weekly reports; history imported from GA4, Plausible or any other tool, with a check that the numbers match; server-side events; read-only SQL | Google Analytics, Plausible |
| Tags | A tag manager and server-side conversion router. Define a conversion once; the browser pixel and the server both send it to GA4, Google Ads, Meta, TikTok, LinkedIn, Pinterest, Reddit, Snap or X with one event id, so each platform counts it once. A consent banner asks visitors from the EU, UK and Switzerland before ad pixels fire. Scan (it also finds the tools a site uses now), import a GTM container, validate, preview, test and publish | Google Tag Manager, server-side GTM |
Inboxes in one request, on agentfirstinbox.com or your own domain. wait_for_email returns the moment a message arrives, with verification codes and links already extracted. Read, reply, send, custom domains, webhooks, and forwarding to the project's people (each email or a daily digest) |
A Gmail account per project, AgentMail | |
| Replay | Session recordings masked in the browser by default. Sessions come back as readable transcripts; rage, dead and error clicks, heatmaps and JS errors as data; a share link opens a player for people | Hotjar, Microsoft Clarity |
Quick start
Hosted (free)
Copy the prompt from agentfirststack.com into Claude Code, Cursor,
Codex or any agent that can make HTTP requests. The agent follows the
full setup in one run: it maps your site's pages, main
actions and the tools it uses now, then asks you once where the inbox's email should go and whether
to bring your old tools' setup and history over. It creates an inbox, sets up analytics (goals, AI
crawler visits reported from your server, a weekly report for you, and the history of GA4,
Plausible or whatever you used before), a tag container with an event for each main action
(starting from your GTM container, if you have one), and replay; then it deploys, verifies each
part as a visitor with test traffic (POST /v1/setup/test: a test email, test events through analytics, tags and each ad
platform's test mode, then a browser test visit), runs the setup check (GET /v1/setup) until
nothing is missing, writes what it did to AGENTFIRSTSTACK.md (and a short block to AGENTS.md, so later sessions with
any agent pick up new features), and shows you a table of what's set up and what passed, with a
claim link. Your old tools stay until the setup check says the numbers match and you agree to
remove them. Pasting the same prompt again later starts from the
setup check and fills the gaps.
Or install it as an agent skill (skills.sh), so your agent has the setup steps on hand in every session:
npx skills add StartGlobal-AI/agentfirststack
Then ask it to set up AgentFirstStack. The skill is
skills/agentfirststack-setup/SKILL.md.
Or do it by hand:
curl -X POST https://agentfirststack.com/v1/signup
# { "api_key": "afs_...", "mcp": { ... }, "next_steps": [ ... ] }
curl -X POST https://analytics.agentfirststack.com/v1/sites \
-H "Authorization: Bearer $AGENTFIRSTSTACK_API_KEY" -H 'content-type: application/json' \
-d '{"domain":"example.com"}'
Add one MCP server for every service (tools prefixed analytics_, tags_, mail_, replay_):
claude mcp add --transport http afs https://agentfirststack.com/mcp --header "Authorization: Bearer $AGENTFIRSTSTACK_API_KEY"
Or one per service:
claude mcp add --transport http afs-analytics https://analytics.agentfirststack.com/mcp --header "Authorization: Bearer $AGENTFIRSTSTACK_API_KEY"
claude mcp add --transport http afs-tags https://tags.agentfirststack.com/mcp --header "Authorization: Bearer $AGENTFIRSTSTACK_API_KEY"
claude mcp add --transport http afs-mail https://mail.agentfirststack.com/mcp --header "Authorization: Bearer $AGENTFIRSTSTACK_API_KEY"
claude mcp add --transport http afs-replay https://replay.agentfirststack.com/mcp --header "Authorization: Bearer $AGENTFIRSTSTACK_API_KEY"
The hosted version has fair-use limits, listed in the manual.
Self-hosted
Everything runs on Cloudflare Workers in your own account:
git clone https://github.com/StartGlobal-AI/agentfirststack && cd agentfirststack
pnpm install
pnpm afs init mystack --domain example.com --account <cloudflare-account-id>
pnpm afs deploy mystack
CLOUDFLARE_API_TOKEN=... pnpm afs email mystack # inbound + outbound mail
pnpm afs check mystack
See docs/self-hosting.md for requirements, signup modes, limits and updates.
How it's built
TypeScript on Cloudflare Workers with Hono and zod. Storage:
- D1: configuration and the shared identity database.
- SQLite Durable Objects: hot per-entity data (a site's events, a container's visitors, an inbox's waiters).
- R2: mail blobs and replay recording chunks.
- Queues: retried delivery to ad platforms and webhooks.
- Email Routing and Email Sending: mail in and out.
site/ landing page, manual, signup, MCP gateway, dashboard agentfirststack.com
analytics/ web analytics analytics.agentfirststack.com
tags/ tag manager + conversion APIs tags.agentfirststack.com
mail/ inboxes, sending, domains, webhooks mail.agentfirststack.com
replay/ session replay, signals, heatmaps, share player replay.agentfirststack.com
shared/ @afs/shared: auth, signup, errors, MCP handler
scripts/ pnpm afs: the deployment tool
deploy/ deployment profiles (yours; the agentfirststack.com one is kept private)
docs/ architecture, self-hosting, operations, development
More in docs/architecture.md.
Development
pnpm install
pnpm typecheck && pnpm test # every package; integration tests run inside workerd
cd mail && pnpm db:migrate:local && pnpm dev
docs/development.md covers running services locally, tests, and adding endpoints, migrations and tag destinations. docs/operations.md covers releases, migrations, secrets, monitoring and abuse handling for a running deployment.
Contributing
Issues and pull requests are welcome. Read CONTRIBUTING.md first; it's short. Report security issues privately as described in SECURITY.md.
License
The services are AGPL-3.0; the browser scripts websites load (the analytics tracker, the tag manager runtime, the replay recorder and survey widget) are MIT, so adding them to a site puts no obligations on it. Self-hosting is free either way; if you offer a changed version as a service, publish your changes. Details: LICENSING.md. Built and hosted by StartGlobal.
AgentFirstStack Analytics MCPのよくある質問
AgentFirstStack Analytics MCPをClaude Codeに追加するには
ターミナルでclaude mcp add --transport http agentfirststack https://analytics.agentfirststack.com/mcpを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
AgentFirstStack Analytics MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
自分でホストすることはできますか?
はい、スタック全体を自身のCloudflare Workersアカウント上でセルフホストすることが可能です。
既存の分析データをサポートしていますか?
はい、GA4、Plausible、またはその他のツールから履歴をインポートできます。システムには数値が一致することを確認するためのチェック機能が含まれています。
どのような認証方式を使用していますか?
エージェントのアクセスにはAPIキーを使用し、人間がダッシュボードにアクセスする際はGoogle OAuthをサポートしています。