|
| 1 | +--- |
| 2 | +id: logto-mcp-server |
| 3 | +title: Logto MCP Server |
| 4 | +sidebar_position: 7 |
| 5 | +--- |
| 6 | + |
| 7 | +# Logto MCP Server |
| 8 | + |
| 9 | +Logto MCP Server is a remote [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) server. Add the URL to your AI application, sign in with your Logto Cloud account, and start talking to Logto. |
| 10 | + |
| 11 | +## What you can do |
| 12 | + |
| 13 | +- **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. |
| 14 | +- **Ask questions about Logto**: The AI searches Logto documentation and gives you answers with sources. |
| 15 | + |
| 16 | +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. |
| 17 | + |
| 18 | +## Set up in your AI application |
| 19 | + |
| 20 | +### VS Code |
| 21 | + |
| 22 | +1. Open the command palette (`Command + Shift + P`), and select **MCP: Add Server...**. |
| 23 | +2. Choose **HTTP** as the server type. |
| 24 | +3. Enter the URL: `https://mcp.logto.io`. You can choose to install it to your workspace for better isolation and management. |
| 25 | +4. When the OAuth flow starts, enter the App ID: `mcp-client`. Leave the App Secret empty and press Enter to skip. |
| 26 | +5. You will be redirected to the Logto Cloud sign-in page. Sign in with your Logto Cloud account to connect. |
| 27 | + |
| 28 | +### Cursor |
| 29 | + |
| 30 | +1. Open the command palette (`Command + Shift + P`), and select **View: Open MCP Settings**. |
| 31 | +2. In the **Installed MCP Servers** section, click the **Add Custom MCP** button. |
| 32 | +3. In the `mcp.json` file that opens, add the following configuration: |
| 33 | + |
| 34 | +```json |
| 35 | +{ |
| 36 | + "mcpServers": { |
| 37 | + "logto": { |
| 38 | + "command": "npx", |
| 39 | + "args": [ |
| 40 | + "mcp-remote", |
| 41 | + "https://mcp.logto.io", |
| 42 | + "--allow-http", |
| 43 | + "--static-oauth-client-info", |
| 44 | + "{ \"client_id\": \"mcp-client\", \"scope\": \"mcp:all\" }", |
| 45 | + "--resource", |
| 46 | + "https://mcp.logto.io/" |
| 47 | + ] |
| 48 | + } |
| 49 | + } |
| 50 | +} |
| 51 | +``` |
| 52 | + |
| 53 | +A Logto Cloud sign-in page will appear automatically. Sign in with your Logto Cloud account to connect. |
| 54 | + |
| 55 | +### Claude Desktop |
| 56 | + |
| 57 | +1. Open **Settings** from the main menu, navigate to **Connectors**, and click **Add custom connector**. |
| 58 | +2. Enter the name `Logto MCP Server` and the remote MCP server URL: `https://mcp.logto.io`. |
| 59 | +3. Expand **Advanced settings** and enter the OAuth Client ID: `mcp-client`. Click **Add**. |
| 60 | +4. In the **Connectors** list, find **Logto MCP Server** and click **Connect**. |
| 61 | +5. You will be redirected to the Logto Cloud sign-in page. Sign in and authorize to connect. |
| 62 | + |
| 63 | +### Other MCP clients |
| 64 | + |
| 65 | +Logto MCP Server works with any MCP client that supports OAuth authorization. Use the following configuration: |
| 66 | + |
| 67 | +- **MCP server URL:** `https://mcp.logto.io` |
| 68 | +- **OAuth client ID:** `mcp-client` |
| 69 | +- **Resource:** `https://mcp.logto.io/` (if your client requires it) |
| 70 | +- **Scope:** `mcp:all` (if your client requires it) |
| 71 | + |
| 72 | +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](https://logto.io/contact) with your application details. |
0 commit comments