mcpField
P
pagent

pagent

Remote
pagent.aiData & Analytics0Updated 5d ago

About pagent

pagent connects MCP clients to pagent, an A/B testing platform for live websites. Agents can inspect experiments and manage their lifecycle from chat, while pagent handles variations, traffic allocation and statistical analysis.

Key features

  1. 01Read test results and status
  2. 02Compare tests and variations
  3. 03Capture hypotheses as tests
  4. 04Start, pause, resume or stop tests
  5. 05Manage pages, goals and audiences
  6. 06Configure supported MCP clients

Use cases

  1. 01Check which live test is leading
  2. 02Compare past experiments
  3. 03Turn an experiment hypothesis into a test
  4. 04Pause or roll back a website test

MCP support

Connects MCP clients to pagent's hosted server over Streamable HTTP, using OAuth 2.0 or a personal token. It exposes read and write access to tests and related website experimentation data, subject to granted permissions.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://app.pagent.ai/api/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

Details

From the project README

pagent: the A/B testing MCP server for coding agents

@pagent/mcp connects Claude, ChatGPT, Claude Code, Codex, Cursor and any other MCP client to pagent, so your agent can run A/B tests on your live website. Set it up in one command:

npx @pagent/mcp init

This finds the MCP clients on your machine and points them at pagent's hosted MCP server. Nothing else to copy, no config format to choose.

What pagent is

pagent is an AI A/B testing agent, an AI Experiment Engineer for your website. It reads your pages, writes the hypothesis, builds the variation as real code on your design system, runs the test on your live site with Bayesian statistics, and learns what to try next. Your team reviews each variation before it goes live. pagent adds to your testing stack; it does not replace it.

With this MCP server your agent joins that loop: it reads results, captures the next hypothesis, and starts the next test from the chat you already use.

Can Claude or ChatGPT run A/B tests on my live website?

Yes, once they are connected to an experimentation platform through MCP. A language model on its own cannot serve variations to your visitors or measure conversions. With the pagent MCP server, Claude, ChatGPT or your coding agent can start, pause and stop tests on your live site and read their results, while pagent builds the variations, splits the traffic and runs the statistics.

Things you can ask once connected:

  • "Which of our running A/B tests is winning, and how sure are we?"
  • "Compare last month's pricing page tests and tell me what changed on the page."
  • "Capture a hypothesis: a shorter signup form will raise trial starts. Turn it into a test."
  • "Pause the checkout test and roll it back."

What your agent can do

With read access:

  • List running and completed tests and read their Bayesian results
  • Compare tests and inspect what each variation changes on the page
  • Read pages, audiences, conversion goals, personas and guidelines

With write access:

  • Capture a hypothesis and turn it into a test
  • Start, pause, resume, queue, stop, evolve or roll back a test
  • Create pages and conversion goals, manage audiences

You choose read or write, and which organisations the client may see, during sign-in. You can revoke a connection at any time in your pagent settings.

Usage

npx @pagent/mcp init                 # detect your clients and connect them
npx @pagent/mcp init --client cursor # connect one client
npx @pagent/mcp init --local         # write a project config, not a user one
npx @pagent/mcp init --dry-run       # show what would change, write nothing
npx @pagent/mcp print                # print the config without writing
npx @pagent/mcp list                 # list supported clients

Supported clients

ClientHow it is configured
Claude Codeclaude mcp add
Codexcodex mcp add
Cursor~/.cursor/mcp.json or .cursor/mcp.json
VS Code.vscode/mcp.json
Windsurf~/.codeium/windsurf/mcp_config.json
Zed~/.config/zed/settings.json
Claude (web and desktop)Settings, Connectors, add a custom connector
ChatGPTDeveloper mode, Plugins, add a custom connector

Claude and ChatGPT are configured in their own interface, so this CLI prints the steps rather than editing anything. Run npx @pagent/mcp print --client chatgpt.

Existing servers in your config are left alone. If a config file cannot be parsed, for example because it has comments, the CLI prints the entry for you to paste instead of rewriting the file.

Connecting by hand

Any MCP client can use the hosted server directly:

  • Endpoint: https://app.pagent.ai/api/mcp
  • Transport: Streamable HTTP
  • Authentication: OAuth 2.0, or a personal token from AI client access

Before you connect

You need a pagent account with owner or administrator access to the organisation, MCP enabled for it, and a website with the pagent script installed so there are tests and visitor data to read.

Links

License

MIT. pagent itself is a commercial product; this CLI only writes local configuration files.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.