What Is Remote Access
Linkly AI runs on your local machine, while online AI applications like ChatGPT and Claude.ai run in the cloud — they cannot directly access your local knowledge base MCP service. TheRemote Access feature works by establishing a secure tunnel between your desktop and the cloud, enabling public internet relay:
- The desktop authenticates with an API Key and establishes a WebSocket tunnel connection to
mcp.linkly.ai - After OAuth authorization, the online AI application sends MCP requests to
https://mcp.linkly.ai/mcp - The cloud service forwards the requests through the tunnel to your desktop, which executes them and returns the results
mcp.linkly.ai is a cloud MCP relay service maintained by Linkly AI
officially. Data is transmitted anonymously through it, and Linkly AI only
records usage counts for display purposes.Configuration Steps
Register a Linkly AI account
Go to linkly.ai to register and log in.
Generate an API Key
In the Dashboard under “API Key Management”, click “New API Key” to generate a key starting with
lkai_.Connect the tunnel in the desktop app
Open Linkly AI Desktop, go to Settings → MCP, and find the “Remote Access” section:
- Paste the generated key into the API Key input field
- Click the “Connect Public Tunnel” button
- Wait for the status to show ● Connected
Add the MCP service in your AI application
In AI applications that support MCP (such as ChatGPT or Claude.ai), add the following MCP endpoint:The first time you add it, an OAuth authorization flow will be triggered. Follow the prompts to log in and authorize in your browser.For specific configuration instructions for each application, see the integration documentation.
OAuth Authorization Explained
When online AI applications like ChatGPT and Claude.ai connect to a remote MCP service for the first time, an OAuth 2.1 authorization flow is automatically triggered:- The AI application detects that the MCP endpoint requires authorization
- It automatically redirects to the linkly.ai login page
- After you log in and confirm authorization, the AI application receives an access token
- Subsequent requests automatically carry the token — no need to re-authorize
Security Considerations
- Protect your API Key: Your API Key is equivalent to your tunnel credential — do not share it with others. If you suspect it has been compromised, revoke it in the Dashboard and generate a new one
- HTTPS transmission: The remote tunnel uses HTTPS/WSS encrypted transmission throughout to ensure data security
- Revoke anytime: You can disconnect the tunnel in the desktop app at any time. Revoking the API Key in the Dashboard will prevent new connections and reconnections, but won’t immediately disconnect an already established tunnel session
- Data never leaves your machine: Your document data always stays on your local computer — the tunnel only forwards MCP tool call requests and responses
FAQ
Error: 'API Key is invalid'
Error: 'API Key is invalid'
Please check:
- Whether the API Key was pasted in full (it should start with
lkai_) - Whether the API Key has been revoked in the Dashboard
- Try generating a new API Key in the Dashboard
Desktop is offline, remote calls return an error
Desktop is offline, remote calls return an error
The remote MCP service requires the desktop app to be running with the tunnel connected. If the desktop is closed or the tunnel is disconnected, remote calls will immediately return a 503 error.Please ensure:
- Linkly AI Desktop is running
- The MCP service is running (shown as Running in settings)
- The tunnel status shows ● Connected
Tunnel connection dropped
Tunnel connection dropped
The tunnel has an automatic reconnection mechanism (up to 10 retries with exponential backoff). If disconnections occur frequently, check:
- Whether your network connection is stable
- Whether the API Key is still valid
OAuth authorization failed
OAuth authorization failed

