Ship a real API + MCP SaaS
in a single Python class.
A professional Django + FastMCP boilerplate with auth, billing, observability, and security baked in. Add one decorated endpoint — it's live as REST and as a Claude.ai / ChatGPT MCP tool.
# apps/app_endpoints/hello/endpoints.py @endpoint(slug="hello", version="v1", credits=0) class Hello(Endpoint): Input = HelloInput Output = HelloOutput async def run(self, inp, ctx): return HelloOutput(greeting=f"Hello, {inp.name}")
REST + MCP from one class
Decorate a Pydantic-typed run() and your endpoint exposes both an HTTP route and a Claude.ai / ChatGPT MCP tool — no duplicate code.
Stripe + credits, race-safe
Plans, subscriptions, credit packages, idempotent webhooks, and a ledger that won't go negative under load. Ship-and-charge from day one.
Magic-link + OAuth 2.1
Email-first sign-in for humans. PKCE + dynamic-client-registration OAuth for one-click MCP connectors.
Built-in observability
APICallLog, ErrorLog, p50/p95/p99 percentile rollups, structured JSON logs, and a Sentry hook that's opt-in via one env var.
Hardened by default
CSP, HSTS, security.txt, staff 2FA, idempotency keys, GDPR delete + export, brute-force lockouts. securityheaders.com grade A out of the box.
Operator console
Hand-built admin panel — users, plans, errors, performance, jobs, webhooks, audit, settings — all in one professional UI you can rebrand.