Search rule34.xxx posts by tag through the site's own API. Needs a rule34.xxx API key.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
rule34.xxx is a large image board whose posts are indexed entirely by tags, and it publishes an API for reading them. A post carries its identifier, the address of its page and of its file, its dimensions, the score its viewers gave it, its rating, and the full list of tags it was filed under. The site holds tens of millions of posts and answers a tag search with the number it matched.
This server connects a chat client to that index. You can search the posts by tags, combining required tags, alternatives and exclusions, read one post's record by its identifier, and look up how the site spells a tag before searching on it. It needs an account and an API key, which the site issues per person.
Claude Code
Claude Desktop, Cursor, and any client using the standard config format
Node 24 or later is required. The two credentials are required; everything else under Configuration is optional.
-i keeps stdin open, which is where the protocol travels, and -t is left out
because a TTY rewrites the stream. The container needs outbound HTTPS to
api.rule34.xxx and rule34.xxx, and the two credentials from your environment:
no volume, no port.
Download mcp-rule34-2.0.2.mcpb from
the latest release and
open it. A client that supports MCP bundles installs it on its own, with no npm
to run. The credentials are still set in the client's configuration.
The ordinary path runs from a tag lookup to a search: find_tags gives the
spelling the site uses, and search_posts takes it.
| Tool | What it does |
|---|---|
find_tags | Finds how the site spells a tag, and how many posts carry it. |
search_posts | Searches the posts by tags, with alternatives and exclusions. |
get_post | Reads one post's record by its identifier or its address. |
Look a tag up before searching on it. The site indexes by tag alone, and a tag it does not hold matches nothing, which reads as an empty result rather than as a misspelling.
find_tagsFinds how the site spells a tag.
| Argument | Type | Required | What it does |
|---|---|---|---|
query | string, up to 60 characters | yes | The text to look up. |
In return: query as it was sent, and tags, each with the spelling the site
uses and the number of posts carrying it.
search_postsSearches the posts by tags.
| Argument | Type | Required | What it does |
|---|---|---|---|
tags | array of 1 to 10 tag names | yes | Tags a post must carry. |
any_of | array of 1 to 10 tag names | no | Tags a post must carry at least one of. |
exclude | array of 1 to 10 tag names | no | Tags a post must carry none of. |
media_type | image, animated, video or any, default any | no | Stills, GIFs or MP4. |
rating | questionable or explicit | no | Both are searched when this is left out. |
sort | score, id, updated or random, default score | no | The order the site sorts by. |
limit | integer, 1 to 100, default 20 | no | Posts to serve. |
page | integer, 1 to 200, default 1 | no | Which page of posts. |
media_type is read off the site's own tags, so the classification is as good as
the tagging. The two ratings above are the only ones the site holds: any other
value answers zero posts and no error, which would hand back an absence the site
never had.
In return: tags, any_of and exclude as the site spells them; query,
the search as it was sent in the site's own language; total, the posts the
whole search matches as counted by the site; and the posts themselves, each with
its id, post_url, file_url, preview_url, sample_url, width,
height, score, rating and tags. The score is the site's own and it is
updated once a day.
get_postReads one post's record.
| Argument | Type | Required | What it does |
|---|---|---|---|
id | integer, 1 or more | one of two | The post identifier. |
url | a rule34.xxx post URL | one of two | The address of the post's page. |
In return: the post a search row carries, with its full tag list.
The two credentials are required. Everything else is optional, and all of it goes
in the env block of your client config.
| Variable | Default | What it does |
|---|---|---|
RULE34_USER_ID | none, required | Your numeric account id. |
RULE34_API_KEY | none, required | Your API key, which is personal. |
RULE34_USER_AGENT | the project identity | Names your application to the site, with an address where a person can be reached. |
RULE34_MIN_INTERVAL_MS | 1000 | Gap between two requests, from 1000 to 60000. |
RULE34_TIMEOUT_MS | 20000 | Deadline for one request, from 1000 to 120000. |
RULE34_MAX_RETRIES | 3 | Attempts after a transient failure, from 0 to 10. |
RULE34_CACHE_TTL_MS | 300000 | How long an answer stays in memory, from 0 to 86400000. |
RULE34_CACHE_MAX_ENTRIES | 300 | Answers held in memory at once, from 0 to 10000. |
RULE34_LOG_LEVEL | error | silent, error, info or debug, written to stderr. |
Where the credentials come from. Sign in, open
Account options, and find
the row named API Access Credentials. It shows &api_key=…&user_id=…, and
those two values are what goes in the configuration above. If the key is empty,
tick Generate New Key? and save.
The site issues one key per person, and asks that applications serving its content display no advertising and put it behind no paywall. This server ships no key of its own, and each user brings their own. Started without credentials, it runs, publishes its tools, and answers every call by naming the two variables to set: it sends no request it knows the site will refuse.
A value outside its range falls back to the default, and the reason is written to stderr.
Every failure carries one of six codes, a message, and where it helps a hint naming the next move.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-rule34)<a href="https://allmcps.com/mcp/mcp-rule34"><img src="https://allmcps.com/api/badge/mcp-rule34?style=directory" alt="MCP Rule34 on AllMCPs" /></a>