# PDB prep for docking: receptor, ligand and Vina box

> Fetch or load a PDB, clean it, extract the ligand, list binding-site residues and output a ready-to-paste Vina/Gnina box.

PDB prep for docking: receptor, ligand and Vina box is a paid AI agent skill on Agensi by Christian Dominguez, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [Christian Dominguez](https://www.agensi.io/creators/christian-dominguez)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0
- Last updated: 2026-10-11
- Security: scan passed (2026-10-11); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pdb-prep-for-docking-receptor-ligand-and-vina-box
- Tags: research, python, bioinformatics, docking, molecular-modeling

## About this skill

Turns a PDB entry into docking-ready inputs in one step.

### What it does
- **Fetch or load:** downloads from RCSB by ID, or reads a local .pdb file.
- **Inspect:** reports resolution, chains with residue counts, ligands and HETATM groups (water and ~25 common buffer/ion additives excluded), missing residues from REMARK 465, and chain breaks found from numbering gaps.
- **Clean:** writes a receptor PDB with the first model only, altloc A, and no water, additives or other ligands. `--chain` and `--keep-ligand` control what stays.
- **Split:** writes the selected ligand as its own PDB.
- **Box:** lists binding-site residues within 5 A of the ligand and prints a Vina/Gnina box (centre and size, padding adjustable with `--pad`).
- **Warn:** flags resolution worse than 2.5 A, gaps near the site, box edges over 30 A and multiple ligand candidates.

### Why it's trustworthy
All parsing and geometry run in a bundled, self-tested script (`scripts/pdbprep.py --selftest`); the model never invents coordinates. The script uses only the Python standard library, so there is nothing to install beyond uv.

### Requirements
[uv](https://docs.astral.sh/uv/), and internet access only when fetching a structure by PDB ID.

## Requires

- Python

## Known limitations

- Geometry and file prep only: no hydrogens, no protonation states, no PDBQT conversion and no docking itself.
- The binding site is defined by proximity to a bound ligand; apo (ligand-free) structures need a manual box.
- Standard-library PDB parsing: mmCIF-only entries and very large assemblies are not supported.
- Keeps altloc A and the first model; it does not score alternative conformations.
- Needs uv, and internet access when fetching by PDB ID.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the PDB prep for docking: receptor, ligand and Vina box skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill improve upon manual PDB preparation or basic LLM prompting?

The skill automates the removal of crystallization waters, additives, and PEG while extracting specific ligands and calculating precise XYZ docking coordinates, eliminating the manual errors common in text-based PDB preparation.

### Can I use my own local PDB files, or does it only work with RCSB database IDs?

Yes, the skill can process both 4-character RCSB PDB IDs for automated downloading and local .pdb files stored on your system.

### Does 'pdb prep' handle hydrogen addition and protonation state assignments?

While the skill cleans and isolates structures, it does not currently add hydrogens or assign specific protonation states; we recommend using a tool like Open Babel or MGLTools for these final steps.

### What specific outputs are provided for docking simulations?

The skill provides ligand centroids and search box dimensions (size_x, y, z) specifically formatted for seamless integration into AutoDock Vina and Gnina configuration files.

### What exactly is included in the purchase of this skill?

A SKILL.md that tells your agent when and how to use it, plus the self-tested pdbprep.py script that does the fetching, cleaning, binding-site detection and box calculation. One file and one script; no account or subscription.

### What are the technical requirements to run this skill on my AI agent?

Only the uv package manager. The script uses the Python standard library, so there is no RDKit or other dependency to install. It runs in any agent that can execute shell commands.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
