
AgentFirstStack Analytics
com.agentfirststackPublished by agentfirststack.comOfficial publisherv0.1.1Updated Nov 4, 2026
Cookieless web analytics an agent creates and queries: goals, funnels, revenue, SQL. Open source.
Overview
Remote MCP server for cookieless web analytics that an AI agent can create and query: sites, goals, funnels, revenue and read-only SQL.
- What you can do
- Create and manage analytics sites and tracking configuration
- Query traffic data by country, region, city, channel, UTM and ad click ids
- Define and inspect goals, funnels, revenue and realtime activity
- Run read-only SQL against the collected event data
- Send server-side events and verify results through the API
- When to use it
- Useful when an agent needs to set up web analytics for a site without a signup form or dashboard, or to pull traffic, conversion and revenue numbers into a conversation. Also fits agents that want to check their own tracking setup end to end.
- Requirements
- Remote streamable HTTP endpoint at analytics.agentfirststack.com. Authentication is required: an Authorization header carrying a bearer API key, obtained from a single POST to the provider's signup endpoint, or OAuth. No local runtime or package install.
Installation
In SourceWeft
- Open AgentFirstStack Analytics in the dashboard and add it to a workspace.
- Connect the required credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/com.agentfirststack%2Fanalytics/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.
{
"mcpServers": {
"agentfirststack-analytics": {
"type": "http",
"url": "https://analytics.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
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.
- 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
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:
Add one MCP server for every service (tools prefixed analytics_, tags_, mail_, replay_):
Or one per service:
The hosted version has fair-use limits, listed in the manual.
Self-hosted
Everything runs on Cloudflare Workers in your own account:
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.
More in docs/architecture.md.
Development
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.
Source: README.md at commit 0133b63
Tools
0Version history
2- v0.1.1LatestNov 4, 2026
- v0.1.0Nov 4, 2026
Score
85% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Agentfirststack integrations

AgentFirstStack Tags
com.agentfirststackOfficial publisher
Remote tag manager and server-side conversion router that lets an assistant set up GA4, Google Ads, Meta and TikTok conversion tracking.

AgentFirstStack Replay
com.agentfirststackOfficial publisher
Remote MCP server for AgentFirstStack Replay, giving an assistant session recordings as readable transcripts, click and JS error signals, and heatmaps.

AgentFirstStack
com.agentfirststackOfficial publisher
Remote MCP server giving an agent self-serve web analytics, a tag manager with conversion routing, email inboxes and session replay for a website.

AgentFirstStack Mail
com.agentfirststackOfficial publisher
Remote MCP server that gives an AI agent its own email inboxes: wait for mail, extract verification codes and links, read, reply and send.