Skip to main content

MCP server for Refua Boltz2 folding/affinity and BoltzGen design workflows.

Project description

Refua MCP Server

MCP server exposing Refua's unified Complex API for Boltz2 folding/affinity and BoltzGen design workflows.

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 boltz.cache_dir if needed.
  • BoltzGen: uses the bundled HF artifact by default. Override via tool boltzgen.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

  • refua_complex: run a unified Complex spec with action="fold" (default) or action="affinity".
  • refua_job: check status for background jobs and optionally return results.

Example (fold a protein + ligand with optional affinity):

{
  "tool": "refua_complex",
  "args": {
    "name": "protein_ligand",
    "entities": [
      {"type": "protein", "id": "A", "sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ"},
      {"type": "ligand", "id": "lig", "smiles": "CCO"}
    ],
    "constraints": [
      {"type": "pocket", "binder": "lig", "contacts": [["A", 5], ["A", 8]]}
    ],
    "affinity": {"binder": "lig"}
  }
}

Note: DNA/RNA entities are supported for Boltz2 folding only (BoltzGen does not accept DNA/RNA entities).

Long-Running Jobs

For runs that exceed the tool-call timeout, set async_mode=true and poll the job:

{
  "tool": "refua_complex",
  "args": {
    "async_mode": true,
    "entities": [...]
  }
}

Then poll with:

{
  "tool": "refua_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.2.0.tar.gz (12.5 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.2.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refua_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 12.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 ea18b606950203d7c2fa1447be8ebada84c01720b9e2896e07e332bc43324175
MD5 f9b8f3c6b516558fa1b2fc00e654644e
BLAKE2b-256 80b4fcb55b7339c7e2f53e310109a34dd1dbf5f54e75d9a17d44d2a109d4ac66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: refua_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67ae5248791d12d39377167ce6e7e4954e98fbc7f95fa9dcb9501811c087edc5
MD5 6d64a42b7247b2828bc7e4c2c2d15a0a
BLAKE2b-256 1d09783e001f674080bfd0ce07e9a410bba23250aa8c011e566323552ebef141

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