> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the Latch Bio MCP server

The Latch Bio MCP connector routes your AI agent's tool calls to Latch Bio's own MCP server through Scalekit. Each user signs in to Latch Bio once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 9 tools.

**Authentication:** OAuth 2.1/DCR
**Categories:** AI, Developer Tools
**Tools:** 9: 8 read, 1 write, 0 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=LATCHBIOMCP)

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Latch Bio MCP connection

   In **AgentKit > Connections**, create a Latch Bio MCP connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   Scalekit credentials are available for Latch Bio MCP server, so you don't need to register an OAuth app.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'latchbiomcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Latch Bio MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'latchbiomcp_list_executions',
     toolInput: { rationale: 'YOUR_RATIONALE' },
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "latchbiomcp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Latch Bio MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={"rationale":"YOUR_RATIONALE"},
       tool_name="latchbiomcp_list_executions",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'latchbiomcp_get_execution',
  toolInput: {
    execution_id: 1,
    rationale: '<rationale>',
  },
  connector: 'latchbiomcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="latchbiomcp_get_execution",
    tool_input={
        "execution_id": 1,
        "rationale": "<rationale>",
    },
    connection_name="latchbiomcp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `latchbiomcp_get_execution`

Get Execution · Read-only

Fetch the status, task nodes, and results for a workflow execution. If a workflow errors, use get_task_logs to retrieve logs for failed tasks. Supports paginating through execution nodes and map-task shards.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `execution_id` (`integer`, required): Latch execution id returned by `launch_workflow`.
- `rationale` (`string`, required): Always provide a brief explanation of why you are calling this tool
- `execution_node_cursor` (`string`, optional): Opaque cursor from
                   `execution_nodes.next_cursor`.
- `execution_node_limit` (`integer`, optional): Max execution nodes to return, from 1 to 500. Default 100. Default: `100`.
- `map_task_cursor` (`string`, optional): Opaque cursor from a previous map-task page. Requires
             `map_task_execution_node_id`.
- `map_task_execution_node_id` (`string`, optional): Optional execution node id whose map-task
                        shard list should be paginated with
                        `map_task_cursor`.
- `map_task_limit` (`integer`, optional): Max map-task shards to return per map execution node,
            from 1 to 500. Default 100. Default: `100`.
- `result_cursor` (`string`, optional): Opaque pagination cursor from a previous `results.next_cursor`.
- `result_limit` (`integer`, optional): Max result files to return, from 1 to 100. Default 25. Default: `25`.

Example input: `{"execution_id":1,"rationale":"<rationale>"}`

### `latchbiomcp_get_file`

Get File · Read-only

Return access information for a file stored in Latch Data. Returns either a Latch Console link or a presigned download URL depending on the access mode.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `path` (`string`, required): Latch Data URL, for example
  `latch://3800.account/results/output.csv`.
- `rationale` (`string`, required): Always provide a brief explanation of why you are calling this tool
- `access` (`string`, optional): `console` returns a Console link. `download` returns a presigned
    file download URL. One of: `console`, `download`. Default: `console`.

Example input: `{"path":"<path>","rationale":"<rationale>"}`

### `latchbiomcp_get_task_logs`

Get Task Logs · Read-only

Fetch or share logs for a workflow task execution. Returns bounded inline log lines by default, or a presigned download URL for full logs when mode is download_url.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `execution_id` (`integer`, required): Latch execution id.
- `rationale` (`string`, required): Always provide a brief explanation of why you are calling this tool
- `array_attempt` (`string`, optional): Optional array task retry attempt.
- `array_index` (`string`, optional): Optional array task index.
- `mode` (`string`, optional): `inline` returns bounded log lines. `download_url` returns a
  presigned URL for downloading the full task log when available. One of: `inline`, `download_url`. Default: `inline`.
- `task_attempt` (`string`, optional): Optional task retry attempt.
- `task_id` (`string`, optional): Optional workflow task/node id. Required for
     `mode="download_url"` and usually available for standard tasks.
- `task_run_id` (`string`, optional): Optional process-style task run id.

Example input: `{"execution_id":1,"rationale":"<rationale>"}`

### `latchbiomcp_get_workflow_schema`

Get Workflow Schema · Read-only

Fetch the launch metadata and parameter schema for a workflow. Use this before launching a workflow to understand what parameters are required and their types.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `rationale` (`string`, required): Always provide a brief explanation of why you are calling this tool
- `workflow_id` (`integer`, required): Latch workflow id.

