skills/latchbio-integration/references/latch-mcp.md
Latch provides a remote Model Context Protocol server:
https://mcp.latch.bio/mcp
It lets compatible AI clients discover workflows and interact with Latch Data and executions through an OAuth-authorized tool surface.
Never copy OAuth tokens between these authentication domains.
Add:
{
"mcpServers": {
"LatchBio": {
"url": "https://mcp.latch.bio/mcp"
}
}
}
Then open Cursor Settings → Tools & MCP(s), select LatchBio, click Connect, and complete OAuth.
claude mcp add --transport http latchbio https://mcp.latch.bio/mcp
Run /mcp and complete OAuth.
codex mcp add latchbio --url https://mcp.latch.bio/mcp
codex mcp login latchbio
For another MCP client, configure the same remote HTTP URL and follow that client's OAuth flow.
The current guide lists:
| Tool | Purpose |
|---|---|
list_files | List immediate children of a Latch Data directory |
list_workspaces | List accessible workspaces and the default |
list_workflows | Discover workspace and public workflows |
get_workflow_schema | Retrieve launch metadata and parameter schema |
launch_workflow | Launch with schema-compatible values |
list_executions | Filter executions by workspace, workflow, name, or status |
get_execution | Get status, task nodes, result files, and Console URL |
get_task_logs | Get inline logs or a signed URL for complete logs |
Tool names and schemas can evolve. Discover the connected server's current tools before calling them.
Select a workspace
list_workspaces.Discover rather than guess
list_workflows.Fetch the schema
get_workflow_schema.Resolve data
list_files only for the minimum directories needed.Prepare a launch summary
Confirm
Launch
launch_workflow once.Monitor
get_execution.get_task_logs only for relevant nodes.list_workspaces
→ choose workspace 12345
→ list_workflows
→ choose Bulk RNA-seq version X
→ get_workflow_schema
→ validate sample paths and output directory
→ present launch summary and request confirmation
→ launch_workflow
→ get_execution until terminal status
→ get_task_logs only if a task fails
Use:
latch_cli.services.launch.launch_v2 for Python automationlatch ls or LPath for data inspectionlatch get-executions remains in
2.76.8 but is deprecated and scheduled for removalDo not simulate a missing MCP tool by inventing undocumented HTTP endpoints.