Skip to main content

Run Prior.Run audience simulations from Claude Desktop, Claude Code, Cursor, or any MCP-compatible agent.

Project description

priorrun-mcp

MCP server for Prior.Run — run synthetic-audience simulations on design variants and ad creatives from Claude Desktop, Claude Code, Codex, Gemini CLI, Cursor, Windsurf, Cline, Zed, or any MCP-compatible agent.

Install

Requires Python 3.11+. Install uv if you don't have it.

uvx priorrun-mcp

That's it — uvx fetches and runs the server on demand.

Configure

Grab an API key from prior.run/settings, then register the server with your agent host.

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "prior-run": {
      "command": "uvx",
      "args": ["priorrun-mcp"],
      "env": {
        "PRIORRUN_API_KEY": "pr_live_xxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Claude Code

~/.claude/mcp.json (global) or .mcp.json in a project root:

{
  "mcpServers": {
    "prior-run": {
      "command": "uvx",
      "args": ["priorrun-mcp"],
      "env": { "PRIORRUN_API_KEY": "pr_live_..." }
    }
  }
}

Codex (OpenAI)

~/.codex/config.toml — TOML, not JSON:

[mcp_servers.prior-run]
command = "uvx"
args = ["priorrun-mcp"]

[mcp_servers.prior-run.env]
PRIORRUN_API_KEY = "pr_live_..."

Gemini CLI

~/.gemini/settings.json:

{
  "mcpServers": {
    "prior-run": {
      "command": "uvx",
      "args": ["priorrun-mcp"],
      "env": { "PRIORRUN_API_KEY": "pr_live_..." }
    }
  }
}

Cursor

~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):

{
  "mcpServers": {
    "prior-run": {
      "command": "uvx",
      "args": ["priorrun-mcp"],
      "env": { "PRIORRUN_API_KEY": "pr_live_..." }
    }
  }
}

Windsurf / Cline / Zed / other MCP hosts

All modern MCP hosts share the same mcpServers JSON shape used by Claude Code. Drop the same block into the host's MCP config file — check the host's docs for the exact path.

Tools

Tool What it does
create_memo_review single design review
create_memo_compare two design variants head-to-head
create_memo_multi 3–5 design variants
create_memo_flow two funnel flows (each 2–5 screens)
create_ads_single single ad creative evaluation
create_ads_compare two ad creatives head-to-head
create_ads_multi 3–5 ad creatives
get_memo fetch status + full memo JSON by id
wait_for_memo block until synthesis completes

Image arguments accept local file paths, https:// URLs, or base64. Create tools default to wait=True — the agent gets the completed memo in one tool call.

Example prompts

The agent picks the right tool from your wording. Say "ad creative" / "creative compare" / name a platform (Meta/TikTok/Google) for the ads tools, or "landing page" / "design compare" / "variant" for the design tools.

Design compare — evaluates the page itself (layout, hierarchy, CTA clarity, conversion readiness):

Run a Prior.Run design compare on ~/desktop/landing-a.png vs
~/desktop/landing-b.png targeting the gen_z audience template. Hypothesis:
the warmer palette will lift click-through.

→ agent calls create_memo_compare, full page-level synthesis, burns 1 analysis credit.

Ads compare — evaluates the creative as it would appear in-feed (scroll-stop, hook clarity, brand recall), platform-aware:

Run a Prior.Run ads compare on ~/desktop/creative-a.jpg vs
~/desktop/creative-b.jpg. Campaign context: Gen Z skincare awareness on TikTok.

→ agent calls create_ads_compare with run_platform="tiktok", ads-specific synthesis (scroll-stop, hook, brand recall, no landing-page critique).

Both return a completed memo (~90s) with verdict, audience quotes, and a memo URL.

Environment variables

Variable Required Default Notes
PRIORRUN_API_KEY yes pr_live_... format. Generate at prior.run/settings.
PRIORRUN_API_BASE no https://api.prior.run Override for staging or local dev.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

priorrun_mcp-0.1.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

priorrun_mcp-0.1.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file priorrun_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: priorrun_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for priorrun_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 781b45b9aca827c945858e33f01bf0e295100dddc782860804f556173cec3890
MD5 6cb385e3cc9e4730a9e93f629dc7478f
BLAKE2b-256 4655c762a9d0673df9c82992b18a24b90585c1af69d74d315abc80a45bed410f

See more details on using hashes here.

File details

Details for the file priorrun_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: priorrun_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for priorrun_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 10d8741789c85b2351691a29fa26f5b994beb53d627859059ac6163d01e04650
MD5 69a1b75b03120b48446fc0ad0e98948c
BLAKE2b-256 9153cfdffc9489e0582701752f8c47d783332526ee63faf66fdb468f44d15240

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page