# Offense

> Offense is a freemium MCP server for security. Security checks for coding agents: dependency audits and evidence for fixes. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, Web, API, self-hosted
- **Website:** https://offense.sh
- **Repository:** https://github.com/offense-research/offense
- **MCP Registry name:** io.github.offense-research/offense
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-14

## About

Offense's README frames it as security tools an agent can discover, call and verify. The agent keeps its own model, repository access and permissions, reads the structured evidence Offense returns over CLI, MCP or HTTP, investigates the code, makes authorised changes and runs your tests.

The free starter is a pull request that adds pinned, read-only GitHub Actions running npm and pnpm dependency audits. It never installs or runs your app, edits code or calls paid tools. Dependency metadata goes to OSV and npm, reports are kept as GitHub artifacts for seven days, and advisories are report-only while coverage warnings and scan errors fail the check.

The hosted side runs security agents in disposable sandboxes. You give a task, such as testing with separate accounts for cross-customer data access, and get a report of findings, evidence and untested areas, then retest a fix in a fresh sandbox. The site cautions that a clean report does not prove an app is secure. The code is open source with optional paid hosting and self-hosting docs.

## Features

- **Dependency advisory audits:** Checks npm and pnpm dependencies and returns advisory evidence for remediation.
- **Pull request starter:** An installer prepares a GitHub workflow you review and merge yourself.
- **Disposable sandboxes:** Hosted tests run in an isolated computer that is destroyed after the report is saved.
- **Cross-tenant testing:** Uses separate accounts to look for one customer reaching another's data.
- **Retests in fresh sandboxes:** After a fix, the same task is run again from a clean environment.
- **CLI, MCP and HTTP:** Evidence is returned through the interface your agent already uses.

## Good for

- Add free dependency audits to pull requests
- Give a coding agent evidence to fix vulnerable packages
- Test a web app for cross-customer data access
- Retest a fix in a clean sandbox
- Self-host the platform for internal use

## Install

### Claude Code (Terminal)

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

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

```sh
https://offense.sh/mcp
```

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

```json
{
  "mcpServers": {
    "offense": {
      "url": "https://offense.sh/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "offense": {
      "type": "http",
      "url": "https://offense.sh/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "offense": {
      "serverUrl": "https://offense.sh/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "offense": {
      "type": "http",
      "url": "https://offense.sh/mcp"
    }
  }
}
```

## FAQ

### Is Offense open source?

The README describes it as open-source software with optional paid hosting, and links self-hosting docs.

### Do I need an account for the PR starter?

No. The installer prepares a link and you create and approve the pull request on GitHub.

### Does a clean report mean my app is secure?

No. Results depend on the task, access and budget, and the site asks you to review what was untested.

### What does hosted use cost?

The site lists $20 of monthly sandbox credits with AI tokens billed at OpenRouter plus 20 percent, and the first sandbox is free.

### Is Offense free?

Offense has a free plan, with paid plans for more usage or features.

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

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

### What are the best alternatives to Offense?

The closest alternatives to Offense are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros 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.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

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