Skip to main content
ClaudeWave

Automated cheminformatics workflow optimization.

MCP ServersOfficial Registry1 stars0 forksPythonMITUpdated today
ClaudeWave Trust Score
87/100
Trusted
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
Last scanned: 6/11/2026
Install in Claude Code / Claude Desktop
Method: pip / Python · cmxflow
Claude Code CLI
claude mcp add cmxflow -- python -m cmxflow
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "cmxflow": {
      "command": "python",
      "args": ["-m", "cmxflow"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Install first: pip install cmxflow
Use cases

MCP Servers overview

# cmxflow 🧪

<!-- mcp-name: io.github.b-shields/cmxflow -->

[![Docs](https://img.shields.io/badge/docs-b--shields.github.io%2Fcmxflow-teal)](https://b-shields.github.io/cmxflow/)
[![CI](https://github.com/b-shields/cmxflow/actions/workflows/ci.yml/badge.svg)](https://github.com/b-shields/cmxflow/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/b-shields/cmxflow/branch/main/graph/badge.svg)](https://codecov.io/gh/b-shields/cmxflow)
[![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)]()
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

Build cheminformatics and computational chemistry pipelines with composable blocks. Tune end-to-end with Bayesian Optimization. Or ask an LLM agent to do it.

## Quick examples

### Prepare ligands for docking

```python
from cmxflow import Workflow
from cmxflow.sources import MoleculeSourceBlock
from cmxflow.operators import (
    MoleculeStandardizeBlock,
    IonizeMoleculeBlock,
    EnumerateStereoBlock,
    ConformerGenerationBlock,
)
from cmxflow.sinks import MoleculeSinkBlock

# Standardize → ionize (pH 6.4–8.4) → enumerate stereo → generate 3D conformers
workflow = Workflow()
workflow.add(
    MoleculeSourceBlock(),
    MoleculeStandardizeBlock(),
    IonizeMoleculeBlock(),
    EnumerateStereoBlock(),
    ConformerGenerationBlock(),
    MoleculeSinkBlock(),
)
workflow("library.smi", "prepared.sdf")
```

### Dock a congeneric series

Pure-Python docking. Free docking is the default (`index_poses=False`); scaffold-indexed mode caches poses by Bemis–Murcko scaffold for ~3× faster throughput on congeneric series with consistent pose alignment.

```python
from cmxflow import Workflow
from cmxflow.sources import MoleculeSourceBlock
from cmxflow.operators import ConformerGenerationBlock, MoleculeDockBlock
from cmxflow.sinks import MoleculeSinkBlock
from cmxflow.utils.parallel import make_parallel

workflow = Workflow()
workflow.add(
    MoleculeSourceBlock(),
    ConformerGenerationBlock(),
    make_parallel(
        MoleculeDockBlock(
            receptor="receptor.pdb",
            site_reference="crystal_ligand.sdf",
            index_poses=True,  # omit for free docking
        )
    ),
    MoleculeSinkBlock(),
)
workflow("library.smi", "docked.sdf")
```

### Tune a ligand-based virtual screen

```python
from cmxflow import Workflow
from cmxflow.sources import MoleculeSourceBlock
from cmxflow.operators import MoleculeSimilarityBlock
from cmxflow.scores import EnrichmentScoreBlock
from cmxflow.opt import Optimizer

# Rank a library by 2D similarity to a known active, then tune the
# fingerprint end-to-end to maximize enrichment AUC.
workflow = Workflow()
workflow.add(
    MoleculeSourceBlock(),
    MoleculeSimilarityBlock(queries="crystal_ligand.sdf"),
    EnrichmentScoreBlock(target="active"),
)

opt = Optimizer(workflow, "benchmark.csv")
opt.optimize(n_trials=30, direction="maximize")

print(f"Best enrichment AUC: {opt.best_score:.3f}")
print(opt.best_params)
# Best enrichment AUC: 0.836
# {'fingerprint_type': 'morgan', 'similarity_metric': 'sokal', 'radius': 2, 'nbits': 2545}
```

The four fingerprint parameters above are searched automatically — every block exposes its mutable parameters to the optimizer.

### Or build it conversationally via an LLM agent

```bash
claude mcp add cmxflow -- cmxflow-mcp
```

> *"How many of the molecules in library.csv pass Lipinski's rules?"*

> *"I need to build a ligand-based virtual screening workflow. I'm not sure if 2D or 3D is better. Can you optimize two workflows?"*

> *"Dock the molecules in hits.csv against receptor.pdb with crystal_ligand.sdf as a reference."*

The agent can build, run, *and* optimize workflows. See [Using with Claude](https://b-shields.github.io/cmxflow/using-with-claude/) for full transcripts.

## What's in the box

- 15+ blocks for sourcing, transforming, filtering, clustering, scoring, and docking molecules
- Bayesian optimization of pipeline parameters via [Optuna](https://optuna.org/)
- Parallel execution for compute-heavy blocks (conformer generation, docking)
- Workflow serialization for save / load / reuse
- An MCP server with five tools: `build_workflow`, `run_workflow`, `optimize_workflow`, `manage_workflows`, `view_structures`

## Install

```bash
pip install cmxflow
```

### MCP server

```bash
claude mcp add cmxflow -- cmxflow-mcp
```

### Optional: PyMOL

Required only for the `view_structures` MCP tool (3D visualization):

```bash
conda install -c conda-forge pymol-open-source
```

## Documentation

- [Docs site](https://b-shields.github.io/cmxflow/)
- [Block catalog](https://b-shields.github.io/cmxflow/blocks/)
- [Using with Claude](https://b-shields.github.io/cmxflow/using-with-claude/) — agent transcripts
- [`examples/basic_usage.ipynb`](examples/basic_usage.ipynb) — full tutorial
- [`examples/docking/docking.ipynb`](examples/docking/docking.ipynb) — docking walkthrough (ILS, scaffold-indexed, and template modes)

## Project

MIT licensed. See [CONTRIBUTING.md](CONTRIBUTING.md) and [RELEASING.md](RELEASING.md).
bayesian-optimizationcheminformaticsdrug-discoverymcprdkitvirtual-screening

What people ask about cmxflow

What is b-shields/cmxflow?

+

b-shields/cmxflow is mcp servers for the Claude AI ecosystem. Automated cheminformatics workflow optimization. It has 1 GitHub stars and was last updated today.

How do I install cmxflow?

+

You can install cmxflow by cloning the repository (https://github.com/b-shields/cmxflow) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is b-shields/cmxflow safe to use?

+

Our security agent has analyzed b-shields/cmxflow and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.

Who maintains b-shields/cmxflow?

+

b-shields/cmxflow is maintained by b-shields. The last recorded GitHub activity is from today, with 3 open issues.

Are there alternatives to cmxflow?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy cmxflow to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: b-shields/cmxflow
[![Featured on ClaudeWave](https://claudewave.com/api/badge/b-shields-cmxflow)](https://claudewave.com/repo/b-shields-cmxflow)
<a href="https://claudewave.com/repo/b-shields-cmxflow"><img src="https://claudewave.com/api/badge/b-shields-cmxflow" alt="Featured on ClaudeWave: b-shields/cmxflow" width="320" height="64" /></a>

More MCP Servers

cmxflow alternatives