Skip to content
Lovelace

Local Lattice Server

Give a coding agent the Lattice running on your computer

lattice-ctl mcp is an MCP server over stdio that connects a coding agent to the Lattice already running on the same computer. The agent can check whether local models are ready, list them, run tasks, and read status, all on your machine. No account or API key is involved.

The server forwards to the running Lattice; it never starts a second copy. When Lattice is not running, the first tool call starts it.

Prerequisites#

Lattice installed on this computer. If it is not, run lattice-ctl setup, or see installation.

Register the server#

bash
bash
claude mcp add lattice -- lattice-ctl mcp

Verify with claude mcp list.

The agent starts lattice-ctl mcp itself when a session begins. If lattice-ctl is not on the agent's PATH, use its full path as the command.

Tools#

Every tool carries a title and read-only and destructive hints, so clients can run read-only tools without asking. No tool deletes anything.

ToolWhat it doesRead-only
get_readinessReports whether Lattice runs, its local API answers, and a model is readyYes
list_local_modelsLists the local models and the local API base URLYes
submit_taskQueues a task for an agentNo
get_task_statusGets a task's state and resultYes
list_tasksLists queued, running, and finished tasksYes
get_queue_statusGets task counts and average wait and run timesYes
list_agentsLists running agentsYes
get_healthGets Lattice health by componentYes
get_metricsGets resource, agent, and queue metricsYes
get_daemon_statusGets state, version, uptime, and active agents and tasksYes
ping_daemonChecks that Lattice respondsYes
list_workspacesLists workspacesYes
get_current_workspaceGets the default workspaceYes
switch_workspaceSets the default workspaceNo

get_readiness never starts Lattice; the other tools start it when it is not running. To send model calls to the local models, point an OpenAI client at the local OpenAI-compatible API.

Errors#

Tool failures come back as MCP error results with a structured code the agent can act on:

json
{
  "error": {
    "code": "daemon_unavailable",
    "message": "Lattice is not reachable on this computer (...). Run `lattice-ctl setup` to install and start it."
  }
}

daemon_unavailable means Lattice is not installed or could not start. Other codes come from Lattice itself, such as not_found for an unknown task id.

Local vs Remote#

FeatureLocal (lattice-ctl mcp)Remote
TransportstdioStreamable HTTP
AuthenticationNoneAPI key or OAuth
ReachesThe Lattice on this computerYour Lovelace account
Runs whereCoding agents on your computerEvery MCP client
DeploymentYour machinemcp.uselovelace.com

Using Both#

You can register both servers. See Client Setup for the remote server's configuration.

Troubleshooting#

"lattice-ctl: command not found": install Lattice from the installation guide, or register the full path to lattice-ctl.

Tools return daemon_unavailable: run lattice-ctl setup, then lattice-ctl ping to confirm Lattice responds.

get_readiness reports no_local_model: run lattice-ctl setup to download the default local model.