Local + RemoteFree server, account needed

SafePrompt MCP server

ianreboot/safeprompt

Detect prompt injection, jailbreaks, and code injection in untrusted text before it reaches an LLM.

2 GitHub stars

Install SafePrompt in Claude Code

Remote URL

Claude Code
claude mcp add --transport http safeprompt https://mcp.safeprompt.dev/mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "safeprompt": {
      "url": "https://mcp.safeprompt.dev/mcp"
    }
  }
}

npm

Claude Code
claude mcp add safeprompt -e SAFEPROMPT_API_KEY=... -- npx -y @safeprompt.dev/mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "safeprompt": {
      "command": "npx",
      "args": [
        "-y",
        "@safeprompt.dev/mcp"
      ],
      "env": {
        "SAFEPROMPT_API_KEY": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the SafePrompt MCP server do?

Detect prompt injection, jailbreaks, and code injection in untrusted text before it reaches an LLM.

Is the SafePrompt MCP server free?

The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.

Does SafePrompt run locally or remotely?

Local + Remote. Can run locally or be used as a hosted remote server.

How do I add SafePrompt to Claude Code?

Run: claude mcp add --transport http safeprompt https://mcp.safeprompt.dev/mcp

More ai agents & coding agents MCP servers

View all