# MCP Rule34

> MCP Rule34 is an open-source MCP server. Search rule34.xxx posts by tag through the site's own API. Needs a rule34.xxx API key. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/smeet666/mcp-rule34
- **MCP Registry name:** io.github.smeet666/mcp-rule34
- **Listing updated:** 2026-11-13

## About

Search rule34.xxx posts by tag through the site's own API. Needs a rule34.xxx API key.

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-rule34 --env RULE34_USER_ID='<RULE34_USER_ID>' --env RULE34_API_KEY='<RULE34_API_KEY>' -- npx -y mcp-rule34
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-rule34": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-rule34"
      ],
      "env": {
        "RULE34_USER_ID": "<RULE34_USER_ID>",
        "RULE34_API_KEY": "<RULE34_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-rule34": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-rule34"
      ],
      "env": {
        "RULE34_USER_ID": "<RULE34_USER_ID>",
        "RULE34_API_KEY": "<RULE34_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp-rule34": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-rule34"
      ],
      "env": {
        "RULE34_USER_ID": "<RULE34_USER_ID>",
        "RULE34_API_KEY": "<RULE34_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-rule34": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-rule34"
      ],
      "env": {
        "RULE34_USER_ID": "<RULE34_USER_ID>",
        "RULE34_API_KEY": "<RULE34_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-rule34": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-rule34"
      ],
      "env": {
        "RULE34_USER_ID": "<RULE34_USER_ID>",
        "RULE34_API_KEY": "<RULE34_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is MCP Rule34 free?

Yes. MCP Rule34 is open source, so you can use and self-host it for free.

### How do I add MCP Rule34 to Claude Code?

Run this command in your terminal: claude mcp add mcp-rule34 --env RULE34_USER_ID='<RULE34_USER_ID>' --env RULE34_API_KEY='<RULE34_API_KEY>' -- npx -y mcp-rule34

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