Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Search rule34.xxx posts by tag through the site's own API. Needs a rule34.xxx API key.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
RULE34_USER_ID, RULE34_API_KEY, RULE34_MIN_INTERVAL_MS, RULE34_LOG_LEVEL标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。
在终端中运行这条命令
claude mcp add rule34 --env RULE34_USER_ID=your-value --env RULE34_API_KEY=your-value --env RULE34_MIN_INTERVAL_MS=your-value --env RULE34_LOG_LEVEL=your-value -- npx -y mcp-rule34运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"rule34": {
"command": "npx",
"args": [
"-y",
"mcp-rule34"
],
"env": {
"RULE34_USER_ID": "your-value",
"RULE34_API_KEY": "your-value",
"RULE34_MIN_INTERVAL_MS": "your-value",
"RULE34_LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"rule34": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-rule34"
],
"env": {
"RULE34_USER_ID": "your-value",
"RULE34_API_KEY": "your-value",
"RULE34_MIN_INTERVAL_MS": "your-value",
"RULE34_LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
RULE34_MIN_INTERVAL_MS envRULE34_LOG_LEVEL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 smeet666 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:RULE34_USER_ID, RULE34_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(2.1.0)于9天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js, MCPB。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
_Version française_
Claude Code
claude mcp add rule34 --env RULE34_USER_ID=your-id --env RULE34_API_KEY=your-key -- npx -y mcp-rule34
Claude Desktop, Cursor, and any client using the standard config format
{
"mcpServers": { "rule34": { "command": "npx", "args": ["-y", "mcp-rule34"], "env": { "RULE34_USER_ID": "your-id", "RULE34_API_KEY": "your-key" } } } }
Node 24 or later is required. The two credentials are required; everything else under Configuration is optional.
{
"mcpServers": { "rule34": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "RULE34_USER_ID", "-e", "RULE34_API_KEY", "ghcr.io/smeet666/mcp-rule34:2.1.0" ] } } }
-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.1.0.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.
| Code | What happened | What to do |
|---|---|---|
not_found | The site answered, and holds nothing at that address. | Check the identifier with search_posts. |
invalid_input | The arguments were refused before any request went out. | Read the message, which names the argument. A missing credential is reported here. |
rate_limited | The site asked this client to slow down. | Wait the number of seconds the hint names and call again with the same arguments. The post is still there. |
parse_failure | The answer arrived in a shape this client cannot read. | Report it at the issue tracker. |
network_error | The request did not complete. | Try again shortly. |
timeout | The request passed its deadline. | Raise RULE34_TIMEOUT_MS, or ask for fewer posts. |
The layer reading the site is published on its own, with its pacing, its cache and its errors, and with no protocol attached.
import { Rule34Client } from "mcp-rule34/client";
const client = new Rule34Client({ credentials: { userId: "…", apiKey: "…" } }); const { data, cached } = await client.searchPosts({ tags: ["example"], limit: 5 }); console.log(data.total, cached);
Each read answers { data, cached }, and throws an error carrying one of the six codes. The one-second floor between two requests holds here as well.
Requests go out one at a time with at least a second between them, and that floor holds however the server is configured. The User-Agent always ends with the project identity and an address where a person can be reached.
Reads go to the API the site documents, and the credentials it issues are what its terms ask automated reading to use. Every result carries the address of the post's page. Nothing is downloaded: a file address travels through an answer as a string.
This MCP server is an unofficial project, with no affiliation to rule34.xxx.
This server collects nothing about you and sends nothing to its author. It runs on your machine, contacts api.rule34.xxx and rule34.xxx and nothing else, holds its answers in memory while it runs, and writes nothing to disk. Your credentials are read from the environment and sent to that site alone. PRIVACY.md
只显示了开头部分;其余内容请在仓库中阅读