{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "dev.safeprompt/mcp",
  "slug": "dev.safeprompt.mcp",
  "title": "SafePrompt",
  "summary": "Detect prompt injection, jailbreaks, and code injection in untrusted text before it reaches an LLM.",
  "version": "0.1.1",
  "serverKey": "mcp",
  "pageUrl": "https://mcpkglabs.com/tool/dev.safeprompt.mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/dev.safeprompt.mcp/install.md",
  "trust": {
    "score": 92,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T17:55:06.996273726Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "--package=@safeprompt.dev/mcp@0.1.1",
        "safeprompt-mcp"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add mcp -e 'SAFEPROMPT_API_KEY=<SAFEPROMPT_API_KEY>' -- npx -y --package=@safeprompt.dev/mcp@0.1.1 safeprompt-mcp"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@safeprompt.dev/mcp@0.1.1\",\n        \"safeprompt-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"SAFEPROMPT_API_KEY\": \"<SAFEPROMPT_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@safeprompt.dev/mcp@0.1.1\",\n        \"safeprompt-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"SAFEPROMPT_API_KEY\": \"<SAFEPROMPT_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"SAFEPROMPT_API_KEY\",\n      \"id\": \"safeprompt-api-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"mcp\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@safeprompt.dev/mcp@0.1.1\",\n        \"safeprompt-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"SAFEPROMPT_API_KEY\": \"${input:safeprompt-api-key}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"--package=@safeprompt.dev/mcp@0.1.1\", \"safeprompt-mcp\"]\nenv = { \"SAFEPROMPT_API_KEY\" = \"<SAFEPROMPT_API_KEY>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    },
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://mcp.safeprompt.dev/mcp",
      "headers": [
        {
          "name": "X-SafePrompt-Api-Key",
          "description": "SafePrompt API key from https://dashboard.safeprompt.dev",
          "isRequired": true,
          "isSecret": true
        }
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http mcp https://mcp.safeprompt.dev/mcp --header 'X-SafePrompt-Api-Key: <X-SafePrompt-Api-Key>'"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)",
          "content": "{\n  \"mcpServers\": {\n    \"mcp\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://mcp.safeprompt.dev/mcp\",\n        \"--header\",\n        \"X-SafePrompt-Api-Key: <X-SafePrompt-Api-Key>\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp\": {\n      \"headers\": {\n        \"X-SafePrompt-Api-Key\": \"<X-SafePrompt-Api-Key>\"\n      },\n      \"url\": \"https://mcp.safeprompt.dev/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"mcp\": {\n      \"headers\": {\n        \"X-SafePrompt-Api-Key\": \"<X-SafePrompt-Api-Key>\"\n      },\n      \"type\": \"http\",\n      \"url\": \"https://mcp.safeprompt.dev/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://mcp.safeprompt.dev/mcp\", \"--header\", \"X-SafePrompt-Api-Key: <X-SafePrompt-Api-Key>\"]"
        }
      ]
    }
  ],
  "env": [
    {
      "name": "SAFEPROMPT_API_KEY",
      "required": true,
      "secret": true,
      "description": "SafePrompt API key from https://dashboard.safeprompt.dev",
      "help": "SafePrompt API key from https://dashboard.safeprompt.dev",
      "placeholder": "<SAFEPROMPT_API_KEY>"
    },
    {
      "name": "SAFEPROMPT_PROVIDER",
      "required": false,
      "secret": false,
      "description": "API base URL (default https://api.safeprompt.dev)",
      "help": "API base URL (default https://api.safeprompt.dev)",
      "placeholder": "<SAFEPROMPT_PROVIDER>"
    },
    {
      "name": "SAFEPROMPT_USER_IP",
      "required": false,
      "secret": false,
      "description": "Value sent as X-User-IP for threat-intel tracking (default 203.0.113.1)",
      "help": "Value sent as X-User-IP for threat-intel tracking (default 203.0.113.1)",
      "placeholder": "<SAFEPROMPT_USER_IP>"
    }
  ],
  "expectedTools": [
    "validate_prompt",
    "validate_prompts"
  ],
  "agentSteps": [
    "Ask the user for: SAFEPROMPT_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: validate_prompt, validate_prompts.",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T17:55:06.996273726Z"
}
