OLTestStack
Provides persistence for browser recordings and test reports in a PostgreSQL database.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OLTestStackopen example.com and take a screenshot"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OLTestStack — AI Browser Testing Framework
MCP server that exposes high-level browser automation tools for AI agents. Internally drives Chromium via Puppeteer/CDP; externally presents flat, stateless MCP command payloads.
git clone https://github.com/openlearnia/OLTestStack.git
cd OLTestStackRequirements
Bun 1.0+ (or Node.js 20+)
Chromium (bundled with Puppeteer, or set
CHROMIUM_EXECUTABLE_PATH)Docker (optional, for PostgreSQL persistence)
Related MCP server: Chrome Profile MCP Server
Ports
Service | Host port | Container port | Notes |
PostgreSQL | 5433 | 5432 | Non-default; avoids local Postgres conflicts |
App health HTTP | 8081 | 8081 | Optional; only when |
MCP transport remains stdio (no TCP port for MCP).
Quick start (local MCP)
bun install
bun run typecheck
bun run devDocker + PostgreSQL quickstart
Persistence is optional. Active browser/page sessions stay in-memory for speed; recordings and test reports flush to Postgres on browser close when enabled.
# 1. Start Postgres (host port 5433)
cp .env.example .env
bun run docker:up
# 2. Apply migrations
bun run db:migrate
# 3. Enable persistence and start MCP server
export PERSIST_RECORDING=true
export DATABASE_URL=postgresql://oltest:oltest@localhost:5433/olteststack
bun run devStop infrastructure:
bun run docker:downOptional: run the app container with health endpoint on 8081:
docker compose --profile app up -d
curl http://localhost:8081/healthRun migrations inside Docker:
docker compose --profile migrate up migrateProduction warning: Default credentials in
.env.example(oltest/oltest) are for local development only. ChangePOSTGRES_USER,POSTGRES_PASSWORD, andDATABASE_URLbefore deploying.
Run the MCP server
bun run devOr after building:
bun run build
bun run startThe server communicates over stdio — do not pipe logs to stdout (stderr only for diagnostics).
When PERSIST_RECORDING=true, the server validates DATABASE_URL at startup and writes reports/events to PostgreSQL on browser.close.
Cursor MCP configuration
Add to your Cursor MCP settings (.cursor/mcp.json or Cursor Settings → MCP):
{
"mcpServers": {
"olteststack": {
"command": "bun",
"args": ["run", "dev"],
"cwd": "/Users/kartikbazzad/OLTestStack",
"env": {
"PERSIST_RECORDING": "false"
}
}
}
}Replace cwd with the absolute path to this project on your machine. Set PERSIST_RECORDING=true and DATABASE_URL if you want Postgres persistence.
Available tools (V1 partial — 19 of 22)
Category | Tools |
Browser |
|
Page |
|
Elements |
|
Actions |
|
Inspection |
|
Monitoring |
|
Waiting |
|
Planned (5): assert.exists, assert.text, assert.url, assert.network, test.run
Example flow
browser.launch → page.create → page.navigate → page.find → page.type → page.click → page.wait → page.screenshot → browser.closeEnvironment variables
Variable | Default | Description |
|
| Default headless mode |
| auto | Custom Chromium binary |
|
| General operation timeout |
|
| Navigation/reload timeout |
|
| Screenshot output directory |
| — | PostgreSQL connection string ( |
|
| Persist recordings/reports to Postgres on flush |
|
| Documented default host port for local Docker Postgres |
| — | Optional HTTP health server (8081 in Docker) |
|
| Docker Compose Postgres credentials |
Project structure
src/
├── core/ # Types, errors, registry, config, recording
├── cdp/ # Puppeteer CDP adapter
├── db/ # Drizzle schema, migrations runner, persistence
├── domain/ # Business logic (browser, page, elements)
├── health/ # Optional HTTP health endpoint
└── mcp/ # MCP server, tool registrationScripts
Script | Description |
| Start MCP server (stdio) |
| Compile TypeScript to |
| Type-check without emit |
| Run tests |
| Start Postgres via Docker Compose |
| Stop Docker Compose services |
| Apply Drizzle SQL migrations |
| Generate migrations from schema |
| Open Drizzle Studio (DB GUI) |
Documentation
Agent-focused guides for MCP setup, tool reference, workflows, and Cursor skills:
MCP Server Setup — install, configure Cursor/Claude, troubleshoot
MCP Tools Reference — schemas, examples, error codes
Agent Workflows — recommended patterns for AI agents
Skills — Cursor Agent Skills for browser testing
Cursor setup: project skills (.cursor/skills/) and subagents (.cursor/agents/) ship with the repo; OLTestStack rules live at user level (~/.cursor/rules/olteststack-mcp-usage.mdc, olteststack-typescript.mdc) — see Guides index.
What's next
Phases 5–12 add user actions (page.click, page.type), inspection, monitoring, waiting, assertions, recording reports, and test.run orchestration. See docs/plans/v1-implementation-plan.md.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/openlearnia/OLTestStack'
If you have feedback or need assistance with the MCP directory API, please join our Discord server