Offense — Claude Code MCP server: features and setup
The Offense MCP server for Claude Code gives an agent tools to audit dependencies, inspect source code and review workflows. It returns evidence for security findings and proposed fixes.
Apache-2.0 ★ 71 updated 2026-11-04
claude mcp add --transport http offense https://offense.sh/mcpWhat Offense does
Offense gives a coding agent tools to audit dependencies, inspect source code and workflows, and test a proposed fix. Results arrive as structured security evidence through MCP. The agent investigates the project and runs tests using its existing access and permissions.
The server connects over HTTP to Offense’s hosted service. An assessment does not grant permission to edit application code or make paid calls; those actions need authorization. Offense also offers CLI and HTTP access, while this entry covers its MCP connection.
What it helps with
- audit dependencies for security advisories
- inspect source code and project workflows
- gather evidence about a proposed fix
Example prompts for the agent
- Audit this project’s dependencies and explain any security findings.
- Inspect the code and workflows related to this vulnerability.
- Assess this proposed fix and run relevant tests.
How to install Offense
Platform CLI: remote server
claude mcp add --transport http offense https://offense.sh/mcpPlatform CLI: remote server
codex mcp add offense --url https://offense.sh/mcpConfig file
{
"mcpServers": {
"offense": {
"url": "https://offense.sh/mcp"
}
}
}Config file
{
"servers": {
"offense": {
"type": "http",
"url": "https://offense.sh/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http offense https://offense.sh/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Offense
How do I install Offense in Claude Code?
Add the MCP server with claude mcp add --transport http offense https://offense.sh/mcp.
What does Offense do?
It gives an agent tools to audit dependencies, inspect code and workflows, and test proposed fixes. The results include structured security evidence.
What does Offense need to work?
The MCP connection uses the hosted service at https://offense.sh/mcp. Paid calls require separate authorization.