MCPcopy
hub / github.com/logto-io/logto

github.com/logto-io/logto @v1.41.0 sqlite

repository ↗ · DeepWiki ↗ · release v1.41.0 ↗
6,448 symbols 31,263 edges 5,604 files 307 documented · 5%
README

  <img width="200" src="https://github.com/logto-io/logto/raw/master/logo.png" alt="Logto logo">

discord checks release core coverage cloud gitpod render

Logto

Logto is the modern, open-source auth infrastructure for SaaS and AI apps.

It takes the pain out of OIDC and OAuth 2.1 and makes it easy to build secure, production-ready auth with multi-tenancy, enterprise SSO, and RBAC.

websiteclouddocsapiblogauth wikinewsletter

Logto features

Why Logto?

Built for teams scaling SaaS, AI, and agent-based platforms without the usual auth headaches.

With Logto, you get:

  • Multi-tenancy, enterprise SSO, and RBAC: ready to use, no workarounds.
  • Pre-built sign-in flows, customizable UIs, and SDKs for 30+ frameworks.
  • Full support for OIDC, OAuth 2.1, and SAML without the protocol pain.
  • Works out-of-the-box for Model Context Protocol and agent-based AI architectures.

🗺️ See all features →

Get started

Pick your path:

Wait for the message App is running at https://3002-...gitpod.io, then click the URL starting with https://3002- to continue.

  • Local development:

```bash # Using Docker Compose(requires Docker Desktop) curl -fsSL https://raw.githubusercontent.com/logto-io/logto/HEAD/docker-compose.yml | \ docker compose -p logto -f - up

# Using Node.js (requires PostgreSQL) npm init @logto ```

📚 Full OSS installation guide →

Integrate anywhere

Logto supports all your apps, APIs, and services with industry-standard protocols.

  • SDKs for 30+ frameworks: React, Next.js, Angular, Vue, Flutter, Go, Python, and more.
  • Connect to any IdP: Google, Facebook, Azure AD, Okta, and more.
  • Flexible integration: SPAs, web apps, mobile apps, APIs, M2M, CLI tools.
  • Ready for Model Context Protocol and agent-based architectures.

🚀 Explore quick starts →

🔌 See all connectors →

Showcase

Developer-first SDKs: Install in minutes with clear guides.

Logto auth SDK showcase

User-friendly auth flows: Sign-up, sign-in, social login, Google One Tap, MFA, SSO.

Logto sign-in experience showcase

Multi-tenancy & organizations: Organization RBAC, member invites, just-in-time provisioning, and more.

Logto multi-tenancy showcase

Support Logto

If you find Logto helpful, here's how you can support us:

Licensing

MPL-2.0.

⬆️ Back to top

Extension points exported contracts — how you extend this code

IOpenAPISchemaValidator (Interface)
(no doc) [5 implementers]
packages/integration-tests/src/include.d/openapi-schema-validator.d.ts
SvgComponent (Interface)
(no doc)
packages/console/src/assets/index.d.ts
Body (Interface)
(no doc)
packages/toolkit/core-kit/declaration/dom.d.ts
Array (Interface)
(no doc)
packages/core/src/include.d/array.d.ts
ImportMeta (Interface)
(no doc)
packages/shared/src/include.d/import-meta.d.ts
SvgComponent (Interface)
(no doc)
packages/experience/src/assets/index.d.ts
CustomTypeOptions (Interface)
(no doc)
packages/account/src/include.d/i18next.d.ts
Body (Interface)
(no doc)
packages/tunnel/src/include.d/dom.d.ts

Core symbols most depended-on inside this repo

assertThat
called by 658
packages/core/src/utils/assert-that.ts
create
called by 508
packages/integration-tests/src/api/factory.ts
filter
called by 498
packages/core/src/include.d/array.d.ts
get
called by 458
packages/core/src/tenants/index.ts
expectRejects
called by 447
packages/integration-tests/src/helpers/index.ts
get
called by 390
packages/integration-tests/src/api/factory.ts
koaGuard
called by 382
packages/core/src/middleware/koa-guard.ts
waitFor
called by 349
packages/integration-tests/src/utils.ts

Shape

Function 4,953
Method 858
Class 401
Enum 195
Interface 41

Languages

TypeScript100%

Modules by API surface

packages/integration-tests/src/api/admin-user.ts36 symbols
packages/integration-tests/src/client/experience/index.ts33 symbols
packages/core/src/routes/experience/classes/mfa.ts31 symbols
packages/integration-tests/src/client/index.ts28 symbols
packages/integration-tests/src/api/my-account.ts28 symbols
packages/core/src/queries/user.ts28 symbols
packages/core/src/routes/experience/classes/experience-interaction.ts27 symbols
packages/core/src/saml-application/SamlApplication/index.ts26 symbols
packages/core/src/routes/experience/classes/verifications/code-verification.ts26 symbols
packages/core/src/routes/experience/classes/libraries/sign-in-experience-validator.ts26 symbols
packages/integration-tests/src/utils.ts24 symbols
packages/integration-tests/src/helpers/sign-in-experience.ts24 symbols

Dependencies from manifests, versioned

@apidevtools/swagger-parser10.1.0 · 1×
@authenio/samlify-node-xmllint2.0.0 · 1×
@aws-sdk/client-s33.556.0 · 1×
@aws-sdk/client-sesv23.556.0 · 1×
@aws-sdk/types3.535.0 · 1×
@azure/msal-node2.0.0 · 1×
@azure/storage-blob12.17.0 · 1×
@changesets/cli2.26.2 · 1×
@commitlint/cli19.0.0 · 1×
@commitlint/config-conventional19.0.0 · 1×
@commitlint/types19.0.0 · 1×
@fontsource/roboto-mono5.0.0 · 1×

Datastores touched

logtoDatabase · 1 repos
postgresDatabase · 1 repos

For agents

$ claude mcp add logto \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact