# SafePrompt

> SafePrompt is a freemium MCP server for ai models and llm tooling. Screen untrusted text for prompt injection and jailbreaks before it reaches your LLM. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $29 a month
- **Platforms:** API, CLI
- **Website:** https://safeprompt.dev
- **Repository:** https://github.com/ianreboot/safeprompt
- **MCP Registry name:** dev.safeprompt/mcp
- **Categories:** AI models and LLM tooling, security
- **Listing updated:** 2026-11-14

## About

Anything an AI reads can carry instructions: a support ticket, a pasted document, a web page or another agent's message. SafePrompt checks that text first. Pattern checks block known attack shapes, and everything they do not block goes to AI analysis that reads what the message is really asking for. The reply has four fields: safe, a confidence score, the threats that fired and plain-text reasoning.

The MCP package needs a SafePrompt API key and can run over stdio from npm or at a hosted endpoint. It wraps the same validation API that the vendor sells directly, so one call can screen a user message, a retrieved document or tool output. The site publishes benchmark figures, including 4 of 949 AgentDojo attacks getting through and 92 percent of 1,000 HackAPrompt jailbreaks caught, run by the vendor in October 2026, and a median latency of 798 ms.

The free tier allows 10,000 validations a month with no card. Starter is $29 for 500,000 and Business is $99 for 1,000,000, with no overage billing. The vendor notes that blocked attacks from free traffic join a shared defence network, which paid plans can turn off.

## Features

- **Two-stage detection:** Pattern checks first, then AI analysis of messages that pass.
- **Structured verdict:** Returns safe, a confidence score, the threats found and reasoning.
- **Agent input screening:** Covers user messages, retrieved documents and tool output.
- **Published benchmarks:** The vendor lists results against AgentDojo, HackAPrompt, TensorTrust and BIPIA.
- **Optional strict mode:** A dashboard setting makes screening stricter.
- **LangChain wrappers:** Drop-in wrappers exist for JavaScript and Python.

## Good for

- Screen user input before it reaches a chatbot
- Check retrieved documents before an agent acts on them
- Inspect tool output for injected instructions
- Block jailbreak attempts in support automations
- Add a safety gate to a LangChain app

## Install

### Claude Code (Terminal)

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

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp.safeprompt.dev/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.safeprompt.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.safeprompt.dev/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "serverUrl": "https://mcp.safeprompt.dev/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.safeprompt.dev/mcp"
    }
  }
}
```

## FAQ

### Is there a free tier?

Yes. 10,000 validations a month, no card and no time limit.

### What does it need to run?

A SafePrompt API key from the dashboard, passed as SAFEPROMPT_API_KEY.

### How fast is it?

The site reports a median of 798 ms across 528,248 production calls in 30 days.

### What happens past my monthly quota?

Requests return HTTP 429 with the reset date; there is no overage billing.

### Is SafePrompt free?

SafePrompt has a free plan, with paid plans for more usage or features. Paid plans start at $29 a month.

### How do I add SafePrompt to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcp https://mcp.safeprompt.dev/mcp

### What are the best alternatives to SafePrompt?

The closest alternatives to SafePrompt are REA, Claude Code Ultimate Guide, Agent Roast, Midplane and Leash.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/safeprompt
