1. Conduid
  2. Blockchain
  3. Client MCP Core
MCP server · Blockchain

Client MCP Core

MCP server for MetaMask Extension visual testing with LLM agents

53Fair

Scored 8 hours ago · breakdown

About Client MCP Core

Client MCP Core is an MCP server published by MetaMask in the Blockchain category: mCP server for MetaMask Extension visual testing with LLM agents. Conduid read 60 tools from its source: Advanced, Batching, Contracts, Discovery, Interaction, Lifecycle and 54 more. It is published to npm as @metamask/client-mcp-core and starts with npx.

The repository has 2 stars and 1 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include playwright, visual-testing and browser-extension.

Install

Claude Code
claude mcp add client-mcp-core -- npx -y @metamask/client-mcp-core
npx
npx -y @metamask/client-mcp-core
From source
git clone https://github.com/MetaMask/client-mcp-core

Tools (60)

Advanced
Batching
Contracts
Discovery
Interaction
Lifecycle
Navigation
Screenshots
State
accessibility_snapshotCaptures a trimmed accessibility tree of the current page with deterministic refs (`e1`, `e2`, ...). Supports scoping to a root CSS selector.
buildTriggers an extension build using the configured `BuildCapability`. Accepts build type and force options.
cdpSends a raw Chrome DevTools Protocol command, dispatched through the active platform driver. Browser: targets the active page (`target: "page"`, default) or the Extension service worker (`target: "sw"`) on a persistent CDP session shared across calls, so enabled domains and listeners survive; `fresh: true` uses a one-shot session. Full Runtime/DOM/Network/Page surface; destructive methods (`Browser.close`, `Target.closeTarget`, etc.) are blocked. Mobile (iOS/Android): targets the app's React Native Hermes JS runtime via Metro's inspector proxy (delegates to `@metamask/device-mcp`, needs a DEBUG build with Metro running); only the JS-engine subset exists (`Runtime`, `Debugger`, `Log`, `HeapProfiler` — no DOM/Page/Network) and `Runtime.terminateExecution` / `Inspector.detached` are blocked. Optional `metroPort` / `appId` are mobile-only (ignored on browser). Categorized as `cdp`: no observation is collected and refs are not refreshed, so run `describe_screen` after a call that changes state. See Browser vs Mobile CDP.
cleanupTears down the active browser session and cleans up all resources (browser, services, fixtures).
clickClicks an element identified by a11y ref, test ID, or CSS selector. Waits for the element to be visible before clicking. Supports `within` to scope the target inside a parent element, and `frame` (browser) to target inside an iframe. Browser: a visually hidden (at most 1×1 pixel) checkbox or radio with one label is toggled by clicking its label, and the result has `clickedLabel: true`.
clipboardReads from or writes to the system clipboard via Chrome DevTools Protocol. Useful for pasting seed phrases or copying addresses.
close_appTerminates an app by `bundleId`. Mobile only.
close_tabCloses a browser tab matching a given role or URL. Falls back to the extension tab if the active tab is closed.
describe_screenCaptures a comprehensive screen snapshot: extension state, visible test IDs, trimmed a11y tree with refs (visible iframes included, refs `f1e1`, ...), and optional screenshot. Browser: `frame` lists only the content of that iframe.
device_clipboardReads (`read`) or writes (`write` + `text`) the device clipboard. Distinct from the browser `clipboard` tool (which uses CDP). Mobile only.
device_contextLists native/webview contexts (`list`) or switches to one (`switch` + `name`). Mobile only.
device_logsFetches device logs with optional `durationSeconds` and `filter`. Read-only. Mobile only.
device_swipeSwipes the screen in a `direction` (`up`/`down`/`left`/`right`), with optional `startX`/`startY`/`distance`. Mobile only.
dismiss_alertDismisses a native alert, accepting it when `accept` is true. Mobile only.
dismiss_keyboardDismisses the on-screen keyboard. Mobile only.
eventsBookmarks or clears the session event buffer that `mm logs` and `mm network` read: `mark` returns the current cursor (one cursor for both) and `summary.startedAt`; `clear` empties it without resetting the cursor. The buffer starts with a browser session and keeps the newest 1000 console and 2000 network records. Browser only.
generate_locatorsGenerates ranked locator suggestions (identifier > label > text > type, with confidence) for every interactive element on the current screen, by walking the device snapshot. Read-only. Mobile only.
get_alert_textReturns the text of a visible native alert. Read-only. Mobile only.
get_contextReturns the current environment context (`e2e` or `prod`), session status, available capabilities, and whether context switching is allowed.
get_contract_addressLooks up the deployed address of a contract by name from the session's deployment registry.
get_stateRetrieves the current extension state (URL, screen, network, balance, account) and tracked tab information. On mobile the state is partial (`source: 'stub'`): fields that were not read from the app are omitted, not guessed.
get_textReads the text content of an element identified by a11y ref, test ID, or CSS selector. Returns the text, target descriptor, and character length. Supports `within` and `frame` scoping. Categorized as read-only (no observations in response).
hermes_targetsLists and diagnoses the debuggable Hermes targets Metro exposes (iOS and Android), reporting which target would be chosen or why selection is ambiguous. Use to confirm Metro is running and the app is registered. Pass `all` to bypass the appId filter and discover the real appId. Mobile only — there is no browser equivalent.
hoverBrowser only. Moves the pointer over an element (a11y ref, test ID, or selector) with Playwright's `locator.hover()`, so its hover state shows. Waits for the element like `click`; supports `timeoutMs` (default 15 000), `within` and `frame`.
inspectBrowser only. Reads an element's attributes, `disabled` and `readOnly` flags, computed `styles` (`styles` input, default `color`, `background-color`, `opacity`, `cursor`) and `effectiveOpacity` (opacity including ancestors), so two elements can be compared by value. Read in an isolated world, so Extension page restrictions do not apply. Supports `within` and `frame` scoping. Categorized as read-only.
launchLaunches a new browser session with the configured extension. Supports state modes (`default`, `onboarding`, `custom`), fixture presets, tag metadata, and optional contract seeding on start.
list_contractsLists all contracts deployed in the current session with addresses and deployment timestamps.
list_testidsCollects all visible `data-testid` attributes from the current page with text previews and visibility status.
logsRead-only. Console errors and uncaught exceptions of every page and the Extension service worker, from the session event buffer: `{ records, cursor, hasMore, gap, summary }`, oldest first, with `cursor`/`since`/`limit`/`grep`. Records `error` only by default; `configure` widens the levels for the session (`warn` is accepted as `warning`). Object and array arguments are rendered from their CDP preview (a sensitive property name prints `[REDACTED]`), and a leading format string fills its `%s`/`%d`/`%o` specifiers. URLs in the text and the values of sensitive object fields (`privateKey`, `mnemonic`, `password`, …) are redacted; plain string contents are not scanned (JWTs and `Bearer` tokens excepted). Text is cut at 2000 characters. Browser only.
long_pressLong-presses an element (a11y ref, test ID, or selector) for an optional `durationMs`. Mobile only.
mock_networkAdds, clears, lists, and inspects targeted Playwright network mocks on the active browser context. Unmatched same-origin requests are continued unchanged. A rule with `record` and no `response` records the real request and forwards it unchanged. Rules can opt in to record request bodies and headers (redacted).
navigateNavigates the browser to a named screen (`home`, `settings`, `notification`) or an arbitrary URL.
networkRead-only, passive. HTTP(S) requests of every page and the Extension service worker, from the session event buffer: one record per request with method, redacted URL, type, status, duration (`ms`), `failure`, JSON-RPC `rpcMethods` and, after `configure` with `rpcErrors`, the JSON-RPC `rpcError`. Filters: `cursor`, `since`, `limit`, `url` (glob or text), `errors`, `settled`; a filtered or `settled` read returns settled requests only, ordered by `settledSeq`. Never routes or changes a request; no bodies are stored. Browser only.
open_appLaunches or foregrounds an app by `bundleId`. Mobile only.
press_buttonPresses a hardware/system button. One of `home`, `back`, `enter`, `lock`. Mobile only.
reloadReloads the active page, keeping its URL and hash route. Discards in-memory page state such as cached API data, so the page fetches again through the current network mocks. Browser only.
reset_viewportBrowser only. Restores the viewport the active page had before its first `set_viewport`. Returns `reset: false` when `set_viewport` was not used on the page.
run_stepsExecutes a batch of tool invocations sequentially. Supports `stopOnError` to halt on first failure, a top-level `observe` level for the single observation collected after the batch (default `diff`; without one, the last executed step's `observe` is used), and `batchTimeoutMs` (1 000–30 000 ms) to set an overall deadline (checked between steps; remaining steps are skipped, partial results are returned). The daemon queue and the CLI wait for the deadline plus the slowest step's own timeout, so a step in progress is never cut off by `MM_QUEUE_TIMEOUT`; without `batchTimeoutMs` the call keeps the daemon queue default (30 s, or 180 s when the host sets it). Accepts tool aliases like `navigate_home` / `navigate-home`. Returns per-step results with timing.
screen_recordingStarts (`start`, optional `outputPath`) or stops (`stop`) a screen recording. When provided, `outputPath` is sandboxed to the configured `artifactsDir` (paths escaping it are rejected). Read-only. Mobile only.
screenshotCaptures a screenshot of the current page. Supports naming, full-page capture, scoping to a CSS selector, and optional base64 output. Browser: `frame` captures an iframe, or the `selector` element inside it; a selector that matches no element fails fast with `MM_TARGET_NOT_FOUND`.
scroll_to_elementScrolls until an element (a11y ref, test ID, or selector) is visible. Browser: waits for the element (`timeoutMs`, default 15 000), then scrolls it into view, also inside a scrollable container; supports `within`; ignores `direction` and `maxAttempts`. Mobile: swipes until the target is inside the viewport, not only in the UI tree, and returns `swipes`, `inViewport` and `bounds`; `direction` is the content direction (`down` reveals content below), default `auto` picks it from the element's position; `maxAttempts` = maximum swipes (default 10); fails with `MM_TARGET_NOT_VISIBLE` (found, not in view) or `MM_TARGET_NOT_FOUND`; `within` is rejected.
seed_contractDeploys a single smart contract to the local Anvil chain by name. Requires `ContractSeedingCapability`.
seed_contractsDeploys multiple smart contracts in sequence. Returns both successful deployments and individual failures.
set_contextSwitches the session environment between `e2e` and `prod` modes. Blocked while a session is active.
set_viewportBrowser only. Sets the active page's viewport to `width` × `height` CSS pixels (width 100–7680, height 100–4320). It stays across reloads of that page. Returns the new size and `original`, the size before the first change.
switch_to_tabSwitches the active page to a tab matching a given role (e.g., `extension`, `dapp`) or URL prefix.
tap_coordinatesTaps raw `x`/`y` screen coordinates. Mobile only.
typeTypes text into an input element identified by a11y ref, test ID, or CSS selector. Clears the field first, then sets the new value (uses Playwright's `fill()`). Supports `within` and `frame` scoping. On the browser, a read-only or disabled element fails at once with `MM_ELEMENT_NOT_EDITABLE` instead of waiting for the timeout.
unhoverBrowser only. Moves the pointer off the page, so the hovered element loses its hover state and no other element gets one.
wait_forWaits for an element to become visible on the page within a configurable timeout. Supports `within` to scope the target inside a parent element, and `frame` (browser) to target inside an iframe.
wait_for_notificationWaits for the extension notification popup to appear within a timeout. Returns the notification page URL.

Security checks

  • ✓README presentThe repository's README runs to about 4.0K words.

5 checks have not been run yet.

README

The repository's README runs to about 4.0K words. The original in the repository is authoritative.

Read full README
Questions

About Client MCP Core

How do I install Client MCP Core?

In Claude Code, run claude mcp add client-mcp-core -- npx -y @metamask/client-mcp-core. Other MCP clients take the command after "--" in their server configuration.

Is Client MCP Core safe to use with an AI agent?

Its trust score is 53 out of 100 (fair). It passes all 1 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Client MCP Core still maintained?

Yes — the last commit was 22 hours ago. The repository has 2 stars and 1 forks.

What tools does Client MCP Core provide?

Conduid read 60 tools from the source: Advanced, Batching, Contracts, Discovery, Interaction, Lifecycle, Navigation, Screenshots and 52 more.