# Connect Authlib to Your AI Agent (Universal MCP)

> Use your AI to build software, audit security, and monitor systems in Authlib — and much more.

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

## Key Facts
- Software: Authlib | Category: Other B2B Software (Authlib) | Auth: Encrypted API credentials or guided on-prem setup | Deployment: on-prem
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Client registrations, Token and scope settings, Config drafts; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=authlib | Guide: https://universalmcp.app/mcp/authlib
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (3 actions: 1 Read, 2 Write)
Perform 3 actions across client registrations, token and scope settings, and config drafts. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Client registrations (1):** Client registrations (write)
- **Token and scope settings (1):** Token and scope settings (read)
- **Config drafts (1):** Config drafts (write)

## Example Prompts for Authlib
- **Grant type audit:** "List every OAuth client in Authlib that still uses the implicit or password grant and the date each was last used."
- **Scope review:** "Show which scopes each OIDC client in Authlib requests and flag any that are broader than the consent screen shows."
- **Token lifetimes:** "Summarize access and refresh token lifetimes configured in Authlib and identify clients exceeding our 60-minute policy."
- **Draft client update:** "Draft a config change in Authlib moving mobile-app-ios to Authorization Code with PKCE and wait for my approval first."
