Skip to content
AdminKit

Scan an MCP endpoint in CI with the AdminKit GitHub Action

AdminKit has built a composite GitHub Action that scans an MCP endpoint for anonymous-access exposure on every push or a schedule, using the same read-only probe as the public MCP server's check_mcp_endpoint tool — no AdminKit account needed to run it. The public repository it ships from isn't published yet; ask us for early access.

By AdminKit team, Netbase JSC · Updated

What this action checks

The action installs adminkit-mcp (the same package behind AdminKit’s public MCP server) at the exact commit your workflow pins, then runs its endpoint probe against one URL you give it. The probe only ever sends two JSON-RPC calls — initialize and tools/list — and never tools/call, so it is safe to point at a server that real clients are actively using. It checks for:

  • the server accepting initialize with no credentials at all (“no auth required”)
  • the tool list being readable anonymously once initialize succeeds
  • tool names that look like they grant shell, file or network access (“dangerous tool exposed”)
  • the endpoint not being served over TLS

and produces a 0-100 exposure score (lower is worse), a GitHub Actions job summary, and score / findings-json step outputs. Where a server declares tool annotations like destructiveHint, these findings can reference them too, though the action still treats a declared hint as a signal rather than a verified fact, since the specification doesn’t make annotations trustworthy by default.

Add it to a workflow

Not published yet. This action isn’t publicly available today, so a uses: reference to it will not resolve in your workflow yet. Ask us for early access and we will share what you need; the example below is the complete workflow shipped with the action itself once you have it.

Available at release.

name: Scan MCP endpoint

on:
  push:
    branches: [main]
  schedule:
    - cron: "0 6 * * 1" # weekly, Monday 06:00 UTC

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - name: Scan our public MCP endpoint
        id: scan
        uses: NetbaseJSC/adminkit/integrations/github-action@main
        with:
          url: https://mcp.example.com/mcp
          fail-on: critical

      - name: Show the score
        run: echo "AdminKit MCP exposure score: ${{ steps.scan.outputs.score }}"

Replace url with your own MCP endpoint and uses: with a pinned tag or commit SHA rather than @main once you’ve picked a version to rely on — the action is not published to the GitHub Marketplace either, so a pinned ref is the only way to version it.

Inputs

InputRequiredDefaultWhat it does
urlyes—MCP endpoint URL to scan.
fail-onnocriticalnone never fails the step on findings; warning fails on any finding; critical fails on a high/critical-severity finding.
api-keyno""Reserved for future submission of results to the AdminKit dashboard. The probe is anonymous-only and never sends it to the scanned target.
allow-privatenofalseAllow scanning a private/loopback target — only for CI jobs scanning a fixture server they started themselves.

A scan that cannot reach url at all always fails the step, regardless of fail-on. A target refused for being private/loopback (allow-private: false) is reported as skipped and does not fail the step.

Outputs

OutputDescription
score0-100 exposure score (lower is worse); empty if the target could not be reached.
findings-jsonJSON array: [{"id", "severity", "title", "detail", "fix_hint"}, ...].

Available at release.

- name: Scan
  id: scan
  uses: NetbaseJSC/adminkit/integrations/github-action@main
  with:
    url: https://mcp.example.com/mcp
    fail-on: none
- run: echo "score was ${{ steps.scan.outputs.score }}"

Why run this instead of a one-off manual check

AdminKit’s MCP endpoint check tool page now runs this same check live from a browser — see how to read an MCP endpoint check result for what its findings mean, and AdminKit’s MCP endpoint check vs mcpscan.ai for how the two compare if you’re choosing between them. The GitHub Action and the public MCP server’s check_mcp_endpoint tool both run the identical probe directly against the target, with no dependency on the website — which is exactly why running it in CI on every push, plus a weekly schedule, catches the case our guide to securing an MCP server calls out explicitly: exposure can change without anyone touching the server’s code, so a one-time check, from a browser or otherwise, only tells you about right now. If you’d rather run this same probe on demand from a chat prompt instead of CI, see check if your MCP server is exposed with an AI agent.

Where AdminKit fits

The action’s own scanning logic is intentionally minimal and permanent: two anonymous JSON-RPC calls, nothing more. For enforcement rather than detection — blocking an unauthenticated call before it reaches your server, not just reporting that one got through — AdminKit’s planned MCP & Agent Gateway sits in front of the server itself; it is in early access and not live yet either. Once you have early access to this action’s repository, running it in CI is the practical way to catch exposure regressions. See our AI agent builders page for the fuller picture of what’s free versus planned. This action is part of AdminKit’s AI agents & MCP cluster of guides and tools for securing MCP servers.

This guide is general information, not a security audit of your specific network — see our disclaimer for what AdminKit's guidance does and does not commit to.

Frequently asked questions

Do I need an AdminKit account to use this action?

No. The scan itself is anonymous and needs no API key. The action does accept an optional api-key input, but it is reserved for a future dashboard-submission feature and is never sent to the scanned target today.

Can I add this to my workflow today?

Not yet. The action's repository is not published on GitHub yet, so a uses: reference to it will not resolve. Ask us for early access at /contact/ and we will share a checkout; once the repository is public, pin your workflow to a tag or commit SHA rather than @main.

Can this action call tools on my MCP server, not just check it?

No. It only ever sends initialize and tools/list — the same two calls the public MCP server's own probe sends. It never sends tools/call, so it is safe to run against a server that is actually in use.

What does fail-on actually control?

none never fails the step on findings; warning fails on any finding; critical (the default) fails only on a high or critical severity finding. A target that cannot be reached at all (DNS failure, connection refused, timeout) always fails the step, independent of fail-on, because that is a different signal than 'findings below threshold'.

Will this action check more than MCP exposure in the future?

Scope today is MCP endpoint exposure only. API-backed checks (DNS, mail auth, TLS, port exposure) are planned once the Check API is live — see the OpenAPI reference for what is contracted but not yet deployed.

Want AdminKit to watch this for you?

Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.

Huy Nguyen (David), Founder and CEO of Netbase JSC

Talk to an expert

Huy Nguyen (David), Founder & CEO, Netbase JSC

Ask whether this fix applies to your setup, or get a second pair of eyes on your DNS and mail records.