# Connect Portkey to Your AI Agent (Universal MCP)

> Use your AI to build software, review costs, and monitor performance in Portkey — and much more.

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

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

## Supported Actions (14 actions: 8 Read, 6 Write)
Perform over 10 actions across observability, prompt management, AI gateway, and guardrails. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Observability (4):** Search Request Logs (read), Review Latency and Cost Metrics (read), Trace Request Execution (read), Filter Logs by Model (read)
- **Prompt Management (4):** Create Prompt Template (write), Version Prompt Template (write), Search Prompt Library (read), Compare Prompt Versions (read)
- **AI Gateway (3):** Route LLM Requests (write), Configure Multi-Provider Routing (write), Review Connected LLM Providers (read)
- **Guardrails (3):** Create Guardrail Rule (write), Review Guardrail Violations (read), Update Guardrail Policy (write)

## Example Prompts for Portkey
- **Latency review:** "In Portkey, list the models whose p95 latency exceeded the target during the past seven days."
- **Spend breakdown:** "Using Portkey, break down estimated token spend by workspace and by model for the last month."
- **Guardrail trends:** "Summarize which Portkey guardrail policies blocked the most prompts this week and why."
- **Guarded config change:** "Draft a fallback routing change in Portkey, but wait for my approval before updating any live config."
