SuperAPI AI Directory

prts-mcp

Arknights game data via the PRTS Wiki API, with auto-synced operator archives and voice lines for fan-work creation.

Open website

About this tool

Purpose

prts-mcp is an MCP Server for AI agents used in Arknights fan creation. Based on the PRTS Wiki's MediaWiki API and automatically synchronized operator game data, it enables any MCP-compatible client (such as Claude Desktop, Claude Code, Chatbox, etc.) to access Arknights' worldbuilding lore, operator archives, and voice lines in real time.

This project is explicitly a non-commercial fan project and is not affiliated with Hypergryph.

Main Capabilities

The repository contains two independent implementations targeting different deployment scenarios, both exposing the same toolset:

  • get_operator_basic_info(name): By default returns basic operator information. Via action="skills" you can query the effects of Lv1-7 and each specialization level; via action="stats" you can query the Lv1/max-level stats for each elite phase along with a summary of trust/potential bonuses. When querying a specific level, you must provide both phase (0-2) and level, for example get_operator_basic_info("Amiya", action="stats", phase=2, level=40); these two parameters are only valid when paired with stats, and each call returns only the selected content.
  • operator_artwork tool (2.5.0+, enabled by default): selects the data source mode via LOCAL_IMAGE. With zero configuration it can be used through MediaWiki plus caching; for a full offline experience, set LOCAL_IMAGE=true (which triggers a background sync of about 1.5 GB).

Regarding output format, both implementations by default output human-readable markdown in the MCP content field. If the client can consume MCP native structuredContent, it can be enabled via the connection-level output_channel switch (content (default) / structured / both): Python uses the PRTS_OUTPUT_CHANNEL environment variable; TypeScript uses the ?output_channel= query string, the x-prts-output-channel request header, or the PRTS_OUTPUT_CHANNEL environment variable.

Data Sources and Synchronization

  • PRTS Wiki API (https://prts.wiki/api.php)——世界观词条、阵营设定。
  • arknights-data-pipeline (3aKHP/arknights-data-pipeline) -- a self-built data factory that produces, from a single GitHub Release, game data tables (zh_CN-excel.zip), level battle data (zh_CN-levels.zip), and story dialogue parsing plus LLM summaries (zh_CN.zip).

Operator/table data is stored in the gamedata volume, level battle data is stored in the gamedata-levels volume, and story data is stored in the storyjson volume. After the server starts listening, it checks in the background immediately, and thereafter checks once per hour by default, with no need to restart the process. You can adjust the period with PRTS_AUTO_SYNC_INTERVAL_SECONDS=60..604800, or set it to 0 to keep only the startup sync.

Both implementations consume the self-built arknights-data-pipeline Release. New Releases come with a manifest.json declaring the prts-mcp-data/v1 contract, the source versionId, and the size and SHA-256 of each archive; a mismatch will be rejected before activation, and during the migration period old Releases without a manifest are still compatible. If downloading, structure, or manifest validation fails, the service continues to use the previously activated generation of data.

GITHUB_MIRRORS is an explicit alternative path for GitHub access; leading/trailing whitespace and trailing slashes of entries are automatically normalized in both implementations. Node deployments will use the standard HTTP_PROXY / HTTPS_PROXY via Undici (lowercase variables are also recognized), Bun keeps the native fetch path, and the proxy will not bypass manifest or ZIP validation.

Usage

Since 2.3.0 both implementations support dual transport, selectable by scenario:

  • Local stdio access (Claude Desktop / Claude Code) -> Python: prts-mcp (stdio, default); TypeScript: npx prts-mcp-ts-stdio.
  • HTTP service deployment (self-hosted server, remote access) -> Python: PRTS_TRANSPORT=http prts-mcp; TypeScript: npx prts-mcp-ts.

For more implementation details, see the python/ and ts/ directories in the repository.

On the runtime side, the TypeScript implementation supports Bun and Node.js. Since 2.2.0, Bun is the default production runtime: the default ts/Dockerfile, the CI main verification chain, and the recommended Docker deployment all run under Bun (minimum verified version Bun 1.3.14). Node.js remains a supported legacy/optional runtime, provided through the prts-mcp-ts npm bin (so npx prts-mcp-ts still has zero additional runtime dependencies), npm install -g, and the ts/Dockerfile.node build path. The npm publishing path still goes through the npm CLI (npm publish --provenance, independent of the runtime).

Regarding MCP protocol compatibility, 2.6.0 retains the existing legacy MCP client flow for initialize/session, and adds opt-in support for the 2026-07-28 protocol era. Modern HTTP requests use the modern envelope and are stateless, and do not send Mcp-Session-Id; for stdio, the protocol era is selected by the first request on the connection, and a new connection is required when switching protocol modes. Before switching a client to modern, you should first read the 2.5 → 2.6 migration guide.

Applicable Scenarios

  • Arknights fan creation (worldview retrieval, operator profiles, and voice line queries).
  • Connecting to MCP-compatible clients such as Claude Desktop, Claude Code, and Chatbox for local or remote calls.
  • Self-hosting an HTTP service for others to call.

Distribution and Limitations

Officially released Docker images and npm packages will have bundled fallback data preinstalled by CI; PyPI packages remain lightweight and do not include these data files, relying on auto-sync at startup or a user-provided data path.

Regarding version migration: the breaking changes from 1.x → 2.0 (tool surface merge, operator_name → name, output channel) are described in docs/migration-1.x-to-2.0.md; for the 0.x → 1.0 migration, see docs/migration-0.x-to-1.0.md. For the contribution process, see CONTRIBUTING.md; for development environment entry points on Linux/WSL, Windows, and macOS, see docs/dev/ENVIRONMENT.md.

The code is licensed under MIT (© 2026 3aKHP). Third-party content provided through this project, such as PRTS Wiki text, Arknights game data, and character art, remains licensed under its respective terms; for attribution, license terms, and takedown contact information, see NOTICE.