Connect MemoryCode to LM Studio (MCP)

LM Studio can load MCP servers from an application-managed mcp.json. MemoryCode uses the same @memorycode/mcp-server package as other clients. Menus and labels in LM Studio change between releases — use their documentation if a button name no longer matches.

Typical config paths

  • macOS / Linux: ~/.lmstudio/mcp.json
  • Windows: %USERPROFILE%\.lmstudio\mcp.json

In the app, look for Program → Install → Edit mcp.json (or search Settings / Help for "MCP"). See also LM Studio MCP documentation.

Server snippet

Add a memorycode entry alongside your other servers. Use your real absolute path to the exported JSON file:

{
  "mcpServers": {
    "memorycode": {
  "command": "npx",
  "args": [
    "-y",
    "@memorycode/mcp-server",
    "--file",
    "/absolute/path/to/memorycode-mcp.json"
  ]
}
  }
}

After saving

Restart LM Studio or reload MCP according to their current UI. Then confirm the MemoryCode tools list includes get_user_profile and get_expertise (and any other tools your package version exposes).

Interactive setup

Copy paths, diagnostics, and fallbacks for every supported client.

Open MCP setup guide →
MemoryCode MCP for LM Studio — Local Models With Your Context