Skip to main content
Glama

hosting-doctor-mcp

An MCP server that diagnoses web hosting and server problems by combining live diagnostic checks (HTTP, SSL, DNS, security headers) with a RAG-searchable knowledge base of troubleshooting notes, stored in Weaviate.

Point Claude, Cursor, or any other MCP client at a URL and a symptom ("visitors see a blank white page", "certificate warning in the browser", "site went down after I changed nameservers") and it gets back live evidence plus the most relevant troubleshooting notes — then reasons over both to explain what's actually wrong, instead of guessing from the symptom text alone.

Why this exists

Most "AI + hosting" tools fall into one of two buckets: an official API wrapper (DigitalOcean, WordPress, and Weaviate all already ship their own MCP servers for CRUD-style operations against their own platforms), or a generic Lighthouse/PageSpeed wrapper (several of these already exist too). Neither actually diagnoses anything — they just expose an API.

hosting-doctor-mcp is a synthesis tool instead: it runs the live checks and retrieves the relevant troubleshooting context in one call, then leaves the actual reasoning to the calling agent, which has the full conversation and can explain the result in plain language. That retrieval-not-generation split is deliberate — the tool's job is to gather evidence, not to write the final answer.

Related MCP server: hosting-doctor-mcp

Tools

Tool

What it does

check_http_status

Live HTTP request: status code, latency, full redirect chain

check_ssl

Live TLS handshake: issuer, validity window, days until expiry, SANs

check_dns

Live DNS lookups: A / AAAA / CNAME / MX / TXT / NS

check_security_headers

Checks response headers against CSP / HSTS / X-Content-Type-Options / X-Frame-Options / Referrer-Policy / Permissions-Policy

search_troubleshooting_kb

Hybrid vector + keyword search over a curated knowledge base of hosting issues

diagnose

Orchestrator: runs all four live checks and a KB search in parallel, returns one structured report

