Skip to content
For developers

Kashef inside the AI tool in your editor

With the MCP server, tools such as Claude Code and Cursor scan your site through Kashef, read the results and suggest fixes, with the same API key and nothing to install on your machine.

Before you start: an API key

  1. Create a free Kashef account.
  2. On the Developers page of the dashboard, create an API key (owners and admins). The full key is shown only once.
  3. Put it in an environment variable named KASHEF_API_KEY, and never in a file that goes into Git.
Create a free account

Server URL

https://kashef.scouthub.dev/mcp

Put the key in an environment variable named KASHEF_API_KEY and never write it into a file that goes into Git. The examples below read it from there.

Setup for each tool

Claude Code

One command adds the server to your account. Or put the config in a .mcp.json file in the project so your team shares it without the key.

terminal
claude mcp add --transport http kashef https://kashef.scouthub.dev/mcp \
  --header "Authorization: Bearer $KASHEF_API_KEY"
.mcp.json
{
  "mcpServers": {
    "kashef": {
      "type": "http",
      "url": "https://kashef.scouthub.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${KASHEF_API_KEY}"
      }
    }
  }
}

Cursor

Add the config to .cursor/mcp.json in the project, or to the global config file in your home folder.

.cursor/mcp.json
{
  "mcpServers": {
    "kashef": {
      "url": "https://kashef.scouthub.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:KASHEF_API_KEY}"
      }
    }
  }
}

VS Code

Add the config to .vscode/mcp.json. VS Code asks for the key once and stores it securely.

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "kashef-key",
      "description": "Kashef API key",
      "password": true
    }
  ],
  "servers": {
    "kashef": {
      "type": "http",
      "url": "https://kashef.scouthub.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${input:kashef-key}"
      }
    }
  }
}

Claude Desktop

Claude Desktop reaches remote servers through a small local bridge called mcp-remote. Add the config to claude_desktop_config.json and restart the app.

claude_desktop_config.json
{
  "mcpServers": {
    "kashef": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://kashef.scouthub.dev/mcp",
        "--header",
        "Authorization:${KASHEF_AUTH_HEADER}"
      ],
      "env": {
        "KASHEF_AUTH_HEADER": "Bearer kshf_org_your_key_here"
      }
    }
  }
}

Test with curl

To check that the key and the URL work before connecting any tool: the command returns the list of tools Kashef offers.

terminal
curl -s https://kashef.scouthub.dev/mcp \
  -H "Authorization: Bearer $KASHEF_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

What the tool can do

  • Start a scan of a public site (the tool asks for your declaration first; active checks only on your verified domains)
  • Wait for the scan to finish, then read the score and the most important findings with their impact and how to fix them
  • Compare two scans of the same site: what was fixed, what is new, and what changed because of Kashef itself
  • List the available checks, earlier scans, domains, open alerts and your usage
  • Export the report as Markdown, JSON or SARIF

Results reach the tool as Kashef's own catalog text with shortened values, never as raw site data. The score comes from fixed rules, not from an AI model.