MCP server for Refua Boltz2 folding/affinity and BoltzGen design workflows.
Project description
Refua MCP Server
MCP server exposing Refua Boltz2 folding/affinity and BoltzGen antibody/peptide design helpers.
Install
pip install refua[cuda] # remove [cuda] if you don't need gpu support
pip install refua-mcp
Boltz2 and BoltzGen require model/molecule assets. If you don't have them, refua can download them for you automatically:
python -c "from refua import download_assets; download_assets()"
- Boltz2: uses
~/.boltzby default. Override via toolcache_dirif needed. - BoltzGen: uses the bundled HF artifact by default. Override via tool
mol_dirif needed.
MCP Clients
Claude Code
Add the server to your Claude Code MCP config (macOS: ~/Library/Application Support/Claude/claude_code_config.json, Linux: ~/.config/claude/claude_code_config.json). This uses the default assets (~/.boltz for Boltz2 and the bundled BoltzGen artifact). Merge with any existing mcpServers entries:
{
"mcpServers": {
"refua-mcp": {
"command": "python3",
"args": ["-m", "refua_mcp.server"]
}
}
}
Codex
Register the server with the Codex CLI (uses default asset locations):
codex mcp add refua-mcp -- python3 -m refua_mcp.server
List configured servers with:
codex mcp list
Tools
boltz2_fold_complex: fold a complex and return a structure in mmCIF/BCIF (setasync_mode=trueto enqueue).boltz2_affinity: predict affinity for a ligand binder (setasync_mode=trueto enqueue).boltz2_job: check status for background Boltz2 jobs and optionally return results.boltzgen_antibody_design: build BoltzGen antibody design features.boltzgen_peptide_design: build BoltzGen peptide binder design features.small_molecule_properties: compute small-molecule properties from SMILES strings.
Long-Running Jobs
For runs that exceed the tool-call timeout, set async_mode=true and poll the job:
{
"tool": "boltz2_affinity",
"args": {
"async_mode": true,
"chains": [...]
}
}
Then poll with:
{
"tool": "boltz2_job",
"args": {
"job_id": "..."
}
}
Set include_result=true once the job is complete to fetch the output.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file refua_mcp-0.1.0.tar.gz.
File metadata
- Download URL: refua_mcp-0.1.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
094ab5284adad98f48cb0ec5fd7791c2220ae40207420bf85bf494dd6f71d5c7
|
|
| MD5 |
f389e8cdf3446373f3320c5c5027458b
|
|
| BLAKE2b-256 |
ed570cb954da643cd6f3f479510c5ac0daa4f4f0b39511764114c453340af407
|
File details
Details for the file refua_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: refua_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fad55b45b039eb1852307bc554e49ddadf566eac0c027077d15c1c043a3ce8b
|
|
| MD5 |
54575260dd70c1bd69646e2d8cc739f8
|
|
| BLAKE2b-256 |
ba3a07bfd68a51b371999dae4d9739391596f7ed552d534a9a3389b214e8721d
|