Example input: `{"rationale":"<rationale>","workflow_id":1}`

### `latchbiomcp_list_executions`

List Executions · Read-only

List workflow executions in a Latch workspace. Supports filtering by workflow IDs, execution status, and name. Use get_execution for full details on a specific execution.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `rationale` (`string`, required): Always provide a brief explanation of why you are calling this tool
- `limit` (`integer`, optional): Max executions to return, from 1 to 100. Default 25. Default: `25`.
- `name_filter` (`string`, optional): Optional display-name substring filter.
- `offset` (`integer`, optional): Row offset for pagination. Default 0. Default: `0`.
- `statuses` (`string`, optional): Optional execution statuses to restrict results to.
- `workflow_ids` (`string`, optional): Optional workflow ids to restrict results to.
- `workspace_id` (`string`, optional): Optional workspace/account id whose executions should be
          listed. Defaults to the user's default workspace. Leave
          null unless the user asks to use a specific workspace.

Example input: `{"rationale":"<rationale>"}`

### `latchbiomcp_list_files`

List Files · Read-only

List the immediate contents of a directory in Latch Data (ldata). Returns children only — does not recurse. Hidden and removed nodes are filtered out, matching what users see in the Latch console. Supports cursor-based pagination.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `path` (`string`, required): Latch Data URL, for example `latch://3800.account/dir1/foo`.
- `rationale` (`string`, required): Always provide a brief explanation of why you are calling this tool
- `cursor` (`string`, optional): Opaque pagination cursor from a previous response's `next_cursor`.
- `limit` (`integer`, optional): Max entries to return per call (1-1000). Default 100. Default: `100`.

Example input: `{"path":"<path>","rationale":"<rationale>"}`

### `latchbiomcp_list_workflows`

List Workflows · Read-only

Discover available bioinformatics workflows on Latch. Lists workspace-specific workflows first, followed by public workflows. Supports text search and cursor-based pagination.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `rationale` (`string`, required): Always provide a brief explanation of why you are calling this tool
- `cursor` (`string`, optional): Opaque pagination cursor from a previous response's `next_cursor`.
- `limit` (`integer`, optional): Max workflows to return, from 1 to 100. Default 25. Default: `25`.
- `search_term` (`string`, optional): Optional case-insensitive display-name substring filter.
- `workspace_id` (`string`, optional): Optional workspace/account id. Defaults to the user's
          default workspace when omitted. Leave null unless the
          user asks to use a specific workspace.

Example input: `{"rationale":"<rationale>"}`

### `latchbiomcp_list_workspaces`

List Workspaces · Read-only

Lists Latch workspaces the current user can access. Returns the default workspace ID and a list of all accessible workspaces with their IDs and display names. If default_workspace_id is null, the user has not finished account setup.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `rationale` (`string`, required): Always provide a brief explanation of why you are calling this tool

Example input: `{"rationale":"<rationale>"}`

### `latchbiomcp_launch_workflow`

Launch Workflow · Write

Launch a bioinformatics workflow on Latch. Use get_workflow_schema first to discover required parameters. Returns an execution ID for monitoring progress with list_executions and get_execution.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `parameters` (`object`, required): Parameter values matching `get_workflow_schema` for the workflow.
- `rationale` (`string`, required): Always provide a brief explanation of why you are calling this tool
- `workflow_id` (`integer`, required): Workflow id to launch.
- `region` (`string`, optional): AWS region for workflow runtime placement. Options:
    us-west-2, us-east-1, eu-central-1, eu-west-1.
- `src_execution_id` (`string`, optional): Optional previous execution id to relaunch from.
              Use only when intentionally reusing the previous
              execution's runtime storage/intermediate state. Omit
              for a normal fresh run.
- `workspace_id` (`string`, optional): Optional workspace/account id that should own the
          execution. Defaults to the user's default workspace.
          Leave null unless the user asks to use a specific workspace.

Example input: `{"parameters":{},"rationale":"<rationale>","workflow_id":1}`

## Related

Other AI connectors ([all 153](/agentkit/connectors/?category=ai)):

- [Chorus](/agentkit/connectors/chorus/): Scalekit connector, Username and password, 9 tools
- [Gong](/agentkit/connectors/gong/): Scalekit connector, OAuth, 69 tools
- [Jiminny](/agentkit/connectors/jiminny/): Scalekit connector, Access token, 27 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
