# Connect Lunary to Your AI Agent (Universal MCP)

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

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

## Key Facts
- Software: Lunary | Category: AI, Data & Automation (Lunary) | Auth: Encrypted workspace API key
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Trace and prompt reads, Prompt drafts stay private, Prompt inputs stay masked; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=lunary | Guide: https://universalmcp.app/mcp/lunary
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (3 actions: 0 Read, 3 Write)
Perform 3 actions across trace and prompt reads, prompt drafts stay private, and prompt inputs stay masked. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Trace and prompt reads (1):** Trace and prompt reads (write)
- **Prompt drafts stay private (1):** Prompt drafts stay private (write)
- **Prompt inputs stay masked (1):** Prompt inputs stay masked (write)

## Example Prompts for Lunary
- **Latency culprits:** "List the 20 slowest Lunary traces this week with model name, token counts, and the prompt version used."
- **Cost trend:** "Compare average Lunary cost per call across prompt versions over the last 14 days and flag any jumps above 25 percent."
- **Error clusters:** "Group Lunary trace errors by tool call and model provider, showing counts and first seen dates for each cluster."
- **Draft prompt variant:** "Draft a shorter support-summary prompt variant to cut token cost, and save it as a draft for review."
