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

# Biohub MCP server

> Connect your AI assistant to Biohub MCP to search the ESM Atlas, explain protein SAE features, and more.

The Biohub MCP connects your AI assistant to the [ESM Atlas](https://docs.biohub.ai/learn/guides/esm-atlas) and to the [ESMFold2](https://docs.biohub.ai/models/esmfold2.md) and [ESMC](https://docs.biohub.ai/models/esmc.md) models on the Biohub Platform through the [Model Context Protocol](https://modelcontextprotocol.io/) server. You ask your AI assistant a question, and the assistant decides which MCP tools (a callable function) to call and passes results from one tool to the next. Its [ESM Atlas tools](https://docs.biohub.ai/biohub-mcp/esm-atlas-tools.md) give your assistant the same abilities as the [ESM Atlas Agent](https://biohub.ai/esm/protein/atlas), the "Ask the atlas" box on the ESM Atlas site.

```mermaid theme={null}
flowchart LR
    You([You]) --> Client[AI client]
    Client -->|Tool call| MCP[Biohub MCP]
    MCP --> Atlas[ESM Atlas]
    MCP --> DBs[UniProt, EMBL-EBI MGnify]
    MCP --> BHP[Biohub Platform: ESMFold2 and ESMC]
    MCP -->|Result and viewer| Client
```

## What the MCP server can do

* Turn a protein name or a UniProt, UniParc, or MGnify accession into an amino-acid sequence.
* Find ESM Atlas cluster representatives whose SAE feature profiles are closest to your protein, optionally only clusters with no characterized Pfam domains.
* View a stored or newly predicted structure, colored by chain or by confidence, with the residues you care about highlighted.
* Fold and view a complex of proteins, DNA, RNA, and small molecules; see [Complexes](https://docs.biohub.ai/biohub-mcp/structure-viewer.md#complexes).
* Fold proteins and complexes of up to 4,096 tokens with ESMFold2 and get confidence scores, including at maximum accuracy; see [Folding tools](https://docs.biohub.ai/biohub-mcp/folding-tools.md).

## Get started

> [card] [Quickstart](https://docs.biohub.ai/biohub-mcp/quickstart.md)
>
> Add the server to your client and run a first request in a few minutes.

> [card] [Example prompts](https://docs.biohub.ai/biohub-mcp/example-prompts.md)
>
> Prompts to copy, with the tools they use and what to expect back.

> [card] [Skills](https://docs.biohub.ai/biohub-mcp/skills/overview.md)
>
> Step-by-step instructions your client follows, such as reconstructing microscopy data with WaveOrder.

> [card] [ESM Atlas tools](https://docs.biohub.ai/biohub-mcp/esm-atlas-tools.md)
>
> Look up a protein, its SAE features, and similar proteins in the ESM Atlas, and read the results.

> [card] [Structure viewer](https://docs.biohub.ai/biohub-mcp/structure-viewer.md)
>
> Show a structure in an interactive Mol\* viewer, then export it.

Connect to the MCP by signing in your browser with a free Biohub account. Atlas tools are free, and folds and ESMC scoring are billed to that account.

A tool is a named action the Biohub MCP can carry out. Folding and ESMC tools start billed work on the Biohub Platform; only queued folds create a run you can read later. Your client may add a prefix to tool names, such as `mcp__biohub__esm_atlas_search_uniprot`.

The viewer can fold a billed complex, so it is marked compute and non-idempotent, like the folding and ESMC tools. See [Why some calls take longer](https://docs.biohub.ai/biohub-mcp/troubleshooting.md#why-some-calls-take-longer) for what clients may ask you to approve.

### ESM Atlas tools

Atlas tools are free to use, and can look up information and compute results without creating saved items or IDs. See [ESM Atlas tools](https://docs.biohub.ai/biohub-mcp/esm-atlas-tools.md) for inputs, results, and errors.

| Tool | What it does |
| - | - |
| `esm_atlas_search_uniprot` | Searches UniProt by name, accession, or fielded query and returns sequences. |
| `esm_atlas_lookup_accession` | Resolves a UniParc or MGnify accession to a sequence. |
| `esm_atlas_get_protein_details` | Returns a protein's ESM Atlas record and up to ten of its strongest SAE features. |
| `esm_atlas_search_similar_protein_clusters` | Finds ESM Atlas cluster representatives with similar SAE feature profiles. |
| `esm_atlas_get_cluster_info` | Summarizes a cluster's size, characterization, Pfam domains, taxonomy, and features. |
| `esm_atlas_get_sae_feature_detail` | Explains one of the 16,384 SAE features. |

### Structure viewer

See [Structure viewer](https://docs.biohub.ai/biohub-mcp/structure-viewer.md) for view options and export.

| Tool | What it does |
| - | - |
| `ui_show_structure` | Shows a protein's stored or predicted structure in an interactive Mol\* viewer where supported, with an optional PNG preview. It also folds and shows complexes of proteins, DNA, RNA, and ligands, billed to your account. The viewer is an MCP App that visualizes 3D structures. |

### Folding tools

See [Folding tools](https://docs.biohub.ai/biohub-mcp/folding-tools.md) for how a fold runs and how to read the scores.

| Tool | What it does |
| - | - |
| `esmfold2_fold_complex` | Folds a protein or complex with ESMFold2 and returns confidence scores, within the call or as a run. |
| `esmfold2_fold_max_accuracy` | Folds at maximum accuracy with an alignment Biohub builds, as a run. |
| `biohub_get_inference_run` | Reads a fold run's status and, once it is done, its scores. Free. |

### Mutation scoring tools

See [Mutation scoring tools](https://docs.biohub.ai/biohub-mcp/mutation-scoring-tools.md) for inputs, results, and costs.

| Tool | What it does |
| - | - |
| `esmc_score_mutations` | Scores named substitutions with ESMC. |
| `esmc_scan_mutation_tolerance` | Finds a protein's most constrained and most tolerant positions with ESMC. |

### Resource tools

See [MCP resource reference](https://docs.biohub.ai/biohub-mcp/resource-tools.md) for inputs, limits, and errors.

| Tool | What it does |
| - | - |
| `list_resources` | Lists the Skills and other resources, for clients that cannot list MCP resources directly. |
| `read_resource` | Reads one Skill file by its `skill://` URI, for clients that cannot read MCP resources directly. |

## MCP server vs. REST APIs

You can complete similar tasks using the Biohub MCP server or the ESM Atlas and Biohub Platform APIs, but the inputs and outputs differ.
For example, the MCP tools take raw sequences, while several REST endpoints take a protein hash, and the folding tools return scores but not the structure files the API returns.

Choose the Biohub MCP when you are working with an AI client and you want the assistant to choose the best tool.
Use the APIs when you are writing code or creating workflows that need fixed requests, direct access to responses, or greater control over your results. The Biohub Platform APIs need an API key; the MCP tools use your sign-in instead.

| MCP tool | Closest REST endpoint |
| - | - |
| `esm_atlas_search_uniprot` | [Resolve a UniProt ID](https://docs.biohub.ai/api/protein/atlas/proteins/uniprot.md) |
| `esm_atlas_lookup_accession` | None |
| `esm_atlas_get_protein_details` | [Get protein](https://docs.biohub.ai/api/protein/atlas/proteins/get.md) |
| `esm_atlas_search_similar_protein_clusters` | [Similarity search](https://docs.biohub.ai/api/protein/atlas/similarity-search.md) |
| `esm_atlas_get_cluster_info` | [Get cluster](https://docs.biohub.ai/api/protein/atlas/clusters.md) |
| `esm_atlas_get_sae_feature_detail` | [Get SAE feature](https://docs.biohub.ai/api/protein/atlas/features/detail.md) |
| `ui_show_structure` | [Get protein](https://docs.biohub.ai/api/protein/atlas/proteins/get.md) for a stored structure, [Fold](https://docs.biohub.ai/api/protein/models/fold.md) to predict one, or [fold\_all\_atom](https://docs.biohub.ai/api/protein/models/fold_all_atom.md) for a complex |
| `esmfold2_fold_complex` | [Fold](https://docs.biohub.ai/api/protein/models/fold.md) or [fold\_all\_atom](https://docs.biohub.ai/api/protein/models/fold_all_atom.md) within the call, or [Batch folding](https://docs.biohub.ai/api/protein/models/batch_folding.md) for a run |
| `esmfold2_fold_max_accuracy` | [fold\_max\_accuracy](https://docs.biohub.ai/api/protein/models/fold_max_accuracy.md) |
| `biohub_get_inference_run` | [Batch API](https://docs.biohub.ai/api/protein/models/batch_overview.md#track-progress) status and results |
| `esmc_score_mutations`, `esmc_scan_mutation_tolerance` | [Logits](https://docs.biohub.ai/api/protein/models/logits.md) |

## Next steps

* Set up the MCP using the [Quickstart](https://docs.biohub.ai/biohub-mcp/quickstart.md).


## Related topics

- [Troubleshoot Biohub MCP connections and tool errors](https://docs.biohub.ai/biohub-mcp/troubleshooting.md)
- [Connect to the Biohub MCP and run your first query](https://docs.biohub.ai/biohub-mcp/quickstart.md)
- [Biohub MCP Skills](https://docs.biohub.ai/biohub-mcp/skills/overview.md)
- [Biohub MCP example prompts](https://docs.biohub.ai/biohub-mcp/example-prompts.md)
- [Biohub MCP folding tools](https://docs.biohub.ai/biohub-mcp/folding-tools.md)
