Skip to content
MCP server

MCP Rule34

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
2.1.0
Listing updated
4 days ago

About MCP Rule34

MCP Rule34 is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

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

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.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>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Configuration

  • RULE34_USER_IDNumeric rule34.xxx account id, shown under API Access Credentials.Required
  • RULE34_API_KEYrule34.xxx API key, shown under API Access Credentials. One per person.Required
  • RULE34_MIN_INTERVAL_MSMinimum milliseconds between requests. Default 1000, and never lower.
  • RULE34_LOG_LEVELsilent, error, info or debug. Default error.

Pricing

Open source

MCP Rule34 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