Skip to main content

Kranked MCP

An MCP server that exposes App Store keyword intelligence — keyword difficulty, popularity, and live rank — as tools any MCP client (Claude, etc.) can call. It's the headless companion to the Kranked ASO app: same scoring, no GUI.

Stateless and zero-config: every tool is a live call to Apple's public endpoints (the iTunes Search API and search-hints). No database, no API keys. Runs locally via uvx or as a hosted server.

Speaks MCP 2026-07-28 (Python SDK v2), and stays backwards compatible with 2025-era clients from the same server.

Tools (free / open core)

Tool What it answers
search_apps Find apps (and their app_id) matching a term
check_keyword One-shot report: difficulty + popularity + KEI + competitors, and your app's rank
keyword_difficulty How hard a keyword is to rank for (0–100), with the top-10 competitors
keyword_popularity How searched a keyword is (suggest-based 20/50/80)
keyword_suggestions Apple's autocomplete hints for a seed term

All tools take a two-letter country (default us).

Premium (hosted): popular_keywords — top most-searched keywords by category with real Apple Search Ads popularity (0–100) — is available on the hosted service, not in this open-source package.

How the scores work

  • Difficulty (0–100) — analyzes the top-10 ranking apps' review volume and rating quality. More established competitors = harder. Labeled Very Easy → Very Hard.
  • Popularity (20/50/80) — whether Apple auto-suggests the term (exact / related / neither). For real ASA popularity numbers, use popular_keywords.
  • KEI — Keyword Efficiency Index = popularity / difficulty. Higher is a better bet.

Install

Once published to PyPI, no clone needed — uvx runs it on demand. Add to your MCP client config:

{
  "mcpServers": {
    "kranked": {
      "command": "uvx",
      "args": ["kranked-mcp"]
    }
  }
}

For Claude Code: claude mcp add kranked -- uvx kranked-mcp

Local / development

git clone https://github.com/akoskomuves/kranked-mcp
cd kranked-mcp
uv sync

Point your client at the local checkout:

{
  "mcpServers": {
    "kranked": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/kranked-mcp", "run", "kranked-mcp"]
    }
  }
}

Run the tests — they're offline (pure scoring plus server wiring driven through the real ASGI app), so they don't hit Apple and can't flake on rate limiting:

uv run pytest

Self-hosting (remote MCP)

Kranked runs in two modes from the same code:

Mode Transport Use Command
Local stdio one user, on your machine kranked-mcp
Hosted streamable-HTTP at /mcp shared server, many users kranked-mcp-serve

The hosted server is stateless, so it scales horizontally — no sticky routing, no session affinity. Since MCP 2026-07-28 that is the protocol's own model rather than an opt-in: there is no initialize handshake and no session id, and clients negotiate up front with server/discover instead. Deploy the included Dockerfile to any container host (Railway, Fly, Render, …); it reads PORT from the environment and exposes GET /health for liveness checks.

server/discover and tools/list carry a one-hour public cache hint (ttlMs / cacheScope), so clients can hold the tool list instead of re-listing it every session.

Deploy to Railway

The repo ships a railway.toml (Dockerfile build, /health healthcheck). To deploy:

# one-time
npm i -g @railway/cli && railway login

# from the repo root
railway init            # create/select a project
railway up              # build the Dockerfile and deploy
railway domain          # get a public https URL

Or connect the GitHub repo in the Railway dashboard — it picks up railway.toml automatically. Set KRANKED_CACHE_TTL in the service's Variables if you want a longer/shorter cache.

Then point a client at the URL:

claude mcp add --transport http kranked https://your-app.up.railway.app/mcp

Config

Env var Default Purpose
PORT / HOST 8000 / 0.0.0.0 bind address
KRANKED_CACHE_TTL 3600 seconds to cache upstream responses (0 disables)
KRANKED_CACHE_MAX 2000 max cached entries

Caching is not optional for a hosted deployment. All users' requests leave from one IP, so without it you hit Apple's per-IP throttle immediately. Difficulty/popularity change slowly, so cached results stay useful for hours. For multiple instances, move the cache to Redis.

Roadmap (paid tier): the hosted server is free and open at launch. API-key auth + usage metering are the intended gate for a paid tier.

Rate limiting

The iTunes API throttles unauthenticated callers per IP with a 403/429 and a non-JSON body. The server serializes requests through a global throttle and retries throttles with exponential backoff + jitter, so it degrades gracefully instead of surfacing bogus decoding errors.

License

MIT © Akos Komuves

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kranked_mcp-0.2.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kranked_mcp-0.2.1-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file kranked_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: kranked_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kranked_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 622aa3bd829922eb8fe6901279fa700859e131d2f482fb64fbdd47b53d87e7ae
MD5 131fd0328746d6881ac2cbdbafb16004
BLAKE2b-256 f43670f8ecbb6fe601c43f58b6c8cc06f81115d78eeea4e93ec82e6a6ae54530

See more details on using hashes here.

File details

Details for the file kranked_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: kranked_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kranked_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c086c4ba2bbc33a3c8804bba868c738ac3a9f0af2817a8b2be1ed42680cfcd08
MD5 18cdc7432da7e5175762353e0e2f9216
BLAKE2b-256 917ee3131e1fb55d5d2d537fe90e8784da7c47acc833a2257b760ef1b2e9f210

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.3

2 files

0.2.2

2 files

This release

0.2.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page