by xuzhougeng
Local-first MCP App for scientific figures. Import, review, and publish a global library on disk; reuse exact templates in Pi, DeepSeek Harness (dsh), Claude, Codex, Cursor, and Wisp.
# Add to your Claude Code skills
git clone https://github.com/xuzhougeng/ScientificFigureLibraryGuides for using ai agents skills like ScientificFigureLibrary.
ScientificFigureLibrary is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by xuzhougeng. Local-first MCP App for scientific figures. Import, review, and publish a global library on disk; reuse exact templates in Pi, DeepSeek Harness (dsh), Claude, Codex, Cursor, and Wisp. It has 142 GitHub stars.
ScientificFigureLibrary's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/xuzhougeng/ScientificFigureLibrary" and add it to your Claude Code skills directory (see the Installation section above).
ScientificFigureLibrary is primarily written in TypeScript. It is open-source under xuzhougeng on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ScientificFigureLibrary against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Website · 简体中文 · Quickstart · User Guide (online) · Protocol · Releases · Wisp Science
Scientific Figure Library is a local-first library for scientific figures and their code. Browse references yourself or give a coding agent access to the same library. SFL does not execute plotting code.
| What do you want to do? | Start here |
|---|---|
| Browse figures, save favorites, or add your own image and code | Install the local client. Choose the standard package for your system; it includes Node. No agent or MCP setup is needed. |
| Find and reuse a figure from a coding agent | If the local app is installed, open 连接外部工具 (Connect external tools) and choose your host. Otherwise use the agent quickstart. Choose one connection method, not both. |
| My agent can run shell commands but cannot register MCP tools | Install the scientific-figure-library npm tarball from GitHub Release v0.11.0, the first release with the CLI. Use sfl search and sfl describe for metadata or sfl session to inspect images and approve operations. Do not install a package named sfl. |
You choose where your Library lives. Publishing a reviewed revision makes it reusable across projects; it does not publish it to GitHub. Saving an exact template into a project is a separate, confirmed action.
Separate native macOS Apple Silicon and Intel DMGs, a per-user Windows installer, plus Windows and Linux ZIPs with bundled Node, are available through the local-client release workflow. Both bundled-Node and no-node editions (requiring installed Node.js 22+) omit gallery images and download previews on demand. See installation and preview limitations. The macOS preview is ad-hoc signed and is not notarized.
Use the instructions for the host where the agent runs. An installed app can generate its own connection configuration; moving its installation directory changes those paths. Installing a second SFL plugin in the same host duplicates tools.
Install the npm package and MCP adapter. A source checkout is not a built Pi package.
Add the npm package to the profile you use.
Connect your host. Then try the first search.
io.github.jarxunlai.personal-figures
Provider. A bundled snapshot is only the offline bootstrap. After install,
SFL asynchronously checks a signed GitHub feed and atomically switches the
local Catalog overlay. Ordinary template updates no longer require
repackaging the plugin. Complete module ZIPs are still fetched only for one
exact selected materialization.The host plugin ZIPs and the npm package used by Pi and dsh include one core figure-library Skill with on-demand
description, script-organization and style references. Ordinary MCP hosts can
read the same guidance with figure_library_get_skill, browse thumbnails with
figure_library_get_candidate_images or resource URIs, and paginate with
figure_library_search_page. The MCP App is optional. Approved R/Python runtimes and host execution/image tools
are still required when the user asks to draw.
Template details render safe Markdown for the requirement, biological use cases and data profile, with actual input/code/package lists visible. Technical identities and validation state are available in a collapsed area. Historical Local Published/OFM entries remain readable; this update does not rewrite their content or the bundled FigureYa catalog.
Call figure_library_source_status. If setup_required, ask me only for a missing
Library or workspace path and show its plan before binding it. Search for a
volcano plot and show the candidate images. Don't save files or run code.
You don't need to publish anything to search the bundled catalogs. To find your own figure in Local Published, import it, review it and publish a local Release. The frozen Community catalog remains explicit-only. Full contract: docs/PROTOCOL.md.
Requires Node.js 22+:
Pull requests run tests, type checking, build and MCP smoke across Linux, Windows
and macOS. See basic CI for the matrix and merge-check setup.
Pushing a stable vX.Y.Z tag packages local clients, host plugins, the npm
tarball and the Wisp update feed, then uploads them to the GitHub Release.
Maintainers can also configure the optional AI comment bot
for manually requested issue suggestions and PR reviews.
git clone https://github.com/xuzhougeng/ScientificFigureLibrary.git
cd ScientificFigureLibrary
npm ci
npm run check
node dist/index.js
{
"mcpServers": {
"figure-library": {
"command": "node",
"args": ["/absolute/path/to/ScientificFigureLibrary/dist/index.js"]
}
}
}
The Library locator is machine-local (locator.json under AppData / XDG).
FIGURE_LIBRARY_DIR is an admin override only.
| Tool | Role |
|---|---|
figure_library_plan_bind_global / apply_bind_global |
Choose the local Library directory |
figure_library_open |
Open the MCP App |
figure_library_search |
Search Local Published (and any enabled extras) |
figure_library_plan_working_revision / apply_working_revision |
Import a figure+code unit |
figure_library_plan_publish_working_revision / apply_publish_working_revision |
Publish a Release |
figure_library_plan_open_figure_module_pr / apply_open_figure_module_pr |
Optional Open Figure Modules GitHub PR |
figure_library_plan_materialize / apply_materialize |
Copy a confirmed template into a project |
The server never runs notebooks, installers, or plot scripts. See SECURITY.md.
Personal modules use one content repository for both cleaned source modules and deterministic archives (no second archive repository):
<PERSONAL_MODULE_REPOSITORY>
├── modules/<moduleId>/ # reviewed, cleaned public module
├── archives/<moduleId>.zip # deterministic ZIP from a pinned source commit
└── catalog/ # archive manifest and admission records
The plugin still ships assets/personal-modules/ as a bootstrap Catalog,
preview/thumbnail snapshot, and license notice. After a successful signed-feed
refresh, search uses the remote last-known-good overlay instead of that
bootstrap. The plugin never contains complete personal ZIPs, Gallery
source/reference images, private data, credentials, or signing keys.
At runtime, complete Open Figure Modules are kept outside the plugin in the
bound global Library under source-packs/open-modules/. A verified archive
download is persisted there together with an extracted template cache. The
canonical archive identity remains the GitHub repository and pinned commit;
the bundled Catalog includes the official Gitee mirror
https://gitee.com/livenever/ScientificFigureLibrary-personal/raw/{archiveCommit}/{archivePath}
as the default transport accelerator and falls back to the canonical GitHub
archive when unavailable. An optional machine-local mirror override can take
precedence without changing canonical identity. Local Published templates continue
to be read directly from the Library store/ and never use this Source Pack.
FigureYa follows the same write-through rule in the sibling
source-packs/figureya/ directory: a verified network archive is retained as a
ZIP, indexed by figureya-source-pack.manifest.json, and extracted into the
derived templates/ cache. Preview and search remain read-only; this happens
only during the approved Materialize Apply operation.
The signed feed lives on the open-figure-feed branch of
jarxunlai/ScientificFigureLibrary-personal. SFL checks
current/source-manifest.json over HTTPS, verifies the Ed25519 detached
signature, then pins Catalog and preview ZIP URLs to