rustore-apk-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rustore-apk-mcp Download the APK for com.spotify.music"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Getting an APK into an agent's workspace is normally a chore: find the listing, fight a download page, dodge a mirror of unknown provenance, and then just hope the file is the app you asked for. This MCP server removes the whole detour.
you ▸ Download the APK for ru.foodfox.client and tell me where it is.
agent ▸ download_apk(package_name="ru.foodfox.client")
↳ /Users/you/Downloads/rustore-apks/ru.foodfox.client-250000235.apk
version 25.0.0 (250000235) · 84.1 MB
sha256 b9f4…c1a7
verified: ZIP CRC, manifest package/version and APK signature
verified; certificate matches RuStoreOne tool call. A real file. A verification chain you can point at.
Why this exists
Typical APK mirror / scraper |
| |
Provenance | "trust the mirror" | RuStore's own API + CDN, nothing else |
Integrity | maybe a checksum | ZIP CRC + manifest + APK signature |
Identity | filename says so |
|
Authenticity | — | signing cert pinned to the SHA-256 RuStore reports |
Auth | login walls, captchas | none — no account, no API key |
Mechanism | headless browser, brittle | plain HTTPS calls |
Agent fit | glue scripts | native MCP tools with output schemas |
Related MCP server: Google Play Store MCP Server
Quickstart
Requirements: Python 3.11+, uv, Java, and Android SDK
Build Tools (aapt, apksigner). The build tools are auto-discovered from PATH,
ANDROID_HOME, ANDROID_SDK_ROOT, and the standard SDK locations on macOS and Linux.
git clone https://github.com/kirvigen/rustore-apk-mcp.git
cd rustore-apk-mcp
uv sync --locked
uv run --locked rustore-apk-mcpThe server speaks MCP over stdio, so an empty prompt after startup is expected —
stdout belongs to the protocol.
Connect it to your agent
codex mcp add rustore-apk \
--env APK_MCP_DOWNLOAD_DIR="$PWD/downloads/mcp" \
-- "$PWD/.venv/bin/rustore-apk-mcp"Then add tool_timeout_sec = 600 under [mcp_servers.rustore-apk] in your Codex config —
large APKs plus signature verification need the headroom.
claude mcp add rustore-apk \
--env APK_MCP_DOWNLOAD_DIR="$PWD/downloads/mcp" \
-- "$PWD/.venv/bin/rustore-apk-mcp"{
"mcpServers": {
"rustore-apk": {
"command": "/absolute/path/to/rustore-apk-mcp/.venv/bin/rustore-apk-mcp",
"env": {
"APK_MCP_DOWNLOAD_DIR": "/absolute/path/to/downloads"
}
}
}
}Set the client's per-call timeout to at least 600 seconds.
That's it. A fresh agent needs nothing more than:
"Download the APK for
com.example.appvia rustore-apk and give me the path."
Tools
get_apk_info(package_name)
Latest release metadata — app name, version name and code, minimum Android SDK, price, signing certificate, store URL. Read-only, no download.
download_apk(package_name, max_mib=1024)
Downloads and verifies the latest free standalone APK, then returns:
{
"package_name": "com.example.app",
"version_name": "1.4.2",
"version_code": 10402,
"path": "/abs/path/com.example.app-10402.apk",
"bytes": 44236800,
"sha256": "…",
"certificate_sha256": "…",
"verification": "ZIP CRC, manifest package/version and APK signature verified; certificate matches RuStore",
"cached": false
}Calling download_apk directly is fine — get_apk_info is optional.
Verification: what actually gets checked
Every byte is checked before the file is moved into place. A download that fails any
step never becomes an .apk in your directory.
Host pinning — the CDN URL must be
https://static.rustore.ru; redirects are not followed.Declared size — the stream is cut off the moment it exceeds what the API promised.
ZIP integrity — CRC of every entry, with a 4 GiB decompression bound against zip bombs.
Identity —
packageNameandversionCodeare read fromAndroidManifest.xmlviaaaptand must match the release you asked for.Signature —
apksigner verifymust pass.Certificate pinning — the signing certificate's SHA-256 must equal the one RuStore reports for that listing.
Cached copies are re-verified the same way on every call; a corrupted or mismatched cache entry is silently re-fetched. Partial files are cleaned up on any failure.
Signature verification proves the file isintact and from the same publisher RuStore lists — it is not a behavioural or malware analysis. The server never installs or executes anything it downloads.
Limits (the honest list)
Latest version only; no version history.
Free apps only — a non-zero price is refused outright.
Standalone APKs only; split APKs / bundles are not supported yet.
Listings backed by an external source are refused rather than guessed at.
Coverage is whatever RuStore's catalogue has.
The download profile is fixed: Android SDK 36,
arm64-v8a, 480 dpi,withoutSplits=true.RuStore's consumer API is not a stable public contract; it can change without warning.
HTTP 403/429 stops the call immediately, with no retries — call again later.
Hard ceilings: 5-minute download,
max_mibbytes, 4 GiB uncompressed for verification.
Configuration
Variable | Default |
|
|
| auto-discovered |
| auto-discovered |
|
|
Files are named <package_name>-<version_code>.apk.
Tests
uv run pytest -q
# Opt-in live check: metadata, download and cache reuse over a real MCP stdio client.
uv run python scripts/smoke_mcp.py com.yolo_price_mobileLast verified end-to-end on 2026-09-09: com.yolo_price_mobile 0.9.55 (611).
Also in this repo
apk_scrapper.cli is an earlier, standalone APKPure page-parsing CLI (apk-scrapper entry
point). It predates the MCP server, is not used by it, and is kept only for reference — the
MCP tools talk to RuStore and nothing else.
Contributing
Issues and PRs are welcome — split-APK support and broader catalogue coverage are the two most useful things anyone could add. Keep the verification chain intact: nothing lands on disk that hasn't passed every check above.
References
License
Not affiliated with, endorsed by, or connected to RuStore or VK. Use it in line with RuStore's terms and the licence of whatever app you download.
Available Tools
2 toolsdownload_apkA
Download the latest free standalone APK from RuStore using just its package name.
Returns absolute local path, version, byte size, SHA-256, certificate and cached flag. Verifies the package/version in AndroidManifest and APK signature against RuStore. Reuses a verified cached copy of the same version. max_mib: 1..4096, default 1024. Requires Android SDK aapt/apksigner and Java on the server host. May take several minutes. Does not install or run the APK. Call sequentially for a package list; stop on HTTP 403/429.
Inputs: package_name (required), max_mib. Returns: object
get_apk_infoARead-only
Get latest RuStore release metadata by exact Android package name, e.g. com.yolo_price_mobile.
Returns name, version, minimum Android SDK, price and source. Does not download any APK. A listing does not guarantee that a standalone APK is available.
Inputs: package_name (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools are clearly distinct: one retrieves metadata without downloading, the other downloads the APK. There is no overlap in functionality, and the descriptions explicitly differentiate their purposes.
Both tools follow a consistent verb_noun pattern: get_apk_info and download_apk. The naming is predictable and clearly indicates the action and resource.
With only two tools, the surface is thin, but for a narrowly scoped server (RuStore APK retrieval) it may be sufficient. It is borderline but not excessive; the tools cover the core operations.
The tools cover the primary operations of retrieving metadata and downloading APKs. A minor gap is the lack of a discovery/search tool, but the server's stated purpose is to work with exact package names, so this is a reasonable boundary.
Maintenance
Related MCP Connectors
Give your AI agent a real cloud Android phone: push APKs, drive it, get screenshots and logs.
AI agents on real phones: run tasks, read the screen, tap, type and install apps.
Cloud Android phones for AI agents: create a phone, read the screen, tap, type, install APKs, park.
Ship a new Android app from chat. AI runs Google Play Console listings, screenshots, releases, uplo…
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables publishing Android apps to Samsung Galaxy Store and Huawei AppGallery directly from AI agents, with tools for uploading binaries, updating listings, submitting apps, and verifying Samsung IAP receipts.11MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to automate Android release workflows via the Google Play Android Publisher API, including deploying builds, managing listings, and replying to reviews.40MIT
- AlicenseAqualityBmaintenanceEnables AI agents to search Aurora OS app store, inspect app and release information, and manage developer applications including RPM upload, metadata editing, and publication scheduling.17MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to locally inspect Android APKs over MCP by decompiling Java, decoding resources, searching classes and methods, tracing references, and producing evidence reports with limitations.5MIT