The knowledge base (kb/*.md) currently covers 17 issues: 502/504 gateway errors, mixed content warnings, WordPress white screen of death, DNS propagation delays, SSL chain issues, CORS errors, high TTFB, redirect loops, CDN cache staleness, PHP memory limit errors, 429 rate limiting, Let's Encrypt renewal failures, generic 500 errors, email deliverability (SPF/DKIM/DMARC), disk space exhaustion, connection-refused/port issues, and database connection pool exhaustion. Each note is frontmatter (title, tags, symptoms) plus a short cause-and-fix body — see kb/ to read or extend them.

Architecture

MCP client (Claude Desktop / Cursor / Claude Code)
        │  stdio (JSON-RPC)
        ▼
hosting-doctor-mcp server (Node + TypeScript, @modelcontextprotocol/sdk)
    ├── check_http_status / check_ssl / check_dns / check_security_headers
    │     → Node built-ins only (fetch, tls, dns/promises) — zero external deps
    │
    └── search_troubleshooting_kb / diagnose
          → Weaviate Cloud (hybrid search, text2vec-weaviate hosted embeddings)

The four live-check tools have no external dependencies and work immediately. The KB search depends on a Weaviate Cloud sandbox — see setup below.

Setup

1. Install and build

git clone https://github.com/huzaifashuja/hosting-doctor-mcp.git
cd hosting-doctor-mcp
npm install
npm run build

The KB search and diagnose tools need a Weaviate Cloud sandbox (free tier is enough):

  1. Create a free sandbox cluster at console.weaviate.cloud.

  2. Copy .env.example to .env and fill in WEAVIATE_URL and WEAVIATE_API_KEY from the sandbox's dashboard.

  3. Ingest the knowledge base:

    npm run ingest

Without this step, the four live-check tools still work fine — search_troubleshooting_kb and diagnose will just report the KB as unavailable.

3. Connect it to an MCP client

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "hosting-doctor": {
      "command": "node",
      "args": ["/absolute/path/to/hosting-doctor-mcp/dist/src/index.js"],
      "env": {
        "WEAVIATE_URL": "https://your-cluster-id.weaviate.network",
        "WEAVIATE_API_KEY": "your-weaviate-api-key"
      }
    }
  }
}

Cursor — add the same shape to .cursor/mcp.json in your project (or the global Cursor MCP config).

Claude Code — claude mcp add hosting-doctor -- node /absolute/path/to/hosting-doctor-mcp/dist/src/index.js

4. Try it

Ask your MCP client something like:

My site example.com is showing a certificate warning, can you check what's wrong?

or

Diagnose why mysite.com is showing a blank white screen.

Development

npm run dev       # run the server directly with tsx (no build step)
npm run inspect   # build, then open the MCP Inspector for manual tool testing
npm run ingest    # re-ingest kb/*.md into Weaviate (safe to re-run)

Project structure

src/
  index.ts                 # MCP server entrypoint, tool registration
  tools/
    checkHttpStatus.ts
    checkSsl.ts
    checkDns.ts
    checkSecurityHeaders.ts
    searchKb.ts
    diagnose.ts
  lib/
    weaviateClient.ts       # Weaviate connection + collection schema
  types.ts
kb/
  *.md                      # curated troubleshooting notes
scripts/
  ingest.ts                 # chunks + upserts kb/*.md into Weaviate

License

MIT

Available Tools

6 tools
check_dnsCheck DNS RecordsA

Looks up live DNS records (A, AAAA, CNAME, MX, TXT, NS) for a domain. Use this to diagnose propagation delays, missing records, or misconfigured mail/DNS setups.

Inputs: domain (required), recordType.

check_http_statusCheck HTTP StatusA

Makes a live HTTP request to a URL and reports the status code, latency, and full redirect chain. Use this to check whether a site is up, slow, or stuck in a redirect loop.

Inputs: url (required).

check_security_headersCheck Security HeadersA

Fetches a URL and checks its response headers against a standard security checklist (CSP, HSTS, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy), noting the risk for each missing header.

Inputs: url (required).

check_sslCheck SSL/TLS CertificateA

Opens a live TLS connection to a hostname and reports certificate issuer, validity window, days until expiry, and subject alternative names. Use this to diagnose SSL warnings or expiry issues.

Inputs: hostname (required), port.

diagnoseDiagnose Hosting IssueA

The main entry point: given a URL and a description of the symptom, runs every live check (HTTP status, SSL, DNS, security headers) in parallel alongside a knowledge-base search, and returns one structured report. Use this first for an open-ended 'why is my site doing X' question; use the individual check_* / search_troubleshooting_kb tools when you already know exactly what to check.

Inputs: url (required), symptom (required).

search_troubleshooting_kbSearch Troubleshooting Knowledge BaseA

Searches a curated knowledge base of hosting/web-server troubleshooting notes (502/504 errors, mixed content, DNS propagation, SSL chain issues, CORS, rate limiting, and more) using hybrid vector + keyword search. Returns the most relevant notes for a described symptom.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each check_* tool targets a distinct infrastructure layer (HTTP, SSL, DNS, headers), and search_troubleshooting_kb covers knowledge lookup. The diagnose tool intentionally aggregates the others but is clearly positioned as the main entry point, reducing ambiguity.

    Naming Consistency4/5

    The majority of tools follow a clean check_<target> pattern, with search_troubleshooting_kb following a similar verb_noun structure. The one-off diagnose name is a minor deviation, but it is meaningful as the umbrella entry point and does not feel chaotic.

    Tool Count5/5

    Six tools is well-scoped for a hosting diagnosis server. Each live check is necessary, the knowledge base search adds a distinct capability, and diagnose ties them together without adding redundant tools.

    Completeness4/5

    The set covers the main hosting diagnostic areas: HTTP status/redirects, SSL validity, DNS records, security headers, and troubleshooting guidance. Minor gaps like port reachability, WHOIS lookups, or content inspection exist, but the core workflows are fully covered.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Provides comprehensive tools for real-time DNS queries across 53 record types, global propagation checks, and SSL certificate analysis. It also enables domain security scans for SPF/DKIM/DMARC configurations and HTTP uptime monitoring.
      8
      89 npm
      23
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Diagnoses web hosting and server issues by combining live HTTP, SSL, DNS, and security-header checks with a searchable knowledge base of troubleshooting notes, enabling MCP clients to investigate symptoms and explain root causes.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables Claude to run safe, read-only diagnostics against servers and websites — certificate chains and expiry, HTTP status/redirects/security headers, DNS records, email authentication (SPF, DKIM, DMARC, MTA-STS, TLS-RPT) and sitemaps. Every check returns severity-tagged findings with concrete fixes, plus a 0-100 score and A-F grade, without any ability to modify the target.
      8
      31 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      This server provides comprehensive website diagnostics, allowing AI agents and clients to perform detailed HTTP, DNS, SSL/TLS, security header, SEO, and AI-readiness checks on any public website. It covers a wide range of tools including WHOIS, email checks, and network analysis.
      MIT