# Connect PromptLayer to Your AI Agent (Universal MCP)

> Use your AI to build software, analyze data, and run deployments in PromptLayer — and much more.

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

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

## Supported Actions (16 actions: 7 Read, 9 Write)
Perform over 10 actions across prompt management, evaluations, agent observability, and collaboration. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Prompt Management (5):** Version Prompt (write), Search Prompt Registry (read), Edit Prompt Visually (write), Test Prompt Change (write), Deploy Prompt Version (write)
- **Evaluations (5):** Create Regression Set (write), Run Dataset-Backed Evaluation (write), Configure Automated Grader (write), Submit Human Review (write), View Evaluation Results (read)
- **Agent Observability (5):** Inspect Agent Trace (read), Link Trace to Prompt Version (read), Analyze Agent Failures (read), Track Token Usage and Cost (read), Review Request Logs (read)
- **Collaboration (1):** Invite Domain Expert (write)

## Example Prompts for PromptLayer
- **Version history:** "Show PromptLayer version history for the support-triage prompt, with author, date, and the change note for each version."
- **Latency watch:** "List PromptLayer prompts whose median latency or token cost rose more than 15 percent in the last seven days."
- **Failed test cases:** "Summarize failing PromptLayer test cases for the invoice-extract prompt, grouped by error type and dataset."
- **Draft rollback note:** "Draft a PromptLayer rollback note for the support-triage prompt that the team can review before any change is made."
