Sign in during Public Preview to get the Team plan free, plus an early-adopter discount when we launch. Sign in
Locally's built-in MCP server lets GitHub Copilot in Visual Studio Code interact with the resources running in Locally. This guide covers installing, configuring and uninstalling it.
Other Copilot variants (such as Copilot in JetBrains IDEs) can use the same MCP server, but are configured differently.
Locally can register the MCP server with VS Code for you:
$
locally mcp install copilot-vscode
Use the --force flag to overwrite an existing entry, which is useful in scripts or when updating an existing entry:
$
locally mcp install copilot-vscode --force
To check the registration status across all supported clients on your machine:
$
locally mcp list
To configure the MCP server yourself, run MCP: Open User Configuration from the Command Palette. This opens the mcp.json in your VS Code user profile, so the server is available across every workspace. Add a locally entry under servers - VS Code requires the type field to be set to "stdio":
{
"servers": {
"locally": {
"type": "stdio",
"command": "/path/to/locally",
"args": [
"mcp"
]
}
}
}
Replace /path/to/locally with the absolute path to the locally binary (which you can find by running which locally on macOS/Linux, or where locally on Windows). VS Code doesn't always use your shell's PATH, so a bare locally may not be found.
VS Code will need to be restarted to pick up the new MCP server.
To remove the entry that locally mcp install copilot-vscode added:
$
locally mcp uninstall copilot-vscode
If no Locally entry is present, the command will fail. Use the --force flag to make removal idempotent, which is useful in scripts:
$
locally mcp uninstall copilot-vscode --force
If you configured the MCP server manually, remove the locally entry from your user mcp.json instead.
The MCP Server page lists the tools Copilot can use, and the other AI tools locally mcp install supports. You can check what Copilot has created in the Locally Dashboard.
Sign in during Public Preview to get the Team plan free, plus an early-adopter discount when we launch. Sign in
Your Azure infrastructure, running on your machine. Deploy in seconds, break things freely, and ship to Azure when you're ready.