Skip to content

Commit 9f707a2

Browse files
committed
docs: add Logto MCP Server documentation
1 parent 1d86b09 commit 9f707a2

File tree

3 files changed

+86
-0
lines changed

3 files changed

+86
-0
lines changed

docs/logto-cloud/README.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,15 @@ If you have any questions about cloud services and need additional support, plea
7373
icon: <SystemLimit />,
7474
},
7575
},
76+
{
77+
type: 'link',
78+
label: 'Logto MCP Server',
79+
href: '/logto-cloud/logto-mcp-server',
80+
description:
81+
'Connect AI tools and IDEs to Logto Cloud via MCP to manage resources and integrate authentication.',
82+
customProps: {
83+
icon: <Developer />,
84+
},
85+
},
7686
]}
7787
/>
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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/) endpoint. 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: `<your-app-id>`. 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\": \"<your-app-id>\", \"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: `<your-app-id>`. 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:** `<your-app-id>`
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.

docs/logto-cloud/system-limit.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
sidebar_position: 6
3+
---
4+
15
# System limits
26

37
System limits keep Logto stable and fair for everyone. They are separate from billing.

0 commit comments

Comments
 (0)