# floodgate MCP server

> Provides rate limiting for Next.js applications using sliding window and token bucket algorithms.

- Repository: https://github.com/sathergate/sathergate-toolkit
- Page: https://hostedmcp.org/servers/sathergate/floodgate
- Transport: stdio
- Stars: 106
- Latest version: 0.1.1

## Install

### Claude Code

```sh
claude mcp add floodgate -- npx -y ratelimit-next
```

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

```json
{
  "mcpServers": {
    "floodgate": {
      "command": "npx",
      "args": [
        "-y",
        "ratelimit-next"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "floodgate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ratelimit-next"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"floodgate","type":"stdio","command":"npx","args":["-y","ratelimit-next"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "floodgate": {
      "command": "npx",
      "args": [
        "-y",
        "ratelimit-next"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add floodgate -- npx -y ratelimit-next
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.floodgate]
command = "npx"
args = ["-y", "ratelimit-next"]
```

### Gemini CLI

```sh
gemini mcp add -s user floodgate npx -- -y ratelimit-next
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "floodgate": {
      "command": "npx",
      "args": [
        "-y",
        "ratelimit-next"
      ]
    }
  }
}
```

## FAQ

### Does this require external services to run?

No, it is pure TypeScript with zero npm dependencies.

### Is it compatible with AI agents?

Yes, every package is agent-native and includes MCP tools for discovery by AI coding agents.
