Developers

Scan Ninja API and MCP server documentation

Everything on scanninja.ai is available to code and to AI agents: a read-only REST API, a Model Context Protocol (MCP) server, an OpenAPI spec and a markdown version of every page. It is public content, so there is no API key and nothing to sign up for.

Quickstart

SurfaceURL
REST API basehttps://scanninja.ai/api/v1
OpenAPI 3.1 spechttps://scanninja.ai/openapi.json
MCP server (Streamable HTTP)https://scanninja.ai/mcp
MCP server cardhttps://scanninja.ai/.well-known/mcp/server-card.json
Site index for LLMshttps://scanninja.ai/llms.txt
Authentication noteshttps://scanninja.ai/auth.md

All of these describe Scan Ninja's public site: services, frameworks, blog posts and how pricing works. None of them reaches customer data. Your scan findings, evidence and compliance records stay in the Scan Ninja platform behind your account.

REST API

The Scan Ninja API is read-only JSON over HTTPS under https://scanninja.ai/api/v1. Every endpoint is a GET. The services and posts lists are cursor paginated with limit and cursor; search returns one ranked page. Errors use the application/problem+json format (RFC 9457).

MethodPathReturns
GET/api/v1/search?q=Keyword search across pages, services and blog posts, best matches first. Optional kind and limit (up to 25).
GET/api/v1/servicesThe service catalog. Optional category, limit and cursor.
GET/api/v1/services/{id}One service: what it covers, who it is for and its page.
GET/api/v1/postsBlog posts, newest first. Optional category, limit and cursor.
GET/api/v1/pricingHow pricing works. Every program is quoted per engagement, so no amounts are returned.
GET/api/v1/pages?path=Any public page as markdown, by site path.

Example

curl -s "https://scanninja.ai/api/v1/search?q=sprs+score&limit=3"

curl -s "https://scanninja.ai/api/v1/pages?path=/cmmc"

Rate limits

60 requests per minute per client. Successful responses carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset; over the limit you get a 429 with the same headers and Retry-After.

MCP server

The Scan Ninja MCP server lets an AI assistant search the site, read pages and look up services without scraping HTML. It speaks the Model Context Protocol over Streamable HTTP at https://scanninja.ai/mcp, is stateless, and is registered under the name ai.scanninja/site.

Add it to an MCP client

{
  "mcpServers": {
    "scan-ninja": {
      "type": "http",
      "url": "https://scanninja.ai/mcp"
    }
  }
}

In Claude Code: claude mcp add --transport http scan-ninja https://scanninja.ai/mcp

Tools

ToolWhat it does
search_siteSearch Scan Ninja's public pages, service catalog and blog posts by keyword and return ranked matches with titles, URLs and summaries. Use this first when you do not know which page answers a question; then call get_page with a result's path for the full text.
get_pageReturn the full text of one public scanninja.ai page as markdown, given its site path (for example "/cmmc" or "/blog/how-sprs-scores-are-calculated"). Only pages in the sitemap can be read. Use search_site to find a path.
get_site_infoReturn structured facts about Scan Ninja for one topic. "services": the service catalog (optional category). "service": one service's overview, features and use cases (requires id). "blog_posts": published guides, newest first (optional category and limit). "pricing": the pricing model and programs; Scan Ninja does not publish dollar amounts, so every price is "custom_quote". "contact": how a person books a demo, signs up or reaches the team. Read-only; it submits nothing.

Every tool is read-only. None of them takes a credential or changes anything.

Call it directly

curl -s https://scanninja.ai/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Markdown for every page

Any public page is available as clean markdown, which is far cheaper for a model to read than HTML. Add .md to the path, or send Accept: text/markdown to the page URL.

curl -s https://scanninja.ai/cmmc.md

curl -s -H "Accept: text/markdown" https://scanninja.ai/cmmc

Start from llms.txt for a linked index of the site, or llms-full.txt for the long form. Pricing is summarized at pricing.md.

Authentication and security

  • No API key. These endpoints serve public content, so there is nothing to authenticate. Do not send credentials to them. Details are in auth.md.
  • Read-only. There are no write operations and no access to customer or tenant data.
  • Server-to-server. No cross-origin (CORS) headers are sent, and the MCP endpoint refuses requests that carry another site's Origin. Call it from a server, a CLI or an MCP client, not from another website's browser code.
  • HTTPS only, with request bodies capped in size and requests rate limited.
  • Found a vulnerability? See security.txt and our Trust Center.

Frequently asked questions

Does Scan Ninja have a public API?

Yes. Scan Ninja publishes a read-only REST API at https://scanninja.ai/api/v1 covering site search, the service catalog, blog posts, pricing structure and every public page as markdown. It is described by an OpenAPI 3.1 spec at https://scanninja.ai/openapi.json.

Does Scan Ninja have an MCP server?

Yes. The Scan Ninja MCP server is at https://scanninja.ai/mcp and uses the Streamable HTTP transport. It exposes 3 read-only tools and is identified as ai.scanninja/site.

Do I need an API key?

No. The public API and MCP server serve public content only, so they take no API key, token or sign-in. Requests are rate limited to 60 per minute per client.

Can the API or MCP server read my scan results or compliance data?

No. Customer scan findings, evidence and compliance records live in the Scan Ninja platform behind your account and are not reachable from these endpoints. Nothing here reads or writes tenant data.

Looking for the product?

The public API describes Scan Ninja. To see the platform itself, with CMMC and SOC 2 control tracking, AI-driven vulnerability scanning and audit evidence, book a demo. Product guides are at docs.scanninja.ai, and integration questions go to hello@scanninja.ai.