# Connect Promptfoo to Your AI Agent (Universal MCP)

> Use your AI to monitor performance, analyze data, and audit security in Promptfoo — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http promptfoo https://api.universalmcp.app/mcp/promptfoo`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/promptfoo` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "promptfoo", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: Promptfoo | Category: DevOps & IT/Security (Promptfoo) | Auth: Guided workspace authorization
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Eval runs and results, CI pipeline logs, Issue drafts; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/promptfoo | Guide: https://universalmcp.app/mcp/promptfoo
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (3 actions: 0 Read, 3 Write)
Perform 3 actions across eval runs and results, CI pipeline logs, and issue drafts. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Eval runs and results (1):** Eval runs and results (write)
- **CI pipeline logs (1):** CI pipeline logs (write)
- **Issue drafts (1):** Issue drafts (write)

## Example Prompts for Promptfoo
- **Regression diff:** "Which Promptfoo test assertions changed pass or fail status between this run and the main baseline?"
- **Model cost compare:** "Compare Promptfoo token usage and latency per model config for the latest eval, as a short table."
- **Red team findings:** "Summarize Promptfoo red team findings by category, with severity and the affected prompt names."
- **Fix ticket draft:** "Draft a Promptfoo regression issue for the refund-policy prompt in the repo, saved as draft only."
