Skip to content

Commit f78239b

Browse files
authored
docs: add Claude Code setup and update Claude Desktop flow for MCP server (#1375)
1 parent df0e3b5 commit f78239b

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

docs/logto-cloud/logto-mcp-server.mdx

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ title: Logto MCP Server
44
sidebar_position: 7
55
---
66

7+
import TabItem from '@theme/TabItem';
8+
import Tabs from '@theme/Tabs';
9+
710
# Logto MCP Server
811

912
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.
@@ -21,13 +24,37 @@ More capabilities are coming soon, including sign-in experience configuration, R
2124

2225
## Set up in your AI application \{#set-up-in-your-ai-application}
2326

27+
### Claude Code \{#claude-code}
28+
29+
<Tabs>
30+
<TabItem value="claude-mcp-add" label="claude mcp add">
31+
32+
```bash
33+
claude mcp add --transport http --client-id mcp-client --callback-port 8080 logto https://mcp.logto.io
34+
```
35+
36+
</TabItem>
37+
<TabItem value="claude-mcp-add-json" label="claude mcp add-json">
38+
39+
```bash
40+
claude mcp add-json logto '{"type":"http","url":"https://mcp.logto.io","oauth":{"clientId":"mcp-client","callbackPort":8080}}'
41+
```
42+
43+
</TabItem>
44+
</Tabs>
45+
46+
You can change `8080` to any available port on your machine.
47+
48+
Then, run `/mcp` in Claude Code and follow the browser login flow to authenticate with your Logto Cloud account.
49+
2450
### Claude Desktop \{#claude-desktop}
2551

2652
1. Open **Settings** from the main menu, navigate to **Connectors**, and click **Add custom connector**.
2753
2. Enter the name `Logto MCP Server` and the remote MCP server URL: `https://mcp.logto.io`.
2854
3. Expand **Advanced settings** and enter the OAuth Client ID: `mcp-client`. Click **Add**.
2955
4. In the **Connectors** list, find **Logto MCP Server** and click **Connect**.
30-
5. You will be redirected to the Logto Cloud sign-in page. Sign in and authorize to connect.
56+
5. You will first be redirected to the Claude web page. If you don't have an active session, sign in to your Claude account first.
57+
6. After signing in to Claude, you will be redirected to the Logto Cloud sign-in page. Sign in with your Logto Cloud account and authorize to connect.
3158

3259
### Cursor \{#cursor}
3360

0 commit comments

Comments
 (0)