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.

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.0.1.tar.gz (10.6 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.0.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file refua_mcp-0.0.1.tar.gz.

File metadata

  • Download URL: refua_mcp-0.0.1.tar.gz
  • Upload date:
  • Size: 10.6 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.0.1.tar.gz
Algorithm Hash digest
SHA256 9f464375757996b8a7a97adb588d7c1a957a4f23839136029428a7ec20f39327
MD5 2745f21543c07dbb14189d0dcb86dcd3
BLAKE2b-256 cacd0311191d4f5e7569d013ed6473478eaae559d8c37d57b84d417ae0d147f2

See more details on using hashes here.

File details

Details for the file refua_mcp-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: refua_mcp-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1e9892c5575119c31aff969f603af1ad11ecd4d0a2fa93d56432c3725162fa0
MD5 d3df3f9768b486d86a55970cde7f636c
BLAKE2b-256 589de8116a9967442d56885b35a5779bb303731064273f661c8bb73b8d1d37a2

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