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
- Product: prior.run
- API docs: prior.run/docs/api
- MCP docs: prior.run/docs/mcp
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file priorrun_mcp-0.1.0.tar.gz.
File metadata
- Download URL: priorrun_mcp-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47c0d459a7272621f2cdf238f733ff5faae2fadb17f96ce3612b09682cbc5b5d
|
|
| MD5 |
27af0dbe1b5d61a86499d5f9921c3fac
|
|
| BLAKE2b-256 |
b550dc56d72a051b46b0cb22ace7b4e9380a60206226b5e455f00438fff1121a
|
File details
Details for the file priorrun_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: priorrun_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77c68e2c02a5a0a8f600d2c05d64c52b3ad353231f09263322ea24367c981271
|
|
| MD5 |
28246f70803cec6bae72ae37bebbd3ed
|
|
| BLAKE2b-256 |
a1356da3e85f7361c98478f5b9ee862f2ea3c6f2eeb90cad0abada8414b231eb
|