
Myfigurecollection Api
io.github.ssskay由 GitHub 帳號 ssskay 發布v0.1.1更新於 Oct 24, 2026
Read MyFigureCollection.net: search figures, JAN barcode lookup, shop prices, collections and clubs.
概覽
非官方本機 MCP 伺服器,讓助理讀取 MyFigureCollection.net:公仔搜尋、JAN 條碼查詢、店家價格、收藏與社團。
- 可以做什麼
- 搜尋並讀取公仔項目,包含完整詳情、分頁,以及附比對狀態的 JAN/UPC 條碼查詢。查詢合作店家的商品清單(含供貨狀態與價格),以及店家資料與店家目錄。讀取使用者個人檔案、已擁有/已訂購/願望/最愛清單、公開清單及清單內容。讀取社團資訊、討論串、工作人員與成員名冊。可選擇將公開項目頁面歸檔到 Internet Archive,形成可引用的價格歷史。
- 適用情境
- 適合讓助理查詢 MyFigureCollection 上的動漫公仔與周邊資料、依已知條碼比較合作店家價格,或在對話中瀏覽某位使用者的收藏、清單或某個社團。
- 執行需求
- 以 stdio 在本機執行;需要 Python 3.10+ 與 myfigurecollection-api 套件,或以 uv/uvx 從 PyPI 取得。需要能連線 myfigurecollection.net。選用的 Internet Archive 歸檔需要 IA_ACCESS_KEY 與 IA_SECRET_KEY。選用設定包括 MFC_API_RATE_LIMIT、MFC_API_CACHE_TTL、MFC_API_CACHE_DIR 與 MFC_API_LOG_LEVEL。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Myfigurecollection Api,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
myfigurecollection-api
Install: pip install myfigurecollection-api · all formats & checksums
An unofficial MyFigureCollection.net API: a Python library plus a local MCP server, so agents can read figure data, collections, lists and clubs.
MFC has no working public API. Its own API club (#349) has been promising "API v4 coming soon" for eight years. This package reads the public HTML instead, and turns it into typed models.
New here? The short version
MyFigureCollection is the largest catalog of anime figures and merch on the internet, and for years there has been no good way for a program to read it. This project fixes that on your own computer. You install it once, and an AI assistant like Claude can then look things up on MFC for you: "how much is this figure at AmiAmi?" or "list every Chiikawa item releasing in October."
What is MCP? The Model Context Protocol is a standard plug for giving AI assistants new abilities. An MCP server is a small program on your machine that an assistant is allowed to call. This one gives your assistant 12 MFC abilities, from item search to barcode lookup. Adding it takes one snippet in a config file, shown in Use it as an MCP server.
Why not use MFC's official API? There isn't one. The site's own API club has been waiting for it since 2018.
Why isn't this a website I can visit? Cloudflare guards MFC and decides who gets in partly by IP reputation. It trusts connections from home computers and distrusts servers, so a hosted version would get blocked within days while a copy on your own machine keeps working. That constraint shaped the whole design.
Do I need to know Python? Two terminal commands to install (below). After that your assistant does the driving.
Why this exists (and why the obvious approach fails)
MFC is behind Cloudflare, which blocks on TLS fingerprint — not user-agent.
requests, httpx and aiohttp all get a 403 "Just a moment..." challenge no
matter what headers you send. That is why the older tenji scraper stopped
working; its parsers never even received HTML.
This package uses curl_cffi with
impersonate="chrome", which reproduces a real Chrome handshake and gets a 200.
That choice is load-bearing. Swapping in a normal HTTP client will break
everything.
It is also why this ships as a local tool rather than a hosted service: Cloudflare weights IP reputation, so a scraper on datacenter IPs gets challenged and burns the shared address for everyone. Run it on your own machine.
Install
This needs Python 3.10+. The package is on PyPI:
On a Mac, python3 is often Xcode's 3.9, which will not run this code, so be
explicit about the interpreter (e.g. pip3.12). Working from a clone instead,
use pip3.12 install -e ..
Then check it landed:
If mfc-api isn't found, your shell's python3 bin directory isn't on PATH. Find the
script with python3.12 -c "import sysconfig; print(sysconfig.get_path('scripts'))" and
use that absolute path.
Use it as an MCP server
mfc-api with no arguments starts the MCP server on stdio. Add this to your MCP config —
~/Library/Application Support/Claude/claude_desktop_config.json for Claude Desktop, or
.mcp.json in your project for Claude Code:
This needs uv installed; uvx fetches the package
from PyPI on first run, so there is nothing else to set up.
No uv? Point command at the installed script by its absolute path, e.g.
/Library/Frameworks/Python.framework/Versions/3.12/bin/mfc-api. The path must be
absolute because MCP clients launch servers with a minimal PATH that does not
include your shell's Python bin directory — a bare "command": "mfc-api" will fail
even though it works in your terminal.
Tools
get_club is new — tenji never had it.
Two things to know about store data
Prices only exist where MFC has a barcode. get_partner_listings returns every
partner shop, but MFC can only check real stock for items whose JAN it recorded. For an
item with no barcode, all 32 partners come back as maybe_available with no price.
That means "not checked", not "in stock". Filter on availability == "available".
search_by_barcode is a lookup, not a search. A known barcode returns the full item
under item with matched: true. An unknown one returns matched: false — which
includes barcodes that are real but that MFC simply never recorded, common for Western
releases.
Configuration
Use it as a library
Everything under one origin or character (library and CLI only — not an MCP tool):
Item.picture is a 256px preview; Item.picture_large is the original upload.
transport.get_bytes(url) fetches a picture through the same rate limiter, and
a 429 raises MFCRateLimitedError carrying retry_after instead of being retried.
Barcode in, prices out:
Use it from the shell
Everything prints JSON on stdout; logs go to stderr. mfc-api --help lists every
subcommand. mfc-api-cli is kept as an alias.
Archiving an item page to the Wayback Machine
A price or a listing you read today is uncitable tomorrow: the page will have
moved on, and nobody has to take your word for what it said. archive=True
files the public item page with the Internet Archive's Save Page Now and
attaches the result to the item.
Three things fall out of one hook: a price-history series accumulates as a
byproduct of ordinary reads, every row becomes auditable by someone who does not
trust you, and the data survives the site. That last one is not hypothetical —
tenji died, and Mandarake went dark in September 2026.
It never breaks a read. A failure is a row, not an exception:
item.archive.status is one of success, already (a recent capture existed,
so the Archive declined to make another — still a preservation success),
skipped, pending, or failed with a reason. If the Internet Archive is
down you still get the item.
Nothing about a person is ever archived
Most of MFC is people. is_public_item_url is a whitelist of /item/<id>
with no query string, so profiles, collections, user lists and club rosters are
refused before any request is made:
A whitelist rather than a blacklist on purpose: a new personal URL shape cannot leak through something that only lists what to keep.
It is opt-in for a reason
Reads default to archive=False, and archiving is meant to run as its own
deliberate pass over the items you actually care about — not inline in a
latency-sensitive loop:
- Weekly cadence. A JSON ledger records when each URL was last captured;
anything captured in the last 7 days is skipped without a request. Weekly is
plenty of resolution for a price curve and much gentler on both the Archive
and MFC. The submit also carries
if_not_archived_within=7d, so the Archive enforces the same window even if the ledger is lost. - Serialized, one every 6 seconds, with a per-run cap of 50, and
Retry-Afterhonoured on a 429.
Without credentials the result is status="failed" with a reason naming the
fix — not a crash, and not a silent no-op.
Build one Archiver per pass and reuse it (the client does this for you), so
the rate limiter and the per-run cap apply across the whole batch rather than
resetting each time.
Being a good citizen
- Rate-limited to 1 request/second by default, process-wide.
- Responses are cached on disk for an hour, so repeated agent calls cost nothing.
- Read-only. There are no login, write, or vote operations, and none are planned.
- Wayback snapshots are opt-in, weekly per URL, capped per run, and restricted
to
/item/<id>pages — never a profile, collection, list or club page.
If you scrape MFC hard enough to be noticed, Cloudflare will start challenging your IP, and you will have made the site worse for everyone. Don't.
Tests
The default run is entirely offline — parser tests read saved HTML fixtures
captured on 2026-07-30. Tests that hit the live site are marked live and
deselected by default:
Run those when MFC's markup may have changed; they are the canary.
Credits
The parser architecture — a parser class per page, given HTML, returning a
model — is ported from tenji by
Nate Shoffner (MIT). The selectors are not: MFC's templates moved on since
tenji's last release. Two endpoints tenji used are gone entirely
(itemlists.v4.php now 404s), and the collection, profile, list and shop pages
all render different markup than it expects.
One piece of tenji did survive verbatim: the Buy window is still a form POST to
/item/{id} with commit=loadWindow&window=buyItem, answering with JSON. That
envelope is tenji's discovery and it still works in 2026.
tenji's MIT notice is reproduced in full in NOTICE, along with a precise account of what was and wasn't derived from it.
Disclaimer
Unofficial. Not affiliated with, endorsed by, or supported by MyFigureCollection.net or Tsuki Board. It scrapes public pages and will break whenever MFC changes its HTML. Item data belongs to MFC and its contributors.
MIT licensed — see LICENSE.
Built by Sara Kay.
mcp-name: io.github.ssskay/myfigurecollection-api
來源:README.md,提交 de79980
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分