Ao3 Mcp logoHealth: ActiveRecent health check succeeded.Last checked 8/7/2026, 3:36:14 PM

Ao3 McpArt & Culture

ArturLys
View Repository1

MCP server to search AO3 fanfiction and get detailed AI-generated reports from full fic text via a secondary reader model.

Overview

This MCP server enables AI agents to search Archive of Our Own (AO3) fanfiction with full filtering and tag resolution, then delegates reading of selected fics to a secondary model (Gemini) that digests entire works and returns structured reports. It avoids relying on author blurbs by providing recommendations based on actual text analysis. Use it when you want AI agents to recommend or analyze fanfiction grounded in full-text content rather than metadata or summaries.

Use cases

โ€ขSearch AO3 fanfiction with complex filters and canonical tag matching
โ€ขObtain detailed AI-generated reports on plot, style, and prose from full fics
โ€ขCompare and rank fanfiction based on content read by a secondary model
โ€ขIncorporate real fanfic writing examples as style or trope references in AI-assisted writing or roleplay
โ€ขRetrieve metadata and summaries for individual AO3 works

Key features

โ€ขSearch AO3 with fandom, ship, character, rating, word count, completion, and sorting filters
โ€ขFuzzy input resolution to canonical AO3 tags and names
โ€ขRead 1โ€“20 full fanfics per call using Gemini model for detailed structured reports
โ€ขCache downloaded fics locally for 24 hours to reduce repeated AO3 requests
โ€ขThrottle requests to AO3 respecting politeness and Cloudflare restrictions
โ€ขSupports configurable Gemini API key and model selection

Quick Install

Automated & IDE Setup

Copy the AI prompt to automatically install this server into your coding agent (Claude Code, Cursor, etc.), or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON โ–พ

Install Config Generator

claude_desktop_config.json
{
  "mcpServers": {
    "arturlys-ao3-mcp": {
      "command": "pip",
      "args": [
        "install",
        "ao3-mcp"
      ]
    }
  }
}

๐Ÿ’ก Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by Ao3 Mcp.

Extracted Tool Capabilities
Search AO3 with fandom, ship, character, rating, word count, completion, and sorting filters
Fuzzy input resolution to canonical AO3 tags and names
Read 1โ€“20 full fanfics per call using Gemini model for detailed structured reports
Cache downloaded fics locally for 24 hours to reduce repeated AO3 requests
Throttle requests to AO3 respecting politeness and Cloudflare restrictions
Supports configurable Gemini API key and model selection

Documentation Overview

ao3-mcp

PyPI CI Python 3.10+ License: MIT

ao3-mcp MCP server

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.

Code
agent โ”€โ”€MCPโ”€โ”€> server.py
                 โ”œโ”€ ao3.py     AO3 scraping (no public API exists) โ€” throttled and polite
                 โ””โ”€ reader.py  Gemini reads the fics, reports back: plot, style,
                               prose samples, content notes, a ranking

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:

Code
Find three highly-kudosed fics where rivals are forced to share a bed, read them,
and tell me how each one builds the tension โ€” pacing, POV, what they leave unsaid.

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.

Terminal
pip install ao3-mcp

Add to your agent

Point command at ao3-mcp and pass your key with --api-key:

config.json
{
  "mcpServers": {
    "ao3": {
      "command": "ao3-mcp",
      "args": ["--api-key", "YOUR_GEMINI_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:

json
"env": { "GEMINI_API_KEY": "YOUR_GEMINI_KEY" }
Claude Code
Terminal
claude mcp add ao3 -- ao3-mcp --api-key YOUR_GEMINI_KEY
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
bash
code --add-mcp '{"name":"ao3","command":"ao3-mcp","args":["--api-key","YOUR_GEMINI_KEY"]}'

Then just ask:

Code
Find me a completed enemies-to-lovers longfic in <fandom>, read the top candidates, and tell me which is best written.

Launch params

ParamEnv varDefaultWhat it does
--api-keyGEMINI_API_KEYโ€”Gemini API key (required).
--modelGEMINI_MODELgemini-flash-latestModel the reader uses.
--backup-modelGEMINI_MODEL_BACKUPgemini-flash-lite-latestFallback model when the main one is throttled.
--min-intervalAO3_MIN_INTERVAL0.6Minimum seconds between AO3 requests.

Tools

ToolWhat it does
search_worksSearch AO3: fandom, ship, character, tags, rating, word count, completion, sorting. 20 results/page, up to 5 pages per call. The query field supports AO3's full search-operator syntax (words>10000, kudos>500, sort:kudos, โ€ฆ).
find_tagsLive autocomplete โ€” fuzzy wording โ†’ canonical AO3 tag, fandom, ship, or character names.
get_workFull metadata card for one work: tags, stats, summary, series info.
read_worksReads 1โ€“20 full fics with the secondary model and returns a structured report per fic โ€” plot, characters, style, verbatim prose samples, content notes โ€” plus a comparison ranking them against your question.

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 honoring Retry-After. AO3 is volunteer-run; the politeness is deliberate.
  • Cloudflare: AO3 blocks plain HTTP clients. This uses curl_cffi with a mobile-Safari TLS fingerprint, which passes as of writing. If requests start failing with 403 + cf-mitigated: challenge, change IMPERSONATE in ao3.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 rating filter 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:

bash
git clone https://github.com/ArturLys/ao3-mcp.git
cd ao3-mcp
python -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate
pip install -r requirements.txt

python smoke_test.py YOUR_GEMINI_KEY   # end-to-end check: search โ†’ download โ†’ digest
python server.py --api-key YOUR_GEMINI_KEY   # or point your client's command at this

Credits

License

MIT

Related MCP Servers

View all alternatives

Frequently Asked Questions about Ao3 Mcp

What is the Ao3 Mcp MCP server used for?

Search the Archive of Our Own (AO3) and delegate full-fic reading to a secondary model (Gemini), so the agent recommends from the actual text, not the author's blurb. pip install ao3-mcp

How do I install Ao3 Mcp in Claude Desktop or Cursor?

Copy the client configuration JSON snippet from the installation section above into your claude_desktop_config.json or .cursor/mcp.json file, then restart your AI application.

Is the Ao3 Mcp MCP server free and safe to use?

Yes, Ao3 Mcp is listed as a free Model Context Protocol server. Always review repository source code and permissions before granting local workspace access to AI agents.

Technical Specs & Signals

TransportSTDIO
RuntimePython
Health CheckActive
Views0
Installs0
GitHub stars1
41Quality signal: Fair ยท 41/100How this signal is calculated โ–พ
Server availabilityNot measured

Not scored for repo-hosted servers โ€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools22/30
Adoption1/15
Community engagement0/10

A guidance signal from public completeness & health data โ€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

โ˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge โ€” we recheck it stays live.

Claim & get free dofollow

Promote this listing

Optional paid placement. Free listings stay free forever.

Featured boost7 days in the spotlight ยท from $12/wk
Weeks
1

โ†’ Runs until Aug 14, 2026

Category sponsorTop-of-category sponsorship ยท from $18/wk
Weeks
1

โ†’ Runs until Aug 14, 2026

Cancel anytime โ€” no long-term lock-in.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.