Documentation Index
Fetch the complete documentation index at: https://docs.adaptyvbio.com/llms.txt
Use this file to discover all available pages before exploring further.
MCP Server
Drive Foundry experiments through Claude Code, Claude Desktop, or any MCP-aware client using natural language.The Foundry MCP is a hosted Model Context Protocol server that gives your agent access to the power of the Foundry API. Point an MCP-aware client at it - Claude Code, Claude Desktop, Cursor, your own agent - and the same things you would do with
curl against foundry-api-public.adaptyvbio.com become things you can ask for in plain English: list experiments, fetch results, quote a screen, confirm a quote.
The agent picks the right tool, fills in the parameters, and shows you the response.
Why use it
You already have the REST API, which is great for fully automated pipelines. But you probably also have interactive workflows or ad-hoc questions. The MCP is perfect for these, when you do not want to compose API queries for a one-off question. Listing the five most recent experiments, pulling the kinetics for a specific run, comparing two cost estimates - these are short, exploratory tasks that benefit from an agent doing the wiring. You stay in your editor or chat client; the agent handles the HTTP plumbing. Pairing the API with reasoning is the other concrete win. Agents are great at usingcurl, but not every agentic environment will give you access to the CLI and the ability to pass the auth token.
With the hosted MCP, every MCP-enabled agent can fetch results and then explain whether a KD looks tight for your target class, compare a new screen against historical baselines, or sanity-check a quote before you confirm it.
You get retrieval and analysis in the same turn, against the same data.
We also have plans to enrich the MCP with interactive MCP apps and other MCP-specific features, so monitor this page for updates.
How it fits together
The hosted endpoint ishttps://foundry-mcp.adaptyv.bio/mcp/. Every Foundry REST endpoint shows up as an MCP tool with the same parameters and the same authorization scopes.
Sample queries
The examples below show the questions asked to an agent and the equivalentcurl query an MCP call maps to. All queries presume the following environment variables to be set:
“List the latest five experiments and tell me which ones are awaiting my action.” The agent calls
list_experiments, reads each entry’s status, and flags the ones at Draft or QuoteSent.
“Show me the binding kinetics for experiment ABC-001-042 and tell me whether the K_D looks tight enough for a follow-up screen.”
get_experiment resolves the code, get_results pulls the kinetic constants, and the agent compares K_D against typical cutoffs for that target class.
“Quote a screening assay against the EGFR target from the catalog, for these three sequences.” The agent searches the catalog, picks a self-service target, then runs
cost_estimate and returns a USD-cents breakdown.
“Find any experiment from the last quarter where one of the candidates beat 50nM affinity, and group by target.” The agent paginates
list_results with a date filter, pulls the affinity values, and groups by target_id in one pass.
Connect Claude Code
Two paths exist: an OAuth flow that uses your Foundry portal session, or a long-lived API token of the kind you’d use against the REST API. Both end up with the same downstream authorization; pick whichever fits your context.Authentication via OAuth
OAuth is the easiest path for interactive use on your own machine. Register the server without anAuthorization header:
Authentication via API tokens
For automation, CI, or shared machines, use a long-lived API token instead. Obtain one from the Foundry portal as described in Getting an API token, then register the server with the token in anAuthorization header:
Never paste a Foundry token into an LLM chat. Configure it once in your MCP client config — the client forwards the header on every tool call, so the model never sees the token in its context.
Verify
--scope user writes the registration to ~/.claude.json and follows you across projects. Use --scope project instead if you want the connection to live in the repo’s .mcp.json and be shared with collaborators (without the token — Claude Code stores secrets per user).
✓ Connected, followed by the tool count. If you see ✗ Failed to connect, the credential is the most likely cause — sign in again (for OAuth) or re-issue your token from the portal and re-register.
Other MCP clients
Any MCP client that speaks streamable HTTP works. The configuration is always two pieces: a URL and either an OAuth flow or a bearer header.- Claude Desktop
- Cursor / generic
Edit Restart Claude Desktop. The Foundry tools appear in the tool picker.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows) and add:Where to next
API Reference
The full REST API the MCP wraps — resource groups, status values, filter syntax, webhook payloads.
Getting Started
First-time orientation to Adaptyv Foundry: experiment types, the project workflow, and how to set up your organization.