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, Cursor, 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 / Cursor

~/.claude/mcp.json (Claude Code) or .cursor/mcp.json (Cursor):

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

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 prompt

Run a Prior.Run compare on ~/desktop/landing-a.png vs ~/desktop/landing-b.png
for a Gen Z skincare awareness campaign. Hypothesis: the warmer palette
will lift click-through.

The agent calls create_memo_compare, waits ~90s for synthesis, and hands you back the verdict, audience quotes, and 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.1.tar.gz (4.4 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.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: priorrun_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 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.1.tar.gz
Algorithm Hash digest
SHA256 19ec7c5873a33be1ca671cdfce0d82a885024e9e8f2f6d22ab7e84275736e2e8
MD5 37554864cbd38e20ab09cb3e74c4cc5f
BLAKE2b-256 d4c484335eaed8805f2732f856fc0feaaae5abec53e22dfce62f125823a9e971

See more details on using hashes here.

File details

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

File metadata

  • Download URL: priorrun_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f974e0530b08f14822962450f2dccfd1bb7dd2c895c5d6dfc197ff24234daf80
MD5 4916f679c561aee8e3a5172c6fe0094d
BLAKE2b-256 e79f317446506ea42dd5274b1c0d00b2d634189a75e74ad5f79817c03312fa77

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