---
name: iblai-connect-benchling
description: "Read and write Benchling data through the Benchling REST API (V3 recommended, V2 supported) and Data Warehouse and expose it to an ibl.ai agent as an MCP tool. Use when the user asks an agent to work with Benchling data, or to set up a Benchling MCP connection on ibl.ai."
metadata:
  kind: guide
---

# Benchling connector for AI agents

> A starting point maintained on ibl.ai at https://ibl.ai/developer/connectors/benchling — not part of the iblai/base repository. Checked against Benchling's documentation on October 20, 2026; test it against your own Benchling setup before you rely on it.

Benchling is an R&D platform for biotech and pharma teams. It holds notebook entries, registered entities such as DNA and AA sequences and custom entities, inventory containers and plates, assay results, and workflow tasks.

## Auth & conventions

- **API:** Benchling REST API (V3 recommended, V2 supported) and Data Warehouse (REST). REST endpoints with CRUD access to almost all Benchling data as JSON: sequences, custom entities, entries, containers, assay results, workflows and schemas. A separate read-only PostgreSQL warehouse serves analytics.
- **Base URL:** https://{tenant}.benchling.com/api/v3/ (V2 endpoints under /api/v2/)
- **Access:** Issued by your administrator. Requires Developer Platform access on the customer's Benchling tenant. Users generate personal API keys in user settings; long-running integrations are built as Benchling Apps whose OAuth credentials the tenant issues.
- **Auth:** OAuth 2.0 client credentials (Benchling Apps); OAuth 2.0 authorization code (Delegated Auth); Personal API key (Basic Auth). Apps POST client ID and secret to https://{tenant}.benchling.com/oauth/token and send a Bearer token that lasts 15 minutes. Personal API keys go in the Basic Auth username; Benchling discourages them beyond trying out the API.
- **Limits:** Per 30-second window: 60 requests per tenant for all user keys, 300 per app key, 1,000 per tenant for all apps. HTTP 429 when exceeded; use exponential backoff. Page size up to 100; POST/PATCH payloads up to 100 MB.
- Keep Benchling credentials in environment variables or the ibl.ai credential store. Never print a token in chat and never commit one to a file.
- Destructive or outward-facing calls are marked **Confirm with the user first** — do.

## Reads

- **Sequences and entities** — DNA, RNA and AA sequences, oligos, molecules and custom entities, with their schemas and fields.
- **Notebook entries** — ELN entries and entry schemas.
- **Inventory** — Containers, plates, boxes and locations, including container contents.
- **Assay results** — Results and result schemas recorded against entities and runs.
- **Workflow tasks** — Workflow tasks and task groups.
- **Warehouse tables** — Read-only SQL over a hosted PostgreSQL copy of tenant data, using separate warehouse credentials.

## Writes

- **Sequences and entities** — Create and update sequences and custom entities, singly or in bulk.
- **Assay results** — Create results; up to 100 per request and 10,000 requests per hour.
- **Inventory** — Create and update containers and move or remove container contents.
- **Archive** — Archive DNA sequences, custom entities or results (reversible with unarchive). **Confirm with the user first.**

## Expose it to an ibl.ai agent (MCP)

Benchling publishes an official MCP server, Benchling MCP Server (https://www.benchling.com/news/benchling-launches-ai-connectors-to-power-data-ecosystem). Register it below as-is, or host your own server that wraps the calls in this skill.

First install the ibl.ai platform skills and connect your organization (writes `IBLAI_ORG`, `IBLAI_USERNAME` and `IBLAI_API_KEY` to `.env`):

```bash
npx skills add iblai/base --all
# then, in your coding agent:
/iblai-api-login
```

Every call below sends `Authorization: Api-Token $IBLAI_API_KEY`.

1. **Register the server** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-servers/` with `name`, `url`, `transport` (`sse` | `websocket` | `streamable_http`) and `auth_type` (`none` | `token` | `oauth2`). Capture the returned `id`.
   - Benchling supports per-user OAuth: `auth_type=oauth2` with `auth_scope=user` and a linked `oauth_service` makes each person connect their own account in the chat. It needs an `auth_{provider}` credential in the organization's credential store first.
2. **Create the connection** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-server-connections/` with `server`, `scope` (`platform` | `mentor` | `user`), `auth_type`, and either `credentials` + `authorization_scheme` or a `connected_service` id for OAuth. Credentials are masked on read; never send a masked value back.
3. **Enable it on the agent** — `GET https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentors/{agent_id}/settings/`, add `mcp-tool` to `tool_slugs` and the server id to `mcp_servers`, then `PATCH` the full lists back. They are replaced, not merged.

Full reference: https://ibl.ai/developer/platform/mcp/mcp-connections and the `/iblai-api-agent-mcp` skill.

## Example prompts

- "List the plasmids registered in the Antibody Discovery project this month"
- "Summarize the assay results recorded against construct PL-0423"
- "Create a custom entity for each new cell line in this spreadsheet"
- "Which freezer boxes hold samples of batch B-117, and how much volume is left?"

## Guardrails

- R&D records are unpublished research IP, and tenants on Benchling Validated Cloud may hold GxP records subject to 21 CFR Part 11; access follows Benchling permissions.
- Request the narrowest Benchling scopes or role the task needs, and prefer a read-only credential for agents that only answer questions.
- Return the fields the user asked for, not whole records; do not paste personal data into chat that the user did not request.
- Before any write, show the user exactly what will change and wait for a yes.
- Respect the documented limits above: page through results and back off on rate-limit responses instead of retrying in a loop.

## References

- Getting Started with the Benchling API: https://docs.benchling.com/docs/getting-started-1
- Benchling API authentication: https://docs.benchling.com/docs/authentication
- Benchling rate limits: https://docs.benchling.com/docs/rate-limiting
- Benchling MCP Server: https://www.benchling.com/news/benchling-launches-ai-connectors-to-power-data-ecosystem
- This connector on ibl.ai: https://ibl.ai/developer/connectors/benchling
- ibl.ai MCP server connections: https://ibl.ai/developer/platform/mcp/mcp-connections
