About Env Doctor
Env Doctor is an MCP server published by mitulgarg in the Developer Tools category: diagnose and Fix CUDA / GPU environments compatibility issues locally, in Docker, and CI/CD. CLI + MCP server available. Conduid read 13 tools from its source: cuda_info, cuda_install, cudnn_info, docker_compose_validate, dockerfile_validate, engine_check and 7 more. It is published to PyPI as env-doctor and runs with uvx.
The repository has 174 stars and 10 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v0.3.5 (1 Oct 2026): pip install vllm (≥ 0.20) pulls a CUDA 13 wheel that fails on CUDA 12.x drivers. It follows v0.3.4 (15 Jun 2026), and the 5 most recent releases go back to v0.3.1 (15 Apr 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include cloudflare-workers, compatibility-checker, cuda-compatibility, dependency-analysis, devtools and environment-validation.
Install
uvx env-doctorpip install env-doctorgit clone https://github.com/mitulgarg/env-doctorTools (13)
cuda_infoGet detailed CUDA toolkit information including: nvcc version and path, all CUDA installations, CUDA_HOME configuration, PATH/LD_LIBRARY_PATH status, libcudart runtime library, and driver compatibility analysis.cuda_installGet step-by-step CUDA Toolkit installation instructions tailored to the user's platform. Detects OS/distro, recommends the best CUDA version based on GPU driver, and provides copy-paste installation commands for Ubuntu, Debian, RHEL, Fedora, WSL2, Windows, and Conda.| Parameter | Type | Description |
|---|---|---|
| version | string | Optional specific CUDA version to install (e.g., '12.6', '12.4', '12.1', '11.8'). If not specified, auto-detects best version from GPU driver. |
cudnn_infoGet detailed cuDNN library information including: version, library paths, symlink status (Linux), PATH configuration (Windows), multiple version detection, and CUDA compatibility.docker_compose_validateValidate docker-compose.yml content for GPU configuration issues. Checks for: missing deploy.resources.reservations.devices, incorrect GPU driver settings, missing runtime: nvidia, and other GPU passthrough configuration problems.| Parameter | Type | Description |
|---|---|---|
| content * | string | docker-compose.yml content to validate |
dockerfile_validateValidate Dockerfile content for GPU/CUDA configuration issues. Checks for: CPU-only base images, missing PyTorch --index-url flags, CUDA version mismatches, driver installations in containers, and deprecated package usage.| Parameter | Type | Description |
|---|---|---|
| content * | string | Dockerfile content to validate |
engine_checkCheck whether an inference engine (vLLM or SGLang) will run on this machine's NVIDIA driver. Resolves engine version -> pinned torch -> CUDA build -> kernel libs against the driver's max CUDA, and returns ranked fix options (alternate CUDA build first, then another engine version, driver upgrade last and flagged risky) plus a copy-to-fix install command.| Parameter | Type | Description |
|---|---|---|
| engine * | string | Engine name, optionally with a target version: 'vllm', 'sglang', 'vllm@0.20.0' |
env_checkRun full GPU/CUDA environment diagnostics. Checks NVIDIA driver, CUDA toolkit, cuDNN, Python AI libraries (PyTorch, TensorFlow, JAX), and WSL2 configuration. Returns status, versions, and recommendations for each component.env_check_componentRun diagnostics for a specific component. Available components: nvidia_driver, cuda_toolkit, cudnn, python_library, wsl2.| Parameter | Type | Description |
|---|---|---|
| component * | string | Component to check (nvidia_driver, cuda_toolkit, cudnn, python_library, wsl2) |
install_commandGet the safe pip install command for an AI library based on the detected GPU driver. Automatically determines the correct CUDA version and wheel URL for libraries like PyTorch, TensorFlow, and JAX.| Parameter | Type | Description |
|---|---|---|
| library * | string | Library name (e.g., 'torch', 'tensorflow', 'jax', 'vllm', 'sglang@0.5.19') |
model_checkCheck if an AI model fits on available GPU hardware. Analyzes VRAM requirements across precisions (fp32, fp16, bf16, int8, int4) and provides recommendations for running the model.| Parameter | Type | Description |
|---|---|---|
| model_name * | string | Model name (e.g., 'llama-3-8b', 'meta-llama/Llama-2-7b-hf', 'stable-diffusion-xl') |
| precision | string | Optional specific precision to check |
| recommend | boolean | Include cloud GPU instance recommendations (AWS, GCP, Azure) sorted by cost |
model_listList all available AI models in the database, grouped by category (LLM, diffusion, audio, VLM). Includes parameter counts and HuggingFace IDs.python_compat_checkCheck Python version compatibility with installed AI libraries. Detects version conflicts where the current Python version is outside a library's supported range, and identifies dependency cascades where one library's constraint forces version limits on downstream packages.wsl_infoGet detailed WSL (Windows Subsystem for Linux) environment information including: environment type (Native Linux / WSL1 / WSL2), kernel version, GPU forwarding status, and diagnostic checklist for WSL2 CUDA support.Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.3K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock and web/package-lock.json.
- !No dynamic code executionScanned 65 source files and found 2 calls to eval or shell execution, in src/env_doctor/installer.py:308 and tools/validator.py:66. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/env_doctor/mcp/server.py:11
- Starts other programs
- 22 callssrc/env_doctor/cli.py:2743, src/env_doctor/cli.py:2751, src/env_doctor/cli.py:2761
- Outbound network calls
- 5 callssrc/env_doctor/db.py:78, tools/scraper.py:35, tools/scraper.py:56
- Writes or deletes files
- 21 callssrc/env_doctor/cli.py:2519, src/env_doctor/cli.py:2643, src/env_doctor/cli.py:2645
- Lockfile
- uv.lock and web/package-lock.json
Pattern matches on the source text of 65 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.3K words, fetched a month ago. The original in the repository is authoritative.
Read full README