Skip to main content
Glama

@wphealthkit/mcp-server v0.4.0

An MCP (Model Context Protocol) server that gives AI assistants direct access to WP HealthKit's plugin audit API. Once configured, tools like Claude Desktop, Claude Code, and Cursor can trigger security audits, retrieve findings, fetch AI-ready fix prompts, bulk-audit entire plugin directories, and flag false positives — all without leaving the chat interface.

Setup

Required environment variable

WPHK_API_KEY=your_api_key_here

Get your API key from wphealthkit.com/dashboard.

Claude Desktop

Add the following to your claude_desktop_config.json (usually at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "wphealthkit": {
      "command": "npx",
      "args": ["-y", "@wphealthkit/mcp-server"],
      "env": {
        "WPHK_API_KEY": "your_api_key_here"
      }
    }
  }
}

Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "wphealthkit": {
      "command": "npx",
      "args": ["-y", "@wphealthkit/mcp-server"],
      "env": {
        "WPHK_API_KEY": "your_api_key_here"
      }
    }
  }
}

Cursor

Open Cursor Settings > MCP > Add Server and use:

{
  "wphealthkit": {
    "command": "npx",
    "args": ["-y", "@wphealthkit/mcp-server"],
    "env": {
      "WPHK_API_KEY": "your_api_key_here"
    }
  }
}

Related MCP server: EVIDIQ Lineage

Available tools

Tool

Description

audit_plugin

Trigger a security audit for a wp.org plugin by slug. Returns an audit ID.

audit_plugin_zip

Trigger an audit from a local ZIP file. Returns an audit ID.

audit_plugins_bulk

Audit all plugin ZIP files in a local directory. Submits in batches of 10, streams results as each completes, and prints a final summary with risk breakdown and links to top findings.

get_report

Poll the status and full results of an audit by its ID.

get_findings

Get paginated findings, with optional filters for severity and category.

get_fix_prompt

Get AI-ready fix prompts for an audit's findings, batched by severity.

check_plugin

Look up a plugin's security grade, risk level, and findings count from the directory.

list_usage

Check your current usage — audits used this month, tier, and limits.

flag_finding

Flag a finding as a false positive. The report goes to the WP HealthKit team for review; confirmed patterns result in a scanner rule update that prevents that pattern in all future audits.


Tool reference

audit_plugin

Triggers a security audit for any plugin hosted on wp.org.

Parameters

Parameter

Type

Required

Description

slug

string

Yes

The wp.org plugin slug (e.g. "contact-form-7").

engines

string[]

No

Audit engines to run. Defaults to all engines.

Example

audit_plugin({ slug: "contact-form-7" })
// Returns: { auditId: "abc-123", status: "queued" }

audit_plugin_zip

Triggers an audit from a local ZIP file. Useful for plugins not on wp.org or pre-release builds.

Parameters

Parameter

Type

Required

Description

path

string

Yes

Absolute path to the ZIP file on disk.

engines

string[]

No

Audit engines to run. Defaults to all engines.

Example

audit_plugin_zip({ path: "/Users/me/plugins/my-plugin.zip" })
// Returns: { auditId: "def-456", status: "queued" }

audit_plugins_bulk

Audits all plugin ZIP files in a local directory. Submissions are batched in groups of 10. Results stream as each audit completes, and a final summary table is printed with a risk breakdown and links to top findings.

Parameters

Parameter

Type

Required

Description

directory

string

Yes

Absolute path to the directory containing plugin ZIPs.

engines

string[]

No

Audit engines to run (e.g. ["performance"]). Defaults to all engines.

pattern

string

No

Glob pattern to match files. Defaults to "*.zip".

Example

audit_plugins_bulk({ directory: "/Users/me/plugins", engines: [] })

Output

Results stream to the conversation as each plugin completes. Once all audits finish, the tool prints a summary table:

Plugin                  Risk      Findings   Report
----------------------  --------  ---------  ----------------------------------------
my-plugin.zip           CRITICAL  14         https://wphealthkit.com/report/abc-123
another-plugin.zip      LOW       2          https://wphealthkit.com/report/def-456
legacy-plugin.zip       HIGH      7          https://wphealthkit.com/report/ghi-789

Summary: 3 plugins audited — 1 CRITICAL, 1 HIGH, 0 MEDIUM, 1 LOW

get_report

Polls the status and full results of an audit. Call this after audit_plugin or audit_plugin_zip to wait for completion and retrieve the report.

Parameters

Parameter

Type

Required

Description

auditId

string

Yes

The audit ID returned by audit_plugin or audit_plugin_zip.

Example

get_report({ auditId: "abc-123" })
// Returns: { status: "completed", grade: "C", riskLevel: "HIGH", findingsCount: 7, reportUrl: "..." }

get_findings

Returns paginated findings for a completed audit. Supports filtering by severity and category.

Parameters

Parameter

Type

Required

Description

auditId

string

Yes

The audit ID.

severity

string

No

Filter by severity: "CRITICAL", "HIGH", "MEDIUM", or "LOW".

category

string

No

Filter by category (e.g. "xss", "csrf", "performance").

page

number

No

Page number for pagination. Defaults to 1.

Example

get_findings({ auditId: "abc-123", severity: "CRITICAL" })

get_fix_prompt

Returns AI-ready fix prompts for an audit's findings, grouped and batched by severity. Pass the output directly to a coding assistant to generate patches.

Parameters

Parameter

Type

Required

Description

auditId

string

Yes

The audit ID.

severity

string

No

Limit prompts to a specific severity level.

Example

get_fix_prompt({ auditId: "abc-123", severity: "HIGH" })

check_plugin

Looks up a plugin's current security grade, risk level, and findings count from the WP HealthKit directory without triggering a new audit.

Parameters

Parameter

Type

Required

Description

slug

string

Yes

The wp.org plugin slug.

Example

check_plugin({ slug: "woocommerce" })
// Returns: { grade: "B", riskLevel: "MEDIUM", findingsCount: 3, lastAudited: "2026-04-20" }

list_usage

Returns your current billing period usage — audits consumed, tier, and remaining quota.

Parameters

None.

Example

list_usage()
// Returns: { auditsUsed: 47, auditsLimit: 100, tier: "pro", resetsAt: "2026-05-01" }

flag_finding

Flags a finding as a false positive. The report is reviewed by the WP HealthKit team. If the pattern is confirmed as a false positive, the scanner rule is updated to prevent the same result from appearing in all future audits.

Parameters

Parameter

Type

Required

Description

auditId

string

Yes

UUID of the audit containing the finding.

findingId

string

Yes

ID of the finding to flag (e.g. "finding-12").

findingTitle

string

Yes

Title of the finding as shown in the report.

reason

string

No

Explanation of why this is a false positive.

Example

flag_finding({
  auditId: "abc-123-def-456",
  findingId: "finding-5",
  findingTitle: "Named arguments used in internal function call",
  reason: "These are positional args — the scanner is misidentifying the call signature"
})
// Returns: { flagged: true, reviewTicket: "FP-2891" }

Usage flows

Audit a single plugin and get fix prompts

audit_plugin({ slug: "my-plugin" })
  → get_report({ auditId: "..." })          // poll until status === "completed"
  → get_findings({ auditId: "...", severity: "CRITICAL" })
  → get_fix_prompt({ auditId: "..." })

Audit all plugins in a local directory

audit_plugins_bulk({ directory: "/Users/me/plugins" })
  // streams per-plugin results as they complete
  // prints final summary table with risk breakdown

Check a plugin before installing

check_plugin({ slug: "advanced-custom-fields" })
  // returns grade, risk level, and findings count without consuming an audit credit

Flag a false positive after reviewing findings

get_findings({ auditId: "...", severity: "HIGH" })
  → flag_finding({
      auditId: "...",
      findingId: "finding-12",
      findingTitle: "Unescaped output in template",
      reason: "Output is escaped upstream via wp_kses before reaching this call"
    })

Environment variables

Variable

Default

Description

WPHK_API_KEY

—

Required. Your WP HealthKit API key.

WPHK_API_URL

https://wphealthkit.com/api/v1

Override to point at a self-hosted or staging instance.


License

MIT

Available Tools

13 tools
audit_pluginAInspect

Trigger a security audit for a WordPress plugin by its wp.org slug. Optionally pass engines: ['performance'] for extended performance analysis (+1 token). Submits to the job queue and polls until complete (up to 20 minutes). Returns the full audit summary.

Inputs: slug (required), engines.

audit_plugins_bulkAInspect

Audit all plugin ZIP files in a local directory. Submits in batches of 10 via the job queue, streams results as each audit completes, and prints a summary table. Useful for auditing an entire plugin suite at once.

Inputs: directory (required), engines, pattern.

audit_plugin_zipAInspect

Audit a WordPress plugin from a local ZIP file. Provide the absolute or relative path to the .zip file. Submits to the job queue and polls until complete (up to 20 minutes). Returns the full audit summary.

Inputs: file_path (required), engines.

check_pluginAInspect

Look up a plugin's latest security grade, risk level, and findings count from the WP HealthKit directory.

Inputs: slug (required).

flag_findingAInspect

Flag a specific finding in an audit as a false positive. The report goes to the WP HealthKit team for review — confirmed patterns result in a scanner rule update preventing this finding in future audits.

Inputs: auditId (required), findingId (required), findingTitle (required), reason.

generate_sbomAInspect

Generate a CycloneDX or SPDX Software Bill of Materials (SBOM) for a completed audit. Required for EU Cyber Resilience Act (CRA) compliance. Returns the SBOM JSON.

Inputs: auditId (required), format.

get_findingsAInspect

Get paginated findings from an audit, optionally filtered by severity or category.

Inputs: auditId (required), limit, offset, category, +1 more.

get_fix_planAInspect

Get the full Fix Plan for an audit — every finding with impact, remediation guidance, test steps, confidence, and agent-safety flags. Premium-tier audits may include refactorPlan: systemic refactor plans that eliminate a whole class of bug in one coordinated change (do those first). JSON (default) or Markdown.

Inputs: auditId (required), format.

get_fix_promptAInspect

Get AI-ready fix prompts for an audit's findings, batched by severity.

Inputs: auditId (required).

get_job_statusAInspect

Check the status of a queued or in-progress audit job. Returns status (queued/processing/complete/failed), queue position, progress, and the audit result when complete.

Inputs: jobId (required).

get_reportAInspect

Get the status and results of a completed audit by its audit ID. Use get_job_status to check a job's progress instead.

Inputs: auditId (required).

get_telemetry_statsAInspect

Get aggregated telemetry statistics for a plugin — active installs, version distribution, WP/PHP version breakdown, locale spread, error rates, and daily trend. Requires that your API key is scoped to the plugin or you have a verified plugin claim.

Inputs: slug (required), period.

list_usageAInspect

Check your current usage — audits used this month, tier, and limits.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, such as starting audits versus retrieving results or fixes. A few pairs like get_fix_prompt/get_fix_plan and get_job_status/get_report overlap slightly, but their descriptions sufficiently clarify when to use each.

    Naming Consistency4/5

    The naming generally follows a verb_noun pattern (audit_plugin, get_findings, generate_sbom). Minor deviations like audit_plugins_bulk and audit_plugin_zip have modifiers at the end, and the mix of get/list/check verbs is consistent but not perfectly uniform.

    Tool Count5/5

    With 13 tools, the set is well-scoped for a security auditing service. Each tool serves a clear role in the audit lifecycle: initiation, status tracking, result retrieval, fix generation, and supplementary features like SBOM and telemetry.

    Completeness4/5

    The core audit workflow is well covered: start audits via slug, ZIP, or bulk; check status; retrieve reports and findings; generate fix prompts/plans; and flag false positives. Minor gaps like a missing list-all-audits or cancel-audit tool are workaroundable.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An AI-powered security audit tool that analyzes codebases for vulnerabilities using real-time data from MITRE CWE and npm audit. It enables deep analysis of authentication, API security, and dependencies to provide structured findings and remediation steps.
      2
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Deterministic supply-chain provenance, SBOM/AI-BOM generation, and dependency risk analysis for npm and PyPI packages, with 14 security rules and verifiable reports.
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Universal AI security layer for code scanning, PII detection, prompt injection defense, secret detection, dependency auditing, and audit logging.
      27
      27 PyPI
      3
      Apache 2.0
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to run deterministic, fully local static security and compliance audits of code, configurations, and dependencies through 32 MCP tools covering 24 vulnerability categories. It also detects the project stack, generates risk reports and checklists, suggests stack-aware remediations, and re-validates fixes to confirm vulnerabilities were eliminated.
      32
      1
      MIT