Skip to content
LM Studio · local models

Connect LM Studio to Relay

Give LM Studio a memory it shares with your other AIs. Plans, progress and reviews saved in LM Studio can be picked up by any of the 38 AI tools Relay works with, and the other way round. It takes about two minutes.

How it connects
One command or config entry (MCP)

1. Get your connection link

  1. Sign in to Relay with Google. It's free during the beta.
  2. Click Connect an AI, pick LM Studio, then Create my connection link. Copy it straight away: it's shown only once.
  3. Below, YOUR-KEY stands for your link. The dashboard shows the same steps with your link already filled in.

2. Add Relay to LM Studio

  1. In LM Studio, open the Program tab (right sidebar) → Install → Edit mcp.json. (The file is ~/.lmstudio/mcp.json.)
  2. Paste this into the file. If it already has other servers, add only the "relay" part:
    {
      "mcpServers": {
        "relay": {
          "url": "https://mcp.relaymemory.app/mcp/YOUR-KEY"
        }
      }
    }
  3. Save. LM Studio loads it at once. In a chat with a model that supports tools, allow Relay's tools when asked.

Can't find a button or option? Ask LM Studio itself

Apps change their menus often. Paste this into LM Studio (with your own link instead of YOUR-KEY), and it will walk you through its current screens.

How do I add a custom MCP server to LM Studio? Please give me short, exact step-by-step instructions for the current version of LM Studio that I'm using: where to click, which options to choose, and where to paste the server address.

The server is called "Relay". It is a remote MCP server using Streamable HTTP, at this address:
https://mcp.relaymemory.app/mcp/YOUR-KEY

It needs no sign-in: no OAuth, no API key and no headers (the key is part of the address).
If LM Studio can't add custom MCP servers on my account or version, tell me that plainly.

3. Test it

Send this in LM Studio. It should answer from your Relay memory:

Pick up my latest plan from Relay.

Make it save on its own

  1. In a LM Studio session, send this once:
    In every conversation, store our work in Relay: save new plans, add progress updates as we go, and keep it up to date.
  2. LM Studio asks permission to use Relay. Choose Allow always, so it saves as you work. Deleting always asks you first.
  3. To keep it on in new sessions, add the same sentence to your project's instructions file (for example AGENTS.md).

Using Relay in LM Studio every day

  • Once added, Relay loads in every session. There's nothing to switch on.
  • When it asks to run a Relay tool, approve it. Most tools let you always allow it, so it stops asking.
  • Make it automatic: add this line to your project's instructions file (for example AGENTS.md), and it checks Relay on its own.
    At the start of a task, check Relay for the latest plan for this project. When you finish, add a progress update to Relay.

Things to say in LM Studio:

Save this plan to Relay for the project "My project".
Pick up my latest plan from Relay and continue it.
Save this to Relay with every decision and its reason, and what we tried that didn't work and why.
Add a progress update to Relay for this work.
Review the latest work in Relay and add your review.
Remember in Relay that I prefer short answers.
What's waiting for me in Relay?
LM Studio uses Relay's cloud endpoint, so it works even when Relay isn't running on your PC. LM Studio is free and runs models on your computer. Relay's tools only work with models that support tool calls.

Connect LM Studio in two minutes

Sign in with Google, connect your first AI and save your first handoff in a few minutes.

Join the free beta