Skip to main content

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 ~/.boltz by default. Override via tool cache_dir if needed.
  • BoltzGen: uses the bundled HF artifact by default. Override via tool mol_dir if 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 (set async_mode=true to enqueue).
  • boltz2_affinity: predict affinity for a ligand binder (set async_mode=true to 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

refua_mcp-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

refua_mcp-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

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

Hashes for refua_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 094ab5284adad98f48cb0ec5fd7791c2220ae40207420bf85bf494dd6f71d5c7
MD5 f389e8cdf3446373f3320c5c5027458b
BLAKE2b-256 ed570cb954da643cd6f3f479510c5ac0daa4f4f0b39511764114c453340af407

See more details on using hashes here.

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

Hashes for refua_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fad55b45b039eb1852307bc554e49ddadf566eac0c027077d15c1c043a3ce8b
MD5 54575260dd70c1bd69646e2d8cc739f8
BLAKE2b-256 ba3a07bfd68a51b371999dae4d9739391596f7ed552d534a9a3389b214e8721d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page