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.1.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.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refua_mcp-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 222112cb29402665b0981854f2b3797794108b5cf3e3c0ae9a655c6fb10ed8c0
MD5 9ddc2c801bbca43302fb9cc8621d36fe
BLAKE2b-256 628f912d306b4c903109a7b7b8b9242465afe94fd34d63b3265bea0c66f207ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: refua_mcp-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00de2afd5ba84e93d8bcba7b141d98b4f329dd639bb1b5335ee1e822f180ccc1
MD5 ce5c91b1b6c9fd2346992c0fdb1d11b2
BLAKE2b-256 9ec4fa4c9c769bf571bab8a1a748777aa0effd5b8633f0f688e50c031f6e293d

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