> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raxe.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Integration

> Secure Model Context Protocol servers with real-time threat detection

## Overview

RAXE provides comprehensive **Model Context Protocol (MCP)** security for AI assistants like Claude Desktop and Cursor. Protect MCP servers from prompt injection, command injection, and data exfiltration attacks.

## Installation

```bash theme={null}
pip install raxe[mcp]
```

## Quick Start

### MCP Security Gateway (Recommended)

Protect any MCP server by routing traffic through RAXE:

```bash theme={null}
# Protect a filesystem server
raxe mcp gateway -u "npx @modelcontextprotocol/server-filesystem /tmp"

# With blocking enabled
raxe mcp gateway -u "npx @modelcontextprotocol/server-filesystem /tmp" --on-threat block
```

### MCP Server (RAXE as Tool Provider)

Add RAXE's threat detection tools directly to your AI assistant:

```bash theme={null}
raxe mcp serve
```

***

## Claude Desktop Setup

Add to `~/.config/claude/claude_desktop_config.json`:

```json theme={null}
{
  "mcpServers": {
    "protected-filesystem": {
      "command": "raxe",
      "args": [
        "mcp", "gateway",
        "-u", "npx @modelcontextprotocol/server-filesystem /home/user/projects"
      ]
    }
  }
}
```

***

## What's Next

<CardGroup cols={2}>
  <Card title="SIEM Integration" icon="chart-mixed" href="/integrations/siem">
    Send MCP threat events to your SIEM
  </Card>

  <Card title="Full Documentation" icon="book" href="/sdk/overview">
    Explore the complete SDK documentation
  </Card>
</CardGroup>
