1. Conduid
  2. Developer Tools
  3. Env Doctor
MCP server · Developer Tools

Env Doctor

Diagnose and Fix CUDA / GPU environments compatibility issues locally, in Docker, and CI/CD. CLI + MCP server available.

79Good

Scored just now · breakdown

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
uvx env-doctor
pip
pip install env-doctor
From source
git clone https://github.com/mitulgarg/env-doctor

Tools (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.
ParameterTypeDescription
versionstringOptional 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.
ParameterTypeDescription
content *stringdocker-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.
ParameterTypeDescription
content *stringDockerfile 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.
ParameterTypeDescription
engine *stringEngine 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.
ParameterTypeDescription
component *stringComponent 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.
ParameterTypeDescription
library *stringLibrary 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.
ParameterTypeDescription
model_name *stringModel name (e.g., 'llama-3-8b', 'meta-llama/Llama-2-7b-hf', 'stable-diffusion-xl')
precisionstringOptional specific precision to check
recommendbooleanInclude 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

v0.3.5v0.3.5: vLLM & SGLang resolver · 1 Oct 2026`pip install vllm` (≥ 0.20) pulls a CUDA 13 wheel that fails on CUDA 12.x drivers. env-doctor now resolves vLLM/SGLang → torch → CUDA build → kernel libs against your driver and gives you the install command that actually runs. env-doctor…
v0.3.4(v0.3.4) Jupyter / notebook HTML output · 15 Jun 2026env-doctor v0.3.4 Added Jupyter / notebook HTML output — `from env_doctor import check; check()` auto-detects a live Jupyter/Colab kernel and renders a rich, self-contained HTML report inline. Falls back to the familiar terminal text…
v0.3.3(v0.3.3) Fleet grouping, activity log, topology multi-select · 13 May 2026v0.3.3 — Fleet grouping, activity log, topology multi-select This release turns the dashboard from a *list of machines* into something you can actually run a fleet on. You can now organise GPU boxes by role, see every command queued across…
v0.3.2(v0.3.2) Dashboard fixes · 2 May 2026Bug Fixes env-doctor check --json exit codes corrected Previously, having torch/tensorflow/jax uninstalled caused check --json to exit with code 1, making remote remediation commands appear as "failed" on the dashboard even when the…
v0.3.1(v0.3.1) Dashboard v2: Topology View, Remote Remediation & Fleet Redesign · 15 Apr 2026env-doctor v0.3.1 Dashboard v2: Topology View, Remote Remediation & Fleet Redesign This release transforms the fleet dashboard from a static monitoring UI into an interactive operations console with a graph-based topology view, remote…

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
Questions

About Env Doctor

How do I install Env Doctor?

Run uvx env-doctor, then add the server to your MCP client's configuration.

Is Env Doctor safe to use with an AI agent?

Its trust score is 79 out of 100 (good). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Conduid's scan of 65 source files found that it serves MCP over stdio, starts other programs (22 calls), makes outbound network calls (5 calls) and writes or deletes files (21 calls). Its dependencies are pinned by uv.lock and web/package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Env Doctor still maintained?

Yes — the latest release is v0.3.5 (1 Oct 2026), and the last commit was 19 hours ago. The repository has 174 stars and 8 open issues.

What tools does Env Doctor provide?

Conduid read 13 tools from the source: cuda_info, cuda_install, cudnn_info, docker_compose_validate, dockerfile_validate, engine_check, env_check, env_check_component and 5 more. 7 of them publish their parameters, listed under Tools above.

What license is Env Doctor released under?

The repository declares the MIT license. That applies to the latest release, v0.3.5, as well.