
Ao3 Mcp
io.github.ArturLys由 GitHub 账号 ArturLys 发布v0.1.2更新于 Oct 27, 2026
Search AO3 and have fics read by a secondary model before they're recommended
概览
搜索 AO3 同人小说,并由一个次级 Gemini 模型通读全文,向助手返回结构化报告与排名。
- 可以做什么
- 按同人圈、配对、角色、标签、分级、字数、完结状态和排序搜索 AO3 作品,支持 AO3 搜索运算符语法。
- 通过实时自动补全把模糊说法解析为规范的 AO3 标签、同人圈、配对和角色名。
- 获取单篇作品的元数据卡片,包括标签、统计、摘要和系列信息。
- 用次级 Gemini 模型通读 1 至 20 篇全文,返回每篇的情节、角色、文风、原文片段和内容提示报告,并给出对比排名。
- 适用场景
- 适合希望推荐基于正文而非作者简介的场景,也适合用 AI 写小说或角色扮演时,从真实同人作品中获取某一题材的节奏与文风参考。
- 运行要求
- 以 Python 3.10 以上版本通过 pip 安装的本地包运行。需要 Gemini API 密钥,可通过 --api-key 参数或 GEMINI_API_KEY 环境变量提供,说明称免费额度已足够。可选设置用于选择阅读模型、备用模型和 AO3 请求间隔。需要访问 AO3 和 Google Gemini API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Ao3 Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ao3-mcp
[PyPI] [CI] [Python 3.10+] [License: MIT]
An MCP (Model Context Protocol) server that connects AI agents — Claude, Cursor, or any MCP client — to the Archive of Our Own. Search AO3 fanfiction with full filters, resolve fuzzy wording to canonical tags, and get fics actually read before they're recommended.
The trick: your agent never reads fic text. It delegates reading to a cheap secondary model (Gemini), which digests whole fics — even 150k-word novels — and returns structured reports. Your agent's context stays clean; the recommendations are based on the real text, not the blurb.
Why this beats blurb-based recommendations
An AO3 blurb is an ad written by the author. This server's workflow is: search wide (40–60 results), have the reader model read the shortlist — up to 20 full fics in one call — and recommend only what was actually read, with verbatim prose samples so quality is judged from the text itself.
Not just for finding your next read
If you write with an AI — fanfic, original fiction, roleplay — this doubles as an inspiration engine. Mid-scene, your agent can pull up how real fic authors handle the exact beat you're on:
The reader reports back with structure, style notes, and verbatim prose samples, so the model gets grounded in how the trope is actually written — not what it imagines fanfic sounds like. Works the same for roleplay: pull reports on fics that nail a character's voice and feed them in as style reference.
Install
Requires Python 3.10+ and a free Gemini API key:
Go to aistudio.google.com/api-keys, sign in with any Google account, and click "Create API key". The free tier is enough — no billing setup needed.
Add to your agent
Point command at ao3-mcp and pass your key with --api-key:
Prefer to keep the key out of the args list? Drop --api-key and pass it in an env
block instead — the server reads GEMINI_API_KEY from the environment as a fallback:
Claude Code
Cursor
Cursor Settings → MCP → New MCP Server, paste the JSON config above.
Google Antigravity
Add the JSON config above to .gemini/antigravity/mcp_config.json.
VS Code / Copilot
Then just ask:
Launch params
Tools
Fic downloads are cached locally for 24h, so re-reading a fic with a new question costs no AO3 requests.
Good to know
- AO3 has no API — this scrapes its (clean) HTML, one request at a time, throttled to one every 0.6s by default (tune with
--min-interval) and honoringRetry-After. AO3 is volunteer-run; the politeness is deliberate. - Cloudflare: AO3 blocks plain HTTP clients. This uses
curl_cffiwith a mobile-Safari TLS fingerprint, which passes as of writing. If requests start failing with 403 +cf-mitigated: challenge, changeIMPERSONATEinao3.py. - Privacy: fic text goes to Google's Gemini API for reading; nothing else leaves your machine, no telemetry.
- Adult content: AO3 hosts works across all ratings. The server passes through whatever your search scopes — use the
ratingfilter and AO3's warning tags to control what gets fetched.
Make it yours
It's a small, single-purpose server — a few hundred readable lines with no framework magic. Fork it and edit anything: rewrite the reader's prompt, swap in a different model, change the throttle, add a tool. That's the intended way to use it.
Run it from source:
Credits
- AO3 access approach builds on ao3_api by wendytg.
- All fanworks belong to their authors on the Archive of Our Own, a project of the Organization for Transformative Works.
License
MIT
来源:README.md,提交 3e596e5
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分