@matwings/matvenus-cli
v0.2.4
Published
Standalone MCP server for MatVenus protein tools
Downloads
517
Readme
@matwings/matvenus-cli
Command-line interface for the MatVenus Protein Tools API. Provides access to protein structure prediction, mutation analysis, molecular dynamics, and de novo protein design via the MatVenus MCP server.
Installation
From NPM (Recommended)
# Install globally
npm install -g @matwings/matvenus-cli
# Or use without installation
npx @matwings/matvenus-cli --helpFrom Source
git clone https://github.com/matwings/matvenus-cli.git
cd matvenus-cli
npm install
npm run build
npm link # optional: install globally as `matvenus-cli`Authentication
Set the Bearer token via environment variable before running any command:
export MATVENUS_BEARER_TOKEN="your-token-here"Base URL
The default base URL is https://www.matvenus.com. Override per-command with --base-url <url>.
Async Execution Pattern
All compute-heavy commands are asynchronous. They return immediately with:
{
"tool_call_id": "abc-123",
"status": "pending",
"tool_name": "alphafold2_protein_folding"
}You must poll get-tool-result until status is success or error:
# Submit job
matvenus-cli alphafold-2-protein-folding --body '{"sequence": "MKTAYIAKQ..."}'
# Poll for result (repeat until status = success)
matvenus-cli get-tool-result --tool-call-id abc-123Status values: pending → running → success | error
Uploading Local Files
Many commands accept fasta_file, pdb_file, etc. as OSS URLs. To use a local file, upload it first with upload-file-multipart:
# 1. Upload the file directly (no encoding needed)
matvenus-cli upload-file-multipart --file my_protein.fasta
# Returns: result.url = "oss://bucket/..."
# 2. Use the URL in prediction commands
matvenus-cli alphafold-2-protein-folding \
--body '{"fasta_file": "oss://bucket/..."}'Commands
Functional Residue Prediction
predict-functional-residue
Predict functional residues (activity/binding/conserved sites, motifs).
matvenus-cli predict-functional-residue --body '{
"sequence": "MKTAYIAKQRQISFVKSHFSRQ...",
"model_name": "ESM2-650M",
"task": "Activity Site"
}'| Parameter | Type | Default | Options |
|-----------|------|---------|---------|
| sequence | string | null | — | Inline amino acid sequence |
| fasta_file | string | null | — | OSS URL to FASTA file |
| model_name | string | ESM2-650M | ESM2-650M, Ankh-large, ProtT5-xl-uniref50 |
| task | string | Activity Site | Activity Site, Binding Site, Conserved Site, Motif |
venusx-functional-residue-prediction
VenusX model for functional site prediction (higher accuracy than base model).
matvenus-cli venusx-functional-residue-prediction --body '{
"sequence": "MKTAYIAKQ...",
"task": "VenusX-Activity",
"mode": "pro"
}'| Parameter | Type | Default | Options |
|-----------|------|---------|---------|
| sequence | string | null | — | |
| fasta_file | string | null | — | OSS URL |
| task | string | VenusX-Activity | VenusX-Activity, VenusX-Binding, VenusX-Evo |
| mode | string | pro | pro (Ankh-large), light (ESM2-650M) |
Protein Function Prediction
venusg-protein-function-prediction
Predict protein-level properties: solubility, localization, stability, kinetics, etc.
matvenus-cli venusg-protein-function-prediction --body '{
"sequence": "MKTAYIAKQ...",
"task": "VenusG-Solubility",
"mode": "light"
}'| Parameter | Type | Default | Options |
|-----------|------|---------|---------|
| sequence | string | null | — | |
| fasta_file | string | null | — | OSS URL |
| task | string | VenusG-Solubility | VenusG-Solubility, VenusG-SubcellularLocalization, VenusG-MembraneProtein, VenusG-Metalionbinding, VenusG-Stability, VenusG-Sortingsignal, VenusG-OptimumTemperature, VenusG-Kcat, VenusG-OptimalPH |
| mode | string | light | pro (ESM2-650M), light (ProtBert) |
predict-protein-properties
Calculate physicochemical properties and structural features.
matvenus-cli predict-protein-properties --body '{
"sequence": "MKTAYIAKQ...",
"task_name": "Physical and chemical properties"
}'| Parameter | Type | Default | Options |
|-----------|------|---------|---------|
| sequence | string | null | — | |
| fasta_file | string | null | — | OSS URL to FASTA or PDB |
| task_name | string | Physical and chemical properties | Physical and chemical properties, Relative solvent accessible surface area (PDB only), SASA value (PDB only), Secondary structure (PDB only) |
Structure Prediction
esmfold-protein-folding
Fast protein structure prediction using ESMFold (sequence only, no MSA).
matvenus-cli esmfold-protein-folding --body '{
"sequence": "MKTAYIAKQRQISFVKSHFSRQ"
}'| Parameter | Required | Default |
|-----------|----------|---------|
| sequence | yes | — |
| verbose | no | true |
alphafold-2-protein-folding
High-accuracy AlphaFold2 structure prediction for single or multi-chain proteins.
# Single chain
matvenus-cli alphafold-2-protein-folding --body '{
"sequence": "MKTAYIAKQ..."
}'
# Multi-chain (multimer preset, requires FASTA file)
matvenus-cli alphafold-2-protein-folding --body '{
"fasta_file": "oss://bucket/complex.fasta",
"model_preset": "multimer"
}'| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| sequence | string | null | — | Single-chain amino acid sequence |
| fasta_file | string | null | — | OSS URL to FASTA (required for multimer) |
| submission_mode | string | matvenus_huge | matvenus_huge (MSA + inference) or paracloud_af (legacy) |
| model_preset | string | monomer_ptm | monomer_ptm or multimer |
alphafold-3-protein-folding
AlphaFold3 structure prediction supporting protein, DNA, RNA, and ligand complexes.
# Single chain
matvenus-cli alphafold-3-protein-folding --body '{
"sequence": "MKTAYIAKQ..."
}'
# Protein + ATP ligand complex
matvenus-cli alphafold-3-protein-folding --body '{
"sequences": [
{"protein": {"id": "A", "sequence": "MKTAYIAKQ..."}},
{"ligand": {"id": "Z", "ccdCodes": ["ATP"]}}
],
"model_seeds": [42]
}'| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| sequence | string | null | — | Single-chain sequence (simple cases) |
| fasta_file | string | null | — | OSS URL to FASTA |
| sequences | array | null | — | Multi-chain/ligand entity list (proteins, DNA, RNA, ligands) |
| model_seeds | int[] | null | [42] | Random seeds for prediction |
Mutation Prediction
venusrem-mutation-prediction
Single-point mutation effect prediction using multi-model ensemble.
# Light mode (sequence-based)
matvenus-cli venusrem-mutation-prediction --body '{
"task": "stability",
"mode": "light",
"sequence": "MKTAYIAKQ..."
}'
# Pro mode (structure-based, higher accuracy)
matvenus-cli venusrem-mutation-prediction --body '{
"task": "activity",
"mode": "pro",
"structure_file": "oss://bucket/protein.pdb"
}'| Parameter | Required | Options |
|-----------|----------|---------|
| task | yes | activity, binding, stability, expression, general |
| mode | yes | pro (structure-based), light (sequence-based) |
| structure_file | pro mode | OSS URL to PDB |
| sequence | light mode | Inline sequence |
| fasta_file | light mode | OSS URL to FASTA |
venusprime-multipoint-prediction
Multi-point combination mutation prediction using trained ensemble models.
Two-step workflow: train → inference
# Step 1: Train models from experimental data
matvenus-cli venusprime-multipoint-prediction --body '{
"mode": "train",
"sequence": "MKTAYIAKQ...",
"experiment_file": "oss://bucket/mutations.csv",
"score_col_name": "fitness",
"model_num": 5
}'
# Returns tool_call_id; poll until success; result contains model_path_list
# Step 2: Inference on combination mutations
matvenus-cli venusprime-multipoint-prediction --body '{
"mode": "inference",
"model_path_list": ["oss://bucket/model_0.pkl", "..."],
"site": [10, 25, 42]
}'| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| mode | string | inference | train or inference |
| venus_mode | string | light | light (ridge regression) |
| sequence | string | null | — | Wild-type sequence (train) |
| fasta_file | string | null | — | OSS URL to FASTA (train) |
| experiment_file | string | null | — | OSS URL to CSV with mutant+score cols (train) |
| score_col_name | string | — | Score column name in experiment_file |
| model_path_list | string[] | null | — | Trained model OSS URLs (inference) |
| site | int[] | null | [2,3,4] | Mutation site positions (inference) |
| model_num | int | 5 | Ensemble model count (train) |
| target_server | string | slurm | slurm or paracloud |
Molecular Dynamics
gromacs-md
Run GROMACS MD simulation (system build + production run).
matvenus-cli gromacs-md --body '{
"pdb_file": "oss://bucket/protein.pdb",
"force_field": "amber99sb-ildn",
"water_model": "tip3p",
"temp": "300",
"md_steps": "50000"
}'| Parameter | Required | Default |
|-----------|----------|---------|
| pdb_file | yes | OSS URL to PDB |
| force_field | no | amber99sb-ildn |
| water_model | no | tip3p |
| temp | no | 300 (K) |
| pressure | no | 1.0 (bar) |
| md_steps | no | 50000 (~100ps at dt=2fs) |
gromacs-analysis
Analyze GROMACS MD trajectory (RMSD, RMSF, Rg, etc.).
Requires output from a completed gromacs-md run.
matvenus-cli gromacs-analysis --body '{
"tpr_file": "oss://bucket/md.tpr",
"xtc_file": "oss://bucket/md.xtc"
}'Protein Mining & Design
venusmine-protein-mining
Mine novel protein variants from structure-based screening.
matvenus-cli venusmine-protein-mining --body '{
"pdb_file": "oss://bucket/protein.pdb",
"target_server": "slurm"
}'proteinmpnn-sequence-design
Design sequences for a given protein backbone using ProteinMPNN.
matvenus-cli proteinmpnn-sequence-design --body '{
"pdb_path": "oss://bucket/backbone.pdb",
"designed_chains": ["A"],
"fixed_chains": ["B"],
"num_sequences": 4,
"temperatures": [0.1]
}'| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| pdb_path | string | — | OSS URL to PDB (required) |
| designed_chains | string[] | null | — | Chains to redesign |
| fixed_chains | string[] | null | — | Chains to keep fixed |
| num_sequences | int | 4 | Sequences to generate |
| temperatures | float[] | [0.1] | Sampling temperatures |
| omit_aas | string | X | Amino acids to exclude |
| homomer | bool | false | Symmetric homomer design |
| ca_only | bool | false | Cα-only backbone |
rfdiffusion-protein-design
De novo protein structure generation using RFdiffusion.
# Unconditional generation
matvenus-cli rfdiffusion-protein-design --body '{
"length": "100",
"num_designs": 3
}'
# Motif scaffolding
matvenus-cli rfdiffusion-protein-design --body '{
"input_pdb": "oss://bucket/motif.pdb",
"contig": "A10-20,80",
"num_designs": 5
}'
# Binder design
matvenus-cli rfdiffusion-protein-design --body '{
"input_pdb": "oss://bucket/target.pdb",
"hotspots": "A10,A15,A20",
"length": "80-120"
}'| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| input_pdb | string | null | — | OSS URL (optional for unconditional) |
| contig | string | null | — | Contig string, e.g. A10-20,80 |
| num_designs | int | 1 | Designs to generate |
| length | string | null | — | Length constraint, e.g. 100 or 80-120 |
| hotspots | string | null | — | Hotspot residues, e.g. A10,A15 |
| partial_t | float | null | — | Noise level for partial diffusion (Å) |
| T | int | 50 | Diffusion steps |
File Upload
upload-file-multipart
Upload a local file via multipart/form-data. No encoding required — works for any file size.
matvenus-cli upload-file-multipart --file protein.pdb
# Response: result.url = OSS URL to use in other commands| Field | Description |
|-------|-------------|
| --file <path> | Local file path (FASTA, PDB, CSV, SDF, etc.) |
| result.url | OSS URL to pass to prediction commands |
| result.local_path | Workspace-relative path (for agent filesystem access) |
Result Management
get-tool-result
Poll for the result of an async job.
matvenus-cli get-tool-result --tool-call-id <tool_call_id>Response includes status (pending/running/success/error), tool_result (on success), and slurm_tasks with per-job details.
cancel-tool-result
Cancel a pending or running job.
matvenus-cli cancel-tool-result --tool-call-id <tool_call_id>Global Options
All commands support:
| Option | Description |
|--------|-------------|
| --base-url <url> | Override default base URL |
| --output json\|table | Output format (default: json) |
| --schema | Print the API schema for this command and exit |
Inspect Command Schema
matvenus-cli alphafold-2-protein-folding --schema
matvenus-cli alphafold-3-protein-folding --schema
matvenus-cli venusrem-mutation-prediction --schema