# Connect OptiPub to Your AI Agent (Universal MCP)

> Use your AI to run campaigns, analyze data, and publish content in OptiPub — and much more.

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

## Key Facts
- Software: OptiPub | Category: Marketing & Analytics (OptiPub) | Auth: Guided workspace authorization
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Campaign performance, Subscriber segments, Send drafts; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/optipub | Guide: https://universalmcp.app/mcp/optipub
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (14 actions: 7 Read, 7 Write)
Perform over 10 actions across engagement tracking, revenue attribution, campaign building, testing and optimization, and lead capture. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Engagement Tracking (3):** Track Campaign Interactions (read), Analyze Multi-Level Engagement (read), Review Engagement by Channel (read)
- **Revenue Attribution (3):** Tie Revenue to Campaigns (read), Track Revenue Sources (read), Compare Campaign Revenue (read)
- **Campaign Building (3):** Create Automated Funnel (write), Manage Dynamic Subscription Lists (write), Schedule Multi-Channel Campaign (write)
- **Testing and Optimization (3):** Create Split Test Variation (write), Compare Split Test Results (read), Optimize Message Before Send (write)
- **Lead Capture (2):** Build Lead Capture Form (write), Capture Newsletter Signup (write)

## Example Prompts for OptiPub
- **Test leaderboard:** "Rank OptiPub split tests by revenue per send across email and web for the last 30 days."
- **Audience segments:** "Compare OptiPub engagement by segment for subscribers who opened the last three newsletters."
- **Revenue report:** "Summarize OptiPub revenue attribution by channel for the top five publications this month."
- **Send draft:** "Draft a subject line variant for the next Evening Digest in OptiPub and hold it for approval."
