Use case
Multi-tenant MCP for SaaS: tool access for each customer's agents
Your product has customers, and their agents need their Slack, their GitHub, their CRM: never another customer's. Programmable Dev keeps every customer's accounts apart and gives every agent its own endpoint and rules, so you don't build an OAuth store, a permission model and a call log yourself.
Tenants and actors, with your own ids
- A tenant is whoever owns connected accounts: one of your customers, workspaces or users. Connections, usage and limits belong to it, and one tenant never sees another's.
- An actor is one caller inside a tenant: an agent, a bot, a workflow. Grants, caps and the call log are per actor.
- You name both with your own ids; your server creates them with the app key.
https://programmable.dev/mcp/<tenant>/<actor> Authorization: Bearer pdt_… (minted by your server, at most 15 minutes)
Customers connect their own accounts
Your server starts a connect session; the customer opens our hosted page, signs in at the provider or pastes a key, and comes back to your site with a connection id. The credential never passes through your app or your agents. Pin a link to the person's email so a leaked link is useless to anyone else. A tenant holds up to 100 connections.
Limits and usage per customer
- Calls a minute per app and, if you set them, per tenant.
- Spending limits per actor per month, per tenant per day and month, and per app per month, with a warning before each is reached.
- Usage and the call history per tenant, with your own cost labels, and a CSV export.
- Default grants: an app-wide policy, and a tenant's own stricter one, so a new agent or connection starts with conservative rules instead of none.
- Tenant-scoped app keys, for an integration that should only ever reach one customer, and test-mode keys that see only test tenants.
When a customer leaves
Deleting a tenant removes its access and connections (revoking tokens at the provider where it can), expires its pending approvals and keeps the call log anonymised.
Start with how it fits together and the quickstart.
Try it on your own app
Sign in, make an app and connect a test account from the dashboard. The docs cover every endpoint, the MCP endpoint and the grant rules.