AgentFirstStack

com.agentfirststack由 agentfirststack.com 發布官方發布者v0.1.1更新於 Nov 4, 2026

Analytics, tag manager, email inboxes and session replay an AI agent sets up itself. Open source.

發布方自己的服務:AgentFirstStack Analytics

已驗證Streamable HTTP可網頁執行溝通與協作資料與分析商業與電商

概覽

AI 產生的概覽

遠端 MCP 伺服器,讓 AI 助理自行為網站建立網頁分析、代碼管理與轉換追蹤、信箱收件匣和工作階段重播。

可以做什麼
  • 建立並查詢無 Cookie 網頁分析:網站、目標、營收、漏斗、即時資料與唯讀 SQL
  • 定義、掃描、驗證、預覽、測試並發布代碼,以同一事件 ID 向廣告平台送出轉換
  • 建立收件匣、等待來信、擷取驗證碼與連結,讀取、回覆、寄送郵件,並設定自訂網域與 Webhook
  • 檢視工作階段重播逐字稿、點擊與錯誤訊號、熱區圖和分享連結
  • 一次請求完成註冊,並透過 API 逐步核對結果
適用情境
適合 AI 助理在建置或上線網站時,需要分析資料、轉換追蹤、可用於註冊的信箱或工作階段錄製,而不想由人工填寫註冊表單、操作後台介面的情境。
執行需求
遠端 streamable HTTP 端點 agentfirststack.com(也可依服務使用子網域)。必須驗證:透過一次註冊請求取得的 Authorization Bearer API 金鑰,或使用 OAuth。不需本機執行環境或安裝套件。若自行部署則需 Cloudflare 帳號和 API 權杖。
安裝前請注意
API 金鑰是放在 Authorization 標頭中的 Bearer 憑證,可存取所有服務,應避免出現在日誌和共用提示中。助理可建立帳號、網站、收件匣和網域,寄送郵件、發布代碼,並把轉換資料送給 GA4、Google Ads、Meta、TikTok 等第三方。託管版受合理使用額度限制。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 AgentFirstStack,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.agentfirststack%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "agentfirststack": {
      "type": "http",
      "url": "https://agentfirststack.com/mcp"
    }
  }
}

README

[圖片]

AgentFirstStack

Analytics, tag management, email inboxes and session replay that an AI agent sets up by itself.
No signup form, no verification email, no dashboard to click through. Free to use, and open source.

agentfirststack.com · Manual · Self-host · Architecture

[CI] [AGPL-3.0 license]


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/signup returns 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.txt with every endpoint, tool and field.
  • Every step can be verified. The agent checks its own work instead of guessing.
  • Humans optional. When it's done, the agent hands its person a claim link. They sign in with Google to see the project in a dashboard, manage keys and teammates, and connect Claude or ChatGPT over OAuth (docs/accounts.md).

Services

What it doesInstead of
AnalyticsCookieless web analytics. Country, region and city from Cloudflare's edge; channels including AI assistants; UTM and ad click ids; goals, revenue, funnels, realtime; server-side events; read-only SQLGoogle Analytics, Plausible
TagsA 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 and TikTok with one event id, so each platform counts it once. Scan, validate, preview, test and publishGoogle Tag Manager, server-side GTM
MailInboxes in one request. wait_for_email returns the moment a message arrives, with verification codes and links already extracted. Read, reply, send, custom domains, webhooksA Gmail account per project, AgentMail
ReplaySession 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 peopleHotjar, 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. Or do it by hand:

sh
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_):

sh
claude mcp add --transport http afs https://agentfirststack.com/mcp --header "Authorization: Bearer $AGENTFIRSTSTACK_API_KEY"

Or one per service:

sh
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:

sh
git clone https://github.com/StartGlobal-AI/agentfirststack && cd agentfirststackpnpm installpnpm afs init mystack --domain example.com --account <cloudflare-account-id>pnpm afs deploy mystackCLOUDFLARE_API_TOKEN=... pnpm afs email mystack     # inbound + outbound mailpnpm 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, platform manual, platform signup      agentfirststack.comanalytics/   web analytics                                        analytics.agentfirststack.comtags/        tag manager + conversion APIs                        tags.agentfirststack.commail/        inboxes, sending, domains, webhooks                  mail.agentfirststack.comreplay/      session replay, signals, heatmaps, share player          replay.agentfirststack.comshared/      @afs/shared: auth, signup, errors, MCP handlerscripts/     pnpm afs: the deployment tooldeploy/      deployment profiles (yours; the agentfirststack.com one is kept private)docs/        architecture, self-hosting, operations, development

More in docs/architecture.md.

Development

sh
pnpm installpnpm typecheck && pnpm test          # every package; integration tests run inside workerdcd 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.

來源:README.md,提交 0133b63

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

2
  1. v0.1.1最新Nov 4, 2026
  2. v0.1.0Nov 4, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Agentfirststack 整合