> ## Documentation Index
> Fetch the complete documentation index at: https://docs.strandai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Strand AI in Claude

> Connect Claude to Strand AI to get spatial proteomics from H&E with Lattice: browse slides, run predictions, and view results right in the chat.

Use Strand AI from Claude to get spatial proteomics from H\&E without leaving the
conversation. Lattice predicts spatially resolved protein-marker maps from
routine H\&E, delivered as virtual mIF channels. Ask Claude to find a slide,
estimate and run Lattice, and open the results in an interactive viewer.

## Connect Claude (web and desktop)

**1. Add Strand AI**

In Claude, open the [**Strand AI connector**](https://claude.ai/directory/strand-ai)
(or **Customize → Connectors**), and add it.

**2. Sign in**

Claude opens a Strand AI sign-in page. Sign in and approve the access
request.

**3. Pick an organization**

Choose the Strand AI organization Claude should work in. Claude sees that
organization's samples, and runs use its credits.

That's it. Try: "Show my Strand AI samples."

If your Claude organization doesn't allow directory connectors, an
administrator can add a custom connector with the address
`https://mcp.strandai.com/mcp`.

### Uploading slides from Claude

Claude can upload a slide you attach, after one setting change. Ask your Claude
organization's administrator to add `storage.googleapis.com` under **Settings →
Capabilities → Allow network egress**, then start a new chat. Without it,
uploads fail with a `host_not_allowed` message, and everything else still works.

For large whole-slide images, it's faster to upload in your browser at
[app.strandai.com/samples/upload](https://app.strandai.com/samples/upload) and
then ask Claude to work with the slide.

## Claude Code

Add Strand AI with one command:

```bash theme={"dark"}
claude mcp add --transport http strand-ai https://mcp.strandai.com/mcp
```

Then run `/mcp`, sign in, and pick your organization. Claude Code can upload
slides directly. The in-chat viewer isn't available in Claude Code.

## Try these prompts

> Show my samples, then open the newest one in the viewer.

> Upload this de-identified slide, estimate CD3e, CD4, and Ki67, and wait for
> my OK before running.

> Has my last run finished? If so, give me a download link.

> Set this sample's scale to 0.5 microns per pixel and tag it "cohort-a".

> Start cell segmentation on this slide.

## The in-chat viewer

Ask Claude to open a sample, and the Lattice viewer appears in the
conversation. Pan, zoom, and switch markers as you would on the platform. Use
**Open in Strand AI platform** for the full workspace. The images stay between
you and Strand AI; they're never sent to the AI model.

## Costs and approvals

Browsing, viewing, estimates, and cell segmentation are free. Running Lattice
uses your organization's credits. Strand AI tells Claude to show you the estimate
and get your OK before starting a run. Keep Claude set to ask before Strand AI
tools that make changes.

## Using an API key

Some assistants can't sign in for you. They can connect with a Strand AI API
key instead, sent as `Authorization: Bearer <your key>`. Create one in
[Settings → API keys](https://app.strandai.com/settings/api-keys).

> [!WARNING]
>
> **An API key can spend your organization's credits.** It works in your
> organization with full access, like signing in as you. Keep it in a password
> manager or secret store, never in code, chats, or shared files. To replace a
> key, create a new one, update your assistant, then delete the old one. A
> deleted or expired key stops working right away.

## Troubleshooting

* **Something is missing, or Claude seems out of date.** Refresh the tool list:
  **Customize → Connectors → Strand AI → ⋯ → Refresh tools list**. You don't
  need to reconnect.
* **Upload fails with `host_not_allowed`.** Add `storage.googleapis.com` to your
  Claude organization's allowed network egress, then start a new chat. Or
  upload in your browser instead.
* **Claude can't sign in, or says you don't have access.** Disconnect Strand AI
  and connect again, choosing an organization you belong to.
* **A slide says it isn't ready.** New uploads take about a minute to process.
  Ask Claude again shortly.
* **Not enough credits.** Pick a different organization, or ask your Strand AI
  administrator to add credits.
* **A download link expired.** Ask Claude for the results again. Links are
  short-lived on purpose.
* **An OME-TIFF or ZIP download is still preparing.** These are created on
  request and large slides take a few minutes. Ask again shortly, or ask for
  OME-Zarr, which is ready immediately.

Still stuck? Email [support@strandai.com](mailto:support@strandai.com) with the
sample or run ID. Don't include slide files, passwords, or API keys.

## Privacy and data

> [!WARNING]
>
> Research use only. Not for use in clinical diagnosis, treatment, or
> patient-care decisions.

Slides must be de-identified before upload. Only upload slides you're allowed
to use. Automated de-identification is off by default and runs only
when enabled for your organization. Your Strand AI agreement and organization
settings govern stored slides and results. Review or
disconnect Claude anytime in [Settings → Connected
Apps](https://app.strandai.com/settings/connected-apps). See [Security and data
handling](https://docs.strandai.com/security-data-handling.md) and the [Privacy
Policy](https://strandai.com/privacy). Report security issues to
[security@strandai.com](mailto:security@strandai.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.