periscope-mcp
MCP serverWeb & browsingWeb-app QA for AI agents: 73 Playwright tools — auth, E2E, a11y/SEO/GEO, Web Vitals + Lighthouse
Unavailable. This server has no hosted endpoint yet, so ahel can't serve it.
Connect ahel once, and every AI you use reads what you have installed.
From the project's README
As published by segentic-lab/periscope-mcp in README.md.
An MCP server that gives AI agents 74 Playwright tools to QA, test, and analyze web apps — static sites, SPAs, and apps behind a login — returning hard verdicts, not screenshots to squint at. Not a thin wrapper around browser APIs; the tools are shaped around how agents actually work:
- Hard results, not screenshot-squinting —
assert_conditionreturnspassed: true/falsewith the actual value; checks return structured issues. - One call instead of ten —
auto_fill_formdetects, infers, and fills a whole form;interact_and_testbatches 25 action types with checks;test_projectcrawls and audits an entire site. - Real web-app testing — persistent authenticated sessions (form/basic/ cookie auth, plus a visible interactive login for 2FA/SSO/CAPTCHA that then runs headless), multi-step flows, network mocking, state snapshots, and real INP measured from the interactions it drives.
- Honest responses — failures say what happened and what to do next (expired session vs. browser crash vs. eviction); silent no-ops like ignored drags come back flagged, not as fake success.
- Debugging built in — captured API response bodies, console/network logs, network mocking, and state snapshots/diffs, no setup calls needed.
- Audits agents can't get from a browser binding — accessibility, SEO, and GEO/agentic-search readiness (robots.txt AI-crawler access, llms.txt, WebMCP), plus real Lighthouse.
Playwright + headless Chrome underneath; site crawling, responsive testing, and screenshot diffing on top. Works with any MCP client — Claude Code, Codex, Cursor, Windsurf, Gemini CLI, custom agents, or anything else that speaks MCP over stdio.
Why not just playwright-mcp?
playwright-mcp is excellent at what it is: general browser control over MCP, with tools that mirror Playwright's own API. If the job is "browse this site, click around, extract something," use it.
Periscope exists for a different job: testing and auditing a site or web app, then reporting findings — and its tools encode the testing knowledge an agent would otherwise have to reinvent every session:
| Raw browser control | Periscope | |
|---|---|---|
| Verifying an outcome | Read a screenshot or DOM dump and judge | assert_condition → hard passed: true/false + actual value |
| Filling a form | One call per field, agent invents test data | auto_fill_form — detects fields, infers realistic data, reports per-field failures |
| Auth | Re-login by scripting clicks each session | Projects persist form/basic/cookie auth; sessions share the logged-in context |
| Site-wide audit | Loop pages manually | test_project — crawl + accessibility/SEO/GEO/visual/functionality checks + saved report |
| Diagnosing a broken page | Ask for logs, replay requests | Response bodies, console, and network are captured automatically; mock APIs with intercept_network |
| Silent failures | Drag "succeeds," nothing moved | Flagged in the result, with the recovery path spelled out |
| AI-readiness audits | — | robots.txt AI-crawler access, llms.txt, WebMCP annotations, JSON-LD, plus real Lighthouse scores |
The two aren't rivals — an agent can happily use playwright-mcp for browsing tasks and Periscope when it's wearing the QA hat. Periscope's design bets are simply about that hat: fewer, higher-level calls; structured verdicts instead of raw page state; and errors written to tell the agent what to do next.
Architecture
MCP client (AI agent) --> MCP Server (stdio) --> Playwright (Headless Chrome)
| |
+-- Projects (JSON) +-- Persistent Sessions
+-- Screenshots (PNG) +-- Network Interception
+-- Reports (JSON) +-- Device Emulation
+-- Videos (WebM)
How it works: your MCP client connects to this server over stdio. The server exposes 74 tools the agent can call to create projects, configure authentication, crawl websites, run static checks, and interactively test web applications using persistent browser sessions. Results (JSON + screenshots + videos) are returned to the agent for analysis.
Project Structure
periscope-mcp/
├── server.py # MCP server entry point (stdio wiring + dispatch)
├── tool_schemas.py # All 74 MCP tool definitions (schemas)
├── runtime.py # Shared singletons (project store, sessions, browser)
├── coercion.py # Argument coercion for MCP clients with stale schemas
├── handlers/ # Tool handlers, grouped by category
│ ├── registry.py # @tool(name) decorator + HANDLERS registry
│ ├── projects.py # create/list/get/delete project
│ ├── auth.py # form login, basic auth, cookies, copy_auth
│ ├── static_testing.py # test_url, crawl, test_project, reports, responsive
│ ├── session_tools.py # open/close/list sessions, viewport, history
│ ├── interactive.py # click, fill, steps, element queries, dialogs
│ ├── analysis.py # forms, links, keyboard nav, tables, toasts, contrast
│ ├── advanced.py # network mocking, storage, iframes, emulation, recording
│ ├── agent_speed.py # assertions, smart find, auto-fill, snapshots
│ ├── web.py # web_search, web_fetch
│ ├── discovery.py # describe_tools catalog
│ └── system.py # periscope_system: status, self-update, agents_md
├── tester.py # Playwright browser control + test orchestration
├── crawler.py # Page discovery (BFS crawl, same-domain only)
├── projects.py # Project CRUD + auth config storage
├── auth.py # Authentication handlers (form, basic, cookies)
├── sessions.py # SessionManager + PageSession — persistent page lifecycle
├── interactions.py # Interaction primitives (click, fill, execute_steps)
├── utils.py # Screenshot comparison (Pillow pixel diff)
├── config.py # Global settings (timeouts, paths, session limits)
├── checks/
│ ├── visual.py # Broken images, favicon, overflow, small text
│ ├── accessibility.py # Alt text, labels, headings, lang, ARIA, keyboard nav
│ ├── functionality.py # Broken links, forms, SEO, performance, link checker
│ └── geo.py # GEO/agentic search: robots.txt AI crawlers, llms.txt, WebMCP, JSON-LD
├── tests/ # Unit tests (no browser) + tests/e2e/ (real browser + fixture pages)
├── data/ # Created at runtime (gitignored — contains credentials)
├── Dockerfile
├── docker-compose.yml
└── .mcp.json.example # MCP registration template (copy to .mcp.json)
Prerequisites
- Python 3.11+
- Playwright + Chromium browser
Installation (Local)
Quick install (Debian/Ubuntu)
One command — clone and install:
git clone https://github.com/segentic-lab/periscope-mcp.git && cd periscope-mcp && ./install.sh
Fully unattended (no confirmation prompts):
git clone https://github.com/segentic-lab/periscope-mcp.git && cd periscope-mcp && ./install.sh -y
Already cloned? Just run ./install.sh from the repo directory.
The script installs apt prerequisites, creates the venv, installs Python
dependencies and Playwright's Chromium, runs a headless self-test, and
generates mcp-config.json with the correct absolute paths for this install
(copy or merge it into your project's .mcp.json). Useful flags:
./install.sh --system-chromium— use an existing Chromium/Chrome (setsCHROMIUM_PATH) instead of downloading Playwright's build./install.sh --skip-deps— never touch apt / use sudo./install.sh -y— non-interactive (no confirmation prompts)
On any other platform the script doesn't modify your system — it prints the
exact commands to run for your OS (./install.sh --manual macos|fedora|arch|suse|windows to pick explicitly).
Updating
./update.sh
Pulls the latest source from GitHub (git pull --ff-only) and refreshes the
install: Python dependencies, Playwright browser (kept on system Chromium if
that's what the install uses), the registry + headless-launch self-test, and a
regenerated mcp-config.json. Works on any platform with an existing install.
Your data/ directory (projects, credentials, screenshots, reports) is never
touched.
./update.sh --force— stash local modifications to tracked files first (recover withgit stash pop)./update.sh --full— also re-check apt prerequisites on Debian/Ubuntu (uses sudo)
If you have local modifications, the script refuses and lists them instead of overwriting.
Manual install
# Clone the repo
cd periscope-mcp
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Install Chromium for Playwright
playwright install chromium
Installation (Docker)
docker compose up -d
See Docker Deployment section below.
Connecting an MCP Client
Periscope is a standard stdio MCP server: point any MCP client at
venv/bin/python server.py and you're done. ./install.sh generates
mcp-config.json with the correct absolute paths for your machine; most
clients accept that shape directly:
{
"mcpServers": {
"periscope": {
"command": "/path/to/periscope-mcp/venv/bin/python",
"args": ["/path/to/periscope-mcp/server.py"]
}
}
}
Client-specific examples:
- Claude Code — copy the config into the project as
.mcp.json(cp .mcp.json.example .mcp.jsonand adjust paths), or runclaude mcp add periscope -- /path/to/venv/bin/python /path/to/server.py - Cursor / Windsurf — add the block above to
~/.cursor/mcp.json/~/.codeium/windsurf/mcp_config.json - Codex CLI — add to
~/.codex/config.toml:[mcp_servers.periscope]withcommandandargsas above - Custom agents — any MCP SDK client can spawn the server over stdio with the same command and args
After configuring, restart your client.
Teaching your agent to use the tools
Two options, depending on your agent:
-
Claude Code (recommended): install the skill.
SKILL.md(repo root; also exposed atskills/periscope/in the Claude Code skill layout) is a Claude Code skill — it auto-triggers on web-testing tasks and loads a distilled operating guide (workflow decision table + the pitfalls) only when needed, costing ~0 context otherwise:ln -s "$(pwd)/skills/periscope" ~/.claude/skills/periscopeA symlink keeps it current with
./update.sh(copy the folder instead if you prefer a frozen version). -
Any other MCP client: paste the guide.
AGENTS.mdcontains a ready-made system-prompt block — workflows, tool-selection guidance, and known pitfalls. Paste its contents into your agent's system prompt (or custom instructions).
Either way, the agent can always fetch the current full guide from the running
server via periscope_system(action="agents_md") and the complete catalog via
describe_tools().
MCP Tools Reference (74 tools)
Project Management (4 tools)
| Tool | Description | Required Params |
|---|---|---|
create_project | Create a new testing project | name, base_url |
list_projects | List all projects | (none) |
get_project | Get project details | name |
delete_project | Delete project + data | name |
Authentication (7 tools)
| Tool | Description | Required Params |
|---|---|---|
set_form_login | Configure username/password form login | project, login_url, username, password |
set_basic_auth | Configure HTTP Basic Auth | project, username, password |
set_cookies | Inject session cookies | project, cookies (array) |
login_project | Execute login using configured auth | project |
interactive_login | Open a visible window to log in by hand (2FA/SSO/CAPTCHA), then save_login | project |
save_login | Capture the manual-login session; the project then runs authenticated + headless | project |
copy_auth | Copy auth config + session state between projects | from_project, to_project |
For logins that can't be automated — 2FA/MFA, SSO/OAuth redirects, CAPTCHA, magic
links — use interactive_login (opens a real browser window; requires a display
on the server), complete the login yourself, then save_login. It captures the
authenticated session (cookies + localStorage) into the project, and every
future headless session reuses it. Re-run when the session expires (Periscope
flags that automatically — see the auth-expiry detection in test_project).
Static Testing (3 tools)
| Tool | Description | Required Params |
|---|---|---|
test_url | Test a single URL (screenshot + checks) | url |
crawl_project | Discover all pages from base URL | project |
test_project | Full audit: crawl + test all pages | project |
Results (4 tools)
| Tool | Description | Required Params |
|---|---|---|
get_screenshot | Get screenshot file path | project, url |
list_reports | List saved test reports | (optional: project) |
get_report | Read a report file | report_path |
session_report | HTML+PDF dossier of every tool call this run — args (redacted), verdicts, timings, screenshots | (none) |
Session Management (5 tools)
Sessions keep browser pages alive across tool calls, enabling multi-step interactive workflows.
| Tool | Description | Required Params |
|---|---|---|
open_session | Open persistent browser session (headed=true for a visible window) | url |
close_session | Close session and free resources | session_id |
list_sessions | List all active sessions | (none) |
set_viewport | Switch viewport size (8 device presets or custom w/h) | session_id |
select_page | Adopt a popup/new tab (OAuth, target=_blank) as a new drivable session | session_id |
set_viewport presets: mobile_sm (320x568), mobile (375x812), mobile_lg (428x926), tablet (768x1024), tablet_lg (1024x1366), laptop (1366x768), desktop (1920x1080), desktop_lg (2560x1440)
Interactive Actions (7 tools)
| Tool | Description | Required Params |
|---|---|---|
click_element | Click element (force=true bypasses overlays) | session_id, selector |
fill_form | Fill form fields, optionally submit | session_id, fields |
select_option | Native <select> or custom dropdown (Radix/shadcn) — auto-detects | session_id, selector |
interact_and_test | Multi-step workflow with 25 actions (see below) | steps |
get_page_elements | List matching elements with attributes | selector |
flow | Save / run / list / delete named step sequences (reusable workflows) | (varies by action) |
scroll_into_view | Scroll element into viewport without clicking | session_id, selector |
interact_and_test supports 25 step actions:
click, force_click, fill, force_fill, type, select, select_option, wait, wait_for, wait_for_text, screenshot, navigate, hover, press_key, check, uncheck, scroll_to, scroll_within, evaluate_js, drag, right_click, go_back, go_forward, upload_file, wait_for_network
Analysis (10 tools)
| Tool | Description | Required Params |
|---|---|---|
test_form_validation | Analyze form validation messages | (url or session_id) |
compare_screenshots | Pixel diff between two screenshots | screenshot1, screenshot2 |
visual_check | Named visual-regression baselines: set once, check for a hard pass/fail | session_id, name |
test_responsive | Test at mobile/tablet/desktop viewports | url |
check_links | Comprehensive link checker (internal + external) | (url or session_id) |
measure_interaction | Measure click-to-result timing | session_id, selector |
get_table_data | Parse HTML table into structured JSON (headers → cell values) | session_id |
get_toast_messages | Capture visible toast/notification messages | session_id |
run_lighthouse | Real Google Lighthouse audit: 0-100 scores, Core Web Vitals, failed audits (needs Node.js) | url |
get_interaction_log | Export real INP time series (per interaction) as JSON/CSV + percentile stats | session_id |
Workflow Speed (8 tools)
| Tool | Description | Required Params |
|---|---|---|
screenshot_session | Quick screenshot of current page state | session_id |
run_checks_on_session | Run checks on active session (no new page) | session_id |
navigate_session | Browser history: back, forward, or reload | session_id, action |
handle_dialog | Accept/dismiss JS alert/confirm/prompt (call BEFORE trigger) | session_id, action |
upload_file | Set file(s) on <input type="file"> | session_id, selector, files |
wait_for_network | Wait for specific API URL pattern to complete | session_id, url_pattern |
wait_for_gone | Wait for element to disappear (modal close, spinner gone) | session_id, selector |
get_page_html | Raw outerHTML of elements, or full page HTML | session_id |
Advanced Testing (9 tools)
| Tool | Description | Required Params |
|---|---|---|
intercept_network | Mock API responses (test error/empty/loading states) | session_id, url_pattern |
clear_intercepts | Remove network mocks (all, or by pattern) | session_id |
get_local_storage | Read localStorage or sessionStorage | session_id |
set_local_storage | Write to localStorage or sessionStorage | session_id, entries |
select_iframe | Switch into iframe content (returns new session) | session_id, selector |
get_computed_style | Get actual rendered CSS values | session_id, selector, properties |
emulate_network | Throttle network: slow_3g, fast_3g, offline, reset | session_id, preset |
test_dark_mode | Toggle prefers-color-scheme dark/light | session_id, mode |
download_file | Click a trigger and capture the downloaded file (path, sha256, text preview) | session_id, selector |
Recording & Console (3 tools)
| Tool | Description | Required Params |
|---|---|---|
record_session | Record workflow as video | url, steps |
test_keyboard_navigation | Tab-order and focus indicator audit | (url or session_id) |
get_console_errors | Get all console errors/logs (passive monitoring) | session_id |
AI Agent Speed Tools (10 tools)
| Tool | Description | Required Params |
|---|---|---|
assert_condition | Programmatic pass/fail: text_contains, element_exists, url_contains, etc. | session_id, assertion |
assert_all | Batch assertions — every verdict in one call, no early abort | session_id, assertions |
get_page_map | Semantic page map: roles, names, states + ready selectors in one call | session_id |
find_element | Smart finder by text, tag, role, or proximity to another element | session_id |
auto_fill_form | Auto-detect fields, infer types, fill with test data. One call = many fills. | session_id |
get_network_log | All captured network requests (URL, status, method, type) | session_id |
get_response_body | Actual API response body text (diagnose 400/500 errors) | session_id, url_pattern |
page_state | Named checkpoints: snapshot / restore / diff page state | session_id, action, name |
get_cookies | Read all cookies from session | session_id |
check_color_contrast | WCAG AA/AAA contrast ratio checks on text elements | session_id |
Web, Discovery & System (4 tools)
| Tool | Description | Required Params |
|---|---|---|
web_search | Search DuckDuckGo: titles + URLs + snippets | query |
web_fetch | Fetch URL → readable Markdown (or text/html); render=true runs JS in headless Chromium (+ project for behind-login), contains gates the fetch, save writes a clean .md artifact | url |
describe_tools | Structured catalog of all tools with workflows and tips | (none) |
periscope_system | Install status + update check/apply + fetch current AGENTS.md | (none) |
Test Checks
Visual (checks/visual.py)
- Broken images (incomplete load or 0 natural width)
- Missing favicon
- Horizontal overflow / layout issues
- Very small text (< 12px)
- Missing body background color
- Images without explicit width/height dimensions
Accessibility (checks/accessibility.py)
- Images missing
alttext (decorative images exempt:alt="",role="presentation"/"none",aria-hidden) - Links and buttons without accessible names (checks text,
aria-label, resolvablearia-labelledby,title,img[alt], svg<title>;aria-hiddenelements exempt) - Form inputs without associated labels (
label[for], wrapping label,aria-label/aria-labelledby,title) - Heading hierarchy (missing H1, multiple H1, skipped levels)
- Missing
langattribute on<html> - Duplicate
idvalues (breaklabel[for]and aria references) - ARIA validity: unknown
rolevalues,aria-labelledby/describedby/controls/owns/activedescendantreferences to non-existent ids - Missing skip navigation link (scans the first 5 links)
- Elements with
tabindex > 0 - Keyboard navigation audit (tab order, visible focus indicators, element-identity cycle detection) — via
test_keyboard_navigationtool
Functionality (checks/functionality.py)
- Broken internal links (HTTP HEAD check, up to 20 links in
check_functionality) - Comprehensive link checker with external link support (up to 100 links) — via
check_linkstool - Forms without action or submit button
- Orphan buttons outside forms
- External links missing
target="_blank" - Required form field count
- Autocomplete disabled inputs
SEO (checks/functionality.py -> check_seo)
- Page title: missing, too long (> 60 chars), or very short (< 15 chars)
- Meta description: missing, too long (> 160 chars), or very short (< 50 chars)
- Missing viewport meta tag
- Missing canonical URL
- H1 heading: missing or more than one
- Open Graph: missing entirely, incomplete core tags (
og:title/description/image/url), non-absoluteog:image, missingtwitter:card - JSON-LD structured data: missing or unparseable blocks
noindexvia robots meta orX-Robots-Tagresponse header- robots.txt blocking search engine crawlers (Googlebot, Bingbot, DuckDuckBot, ...) — error if all are blocked
- Site-wide (via
test_project): duplicate titles / meta descriptions across pages, reported undersite_issues
GEO / Agentic Search (checks/geo.py -> check_geo)
Generative Engine Optimization — is the site readable and usable by AI crawlers, answer engines, and in-browser agents:
- robots.txt blocking AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended, CCBot, and 11 more)
llms.txtpresence and format compliance (Markdown with at least one H1)- WebMCP integration: declarative
<form toolname>annotations present and complete (tooldescription), form coverage ratio, and — when the browser exposesdocument.modelContext— registered tool enumeration with schema/name/description validation - JSON-LD structured data presence (what answer engines cite from)
Shortened here. Read the whole README on GitHub.
Signals
- GitHub stars
- 10
- Last commit
- Jul 2026
Advanced
- Delivery
- periscope-mcp MCP server → your ahel gateway (mcp.ahel.ai) → every connected AI client.
- Catalog kind
- mcp-server
- Gateway key
io-github-segentic-lab-periscope-mcp- Source
- github.com/segentic-lab/periscope-mcp