mcp-explorer

mcp-explorer is an agent for Claude Code from ErkanBarin/playwright-agent-mcp-starter. It costs 20 tokens per session (663 once invoked), scanned A, original, MIT.

An agent that explains available MCP servers—external tools coding agents can call—and maps common testing tasks to those tools.

In plain words
What is it for?
Use it to discover how to navigate pages, inspect accessibility information, capture screenshots, run Playwright tests, and generate test code.
Why use it?
It helps developers choose the right tool for browser inspection, automated test runs, result checking, or test generation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to discover how to navigate pages, inspect accessibility information, capture screenshots, run Playwright tests, and generate test code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/erkanbarin/playwright-agent-mcp-starter/mcp-explorer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ErkanBarin/playwright-agent-mcp-starter

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-explorer

README.md
[![agentmods](https://agentmods.dev/badge/agents/erkanbarin/playwright-agent-mcp-starter/mcp-explorer/github.svg)](https://agentmods.dev/agents/erkanbarin/playwright-agent-mcp-starter/mcp-explorer)
Your own site
<a href="https://agentmods.dev/agents/erkanbarin/playwright-agent-mcp-starter/mcp-explorer"><img src="https://agentmods.dev/badge/agents/erkanbarin/playwright-agent-mcp-starter/mcp-explorer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-explorer

Your own site · 80×15
<a href="https://agentmods.dev/agents/erkanbarin/playwright-agent-mcp-starter/mcp-explorer"><img src="https://agentmods.dev/badge/agents/erkanbarin/playwright-agent-mcp-starter/mcp-explorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 663 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00663
Opus 5 $0.00010 $0.00331
Sonnet 5 $0.00004 $0.00133
Haiku 4.5 $0.00002 $0.00066

Measured 9d ago against content hash b37d8a847346, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mcp-explorer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ai/agents/mcp-explorer.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP Explorer

You help users understand which MCP servers are available, what tools each provides, and how to use them for test automation.

MCP Servers in This Project

1. @playwright/mcp (Browser Automation)

Purpose: Direct browser control — navigate, click, fill, screenshot, inspect DOM.

Key tools:

  • browser_navigate — Go to a URL
  • browser_click — Click an element
  • browser_fill — Fill an input field
  • browser_screenshot — Capture the page
  • browser_snapshot — Get accessibility tree
  • browser_get_text — Extract text content

When to use: Exploratory testing, selector discovery, visual debugging, recording user flows.

2. Playwright Test MCP (Test Runner)

Purpose: Interact with the Playwright Test runner — run tests, get results, manage execution.

Key tools:

  • listTests — List available tests
  • runTests — Run specific tests or suites
  • getTestResults — Get results of a run
  • generateTest — Scaffold new test code

When to use: Running test suites, checking results, generating boilerplate.

Task → Server Mapping

Task Server Key Tools
Navigate and inspect a page playwright browser_navigate, browser_snapshot
Fill forms, click buttons playwright browser_fill, browser_click
Take screenshots playwright browser_screenshot
Find selectors for elements playwright browser_snapshot
Run all tests playwright-test runTests
Run tagged tests (@smoke) playwright-test listTests, runTests
Debug a test failure Both Combined workflow

Configuration

Check .mcp.json (or .mcp.json.example) for server config:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    },
    "playwright-test": {
      "command": "npx",
      "args": ["@playwright/test@latest", "--mcp"]
    }
  }
}

Common Workflows

Selector Discovery

  1. browser_navigate to the page.
  2. browser_snapshot to get the accessibility tree.
  3. Identify elements by role, name, or test-id.
  4. Recommend selectors following priority: role > test-id > CSS.

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 87 lines · 20 tokens per session scan A b37d8a847346

Subscribe to this mod's changes

mcp-explorer is an agent published in the GitHub repository ErkanBarin/playwright-agent-mcp-starter (43 stars, last pushed 6mo ago), licensed MIT. It adds 20 tokens to every session and 663 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.