# Connect Leanpub to Your AI Agent (Universal MCP)

> Use your AI to manage sales, publish content, and process payments in Leanpub — and much more.

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

## Key Facts
- Software: Leanpub | Category: Education & Nonprofit/Civic (Leanpub) | 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 Sales and refunds, Book catalog, Reader messages; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=leanpub | Guide: https://universalmcp.app/mcp/leanpub
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (18 actions: 5 Read, 13 Write)
Perform over 10 actions across author publishing, AI authoring tools, reader library, and membership & sales. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Author Publishing (6):** Create Book (write), Create Course (write), Create Track (write), Create Bundle (write), Publish Book on Amazon (write), Request Podcast Launch (write)
- **AI Authoring Tools (6):** Draft with GhostAI (write), Generate Index with IndexAI (write), Translate Book with TranslateAI (write), Create Audiobook with AudiobookAI (write), Create Videobook with VideobookAI (write), Outline Course with CourseAI (write)
- **Reader Library (4):** Browse Featured Books (read), Filter Catalog by Type (read), Receive Free Updates (read), Find Author Events (read)
- **Membership & Sales (2):** Compare Author Membership Tiers (read), Choose Author Membership (write)

## Example Prompts for Leanpub
- **Top-selling titles:** "List the top three Leanpub titles by revenue this quarter and note which ones are still being written."
- **Refund patterns:** "Explain why refunds rose on Leanpub ebook orders last week and which chapters readers mentioned."
- **Reader funnel:** "Compare sample opens and purchases for each Leanpub course to find the weakest step in the funnel."
- **Reader update draft:** "Draft a Leanpub update announcement to readers of the Python course, saved for my approval before sending."
