Saltar al contenido principal

Logto MCP Server

Logto MCP Server is a remote MCP (Model Context Protocol) server. Add the URL to your AI application, sign in with your Logto Cloud account, and start talking to Logto.

tip:

Logto MCP Server is built with Logto and MCP Auth. If you want to build your own remote MCP server, see Build your own remote MCP server.

What you can do

  • Add authentication to your project: The AI detects your framework, creates a Logto application, and generates working integration code. Supports 38+ frameworks including React, Next.js, Vue, Nuxt, SvelteKit, Express, Go, Python, iOS, Android, Flutter, and more.
  • Ask questions about Logto: The AI searches Logto documentation and gives you answers with sources.

More capabilities are coming soon, including sign-in experience configuration, RBAC and permission management with best practice guidance, multi-tenancy setup for building B2B apps with organizations, and more.

Set up in your AI application

VS Code

  1. Open the command palette (Command + Shift + P), and select MCP: Add Server....
  2. Choose HTTP as the server type.
  3. Enter the URL: https://mcp.logto.io. You can choose to install it to your workspace for better isolation and management.
  4. When the OAuth flow starts, enter the App ID: mcp-client. Leave the App Secret empty and press Enter to skip.
  5. You will be redirected to the Logto Cloud sign-in page. Sign in with your Logto Cloud account to connect.

Cursor

  1. Open the command palette (Command + Shift + P), and select View: Open MCP Settings.
  2. In the Installed MCP Servers section, click the Add Custom MCP button.
  3. In the mcp.json file that opens, add the following configuration:
{
"mcpServers": {
"logto": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.logto.io",
"--allow-http",
"--static-oauth-client-info",
"{ \"client_id\": \"mcp-client\", \"scope\": \"mcp:all\" }",
"--resource",
"https://mcp.logto.io/"
]
}
}
}

A Logto Cloud sign-in page will appear automatically. Sign in with your Logto Cloud account to connect.

Claude Desktop

  1. Open Settings from the main menu, navigate to Connectors, and click Add custom connector.
  2. Enter the name Logto MCP Server and the remote MCP server URL: https://mcp.logto.io.
  3. Expand Advanced settings and enter the OAuth Client ID: mcp-client. Click Add.
  4. In the Connectors list, find Logto MCP Server and click Connect.
  5. You will be redirected to the Logto Cloud sign-in page. Sign in and authorize to connect.

Other MCP clients

Logto MCP Server works with any MCP client that supports OAuth authorization. Use the following configuration:

  • MCP server URL: https://mcp.logto.io
  • OAuth client ID: mcp-client
  • Resource: https://mcp.logto.io/ (if your client requires it)
  • Scope: mcp:all (if your client requires it)

If you are an AI application developer and want to support connecting to Logto MCP Server, but Logto MCP Server does not yet support your application's redirect URI, please contact us with your application details.

Build your own remote MCP server

Logto MCP Server is built with Logto and MCP Auth. If you want to build your own remote MCP server with authentication, check out the following resources: