API & CLI / MCP

Model Context Protocol

Your site’s growth data, in your AI assistant.

Mimetic connects AI assistants to website audits, analytics, advertising, and experiment results to identify revenue opportunities and implement reviewable improvements.

Connect the accounts you use, then ask about traffic, revenue, search, ad performance, visitor friction, and A/B test results. Tools operate on sites your Mimetic account can access.

Connect to Mimetic

Set up (recommended)

One command finds the AI apps on your computer, adds Mimetic to each one and signs you in through the browser. No global install, and no API key written into any app.

npx -y @mimeticinc/mim-cli setup

Or add it to one app

Every app connects to the same server and signs you in with OAuth:

https://mcp.trymimetic.com/mcp?toolsets=diagnose,data
Cursor

Add to Cursor Cursor asks you to sign in the first time it uses Mimetic.

Claude Code
claude mcp add --transport http --scope user mim "https://mcp.trymimetic.com/mcp?toolsets=diagnose,data"

Then run /mcp in Claude Code and pick mim to sign in.

Claude (web and desktop)

Settings, Connectors, Add custom connector, paste the URL, then Connect.

Codex
codex mcp add mim --url "https://mcp.trymimetic.com/mcp?toolsets=diagnose,data"

Codex opens Mimetic sign-in in your browser.

ChatGPT

Settings, Apps & Connectors, turn on developer mode, Create, paste the URL.

VS Code

Add to VS Code or Command Palette, MCP: Add Server, HTTP, paste the URL.

Your app discovers OAuth 2.1, opens Mimetic sign-in, and asks you to approve access. It uses PKCE (S256); access tokens last an hour and refresh automatically. For help revoking a connection, contact support.

Toolsets

The URL above loads the diagnose and data toolsets, which keep your assistant's context small. Add setup for connect, disconnect and setup tools, or account for billing, for example ?toolsets=diagnose,data,setup. A URL with no toolsets loads every tool. A read-only (mcp:read) sign-in only sees read tools.

Connect tools never take API keys in chat. They return a link to a Mimetic page where you sign in and approve OAuth, or enter the key in our own form.

Terminal, scripts and CI

To run mim commands in your terminal as well, install it globally (Node.js 20 or newer):

npm install -g @mimeticinc/mim-cli
mim setup

For CI and apps without browser sign-in, mim mcp headless prints a config that sends your key from the MIM_API_TOKEN environment variable. The old local relay (mim setup --local) still works but no longer receives updates. See the client setup guide and npm package.

Start with list_projects. No sites yet? Ask your assistant to scan one: it calls start_scan, then list_audit_findings when the scan finishes. For an existing site, get_growth_overview gives the summary. Connections and plan requirements are described by each tool. See pricing.

What to ask

Investigate landing-page performance

Compare landing-page revenue and sessions over the last 28 days with the previous period.

Tools: query_ga4, query_gsc

Use experiment results

Review results from my connected experimentation platform and suggest what to test next.

Tools: query_experiments

Review visitor friction

Review recent recordings for recurring bugs and UX friction, with evidence for each proposed change.

Tools: review_recent_recordings

Example tool request

After authenticating, this request asks for your connected site’s landing-page sessions and revenue. Replace your-site.com with a project returned by list_projects.

{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"query_ga4","arguments":{"project":"your-site.com","metrics":["sessions","totalRevenue"],"dimensions":["landingPage"],"start_date":"28daysAgo","end_date":"yesterday"}}}

The response contains your requested GA4 report rows. Audit findings require verification, recording insights cover a consent-gated sample, and experiment conclusions depend on the connected provider’s measurements.

Access and permissions

mcp:read allows project data and reports. mcp:write is required for setup and configuration actions. A connected provider may require its own consent. Tool calls enforce account, project, and plan access.

Use the descriptions below to understand each action before approving it. Code fixes use the Mimetic CLI or report workflow and produce work you can review. MCP returns recording summaries and redacted insights; it does not return raw replay event payloads.

OAuth resource metadata · Authorization server metadata · Privacy

Live tool catalog

These 47 definitions come from the same catalog as MCP tools/list. This page and its JSON version are public. Connecting to MCP and executing tools require authentication.