CDK PywrapperCAUTION
A Python wrapper for the Chemistry Development Kit (CDK)
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Python Wrapper for the Chemistry Development kit
tl;dr
- A Python wrapper for the Chemistry Development Kit (CDK), which is written in Java
- Primary purpose:
- Generate diverse chemical compound identifiers (SMILES, InChI).
- Inter-convert between these identifiers.
- Integration with chem
- Fully compatible with Python 3.x.
Motivation
Cheminformatics only has a small number of open source tools, e.g. OpenBabel, the Chemistry Development Kit and RDKit.
Every framework has its pros and cons, e.g. OpenBabel has issues with InChI generation from SMILES.
CDK lacks the ability to be used with Python, while Python has become the indispensable programming language for data science, also in cheminformatics and computational biology.
Also, all three frameworks lack integration with databases.
Installation
Before installing cdk_pywrapper, make sure to have a Java JDK available on your system, e.g. OpenJDK.
Then, you can install from the repository directly.
# Create Python virtual environment named 'cdk_pywrapper' python3 -m venv ./cdk_pywrapper source ./cdk_pywrapper/bin/activate # Clone repository from GitHub git clone https://github.com/sebotic/cdk_pywrapper.git cd cdk_pywrapper # Install into created venv pip install .
This will install the package on your local system. Setuptools will take care of downloading the CDK.jar and it will build the cdkbridge.java. So after that, cdkpywrapper should be ready to use, like in the example below.
cdk_pywrapper was tested on Linux and MacOS, but it should also work on Windows.
Example
from cdk_pywrapper.cdk_pywrapper import Compound smiles = 'CCN1C2=CC=CC=C2SC1=CC=CC=CC3=[N+](C4=CC=CC=C4S3)CC.[I-]' cmpnd = Compound(compound_string=smiles, identifier_type='smiles') ikey = cmpnd.get_inchi_key() print(ikey)
Output: 'MNQDKWZEUULFPX-UHFFFAOYSA-M'
MCP server
I al
224922749a82OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add cdk_pywrapper -- uvx cdk_pywrapper
{
"mcpServers": {
"cdk_pywrapper": {
"command": "uvx",
"args": [
"cdk_pywrapper"
]
}
}
}Exposed tools (8)
8 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
calculate_lipinski_rule_of_5 | read | |
calculate_molecular_descriptors | read | |
generate_molecule_svg | read | |
get_compound_identifiers | read | |
get_tautomers | read | |
perform_substructure_search | read | |
query_chembl_by_inchi_key | read | |
search_compound_by_name | read |
Trust audit
CAUTIONgrade B · trust 87/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (5 observation(s))
- Shell
- declared (2 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (6)
'Β': '\u0392',
'Γ': '\u0393',
'Ε': '\u0395',
'Η': '\u0397',
'Θ': '\u0398',
py4j, psutil, wget, fastmcp, requests, pandas, numpy, wikidataintegrator
Gates applied: no_behavioural_pass.
224922749a82full audit observations/trust-audit/mcp-server/sebotic__cdk-pywrapper.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 224922749a82 | CAUTION | B | 87 | first audit |
Questions
What is the CDK Pywrapper MCP server?
A Python wrapper for the Chemistry Development Kit (CDK)
What tools does CDK Pywrapper expose?
8 in total: 8 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is CDK Pywrapper safe to connect to an agent?
With care. The audit graded it B (87/100) and found 6 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does CDK Pywrapper need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (224922749a82), read on 2026-10-08. The repository is watched and re-audited when it changes.