Skip to main content
Glama

sensortower-mcp

npm CI License: MIT

An MCP server for the SensorTower APIs: app download and revenue estimates, store leaderboards, App Store featuring and ASO, reviews, Apple Search Ads, and audience insights. 29 tools over ~76 endpoints, with the API's unit, shape and error quirks already handled.

You need a SensorTower API key. What each tool can return depends on what your organisation's subscription covers.

Quick start

Requires Node.js 22 or newer.

npx -y sensortower-mcp --help

Then register it with your MCP client, passing the key through the client's env block.

Claude Code

claude mcp add sensortower -e SENSORTOWER_API_KEY=your-key -- npx -y sensortower-mcp

Or check a project-scoped .mcp.json into your repo and keep the key in your shell environment. Claude Code expands ${VAR} in this file:

{
  "mcpServers": {
    "sensortower": {
      "command": "npx",
      "args": ["-y", "sensortower-mcp"],
      "env": { "SENSORTOWER_API_KEY": "${SENSORTOWER_API_KEY}" }
    }
  }
}

Claude Desktop

In claude_desktop_config.json:

{
  "mcpServers": {
    "sensortower": {
      "command": "npx",
      "args": ["-y", "sensortower-mcp"],
      "env": { "SENSORTOWER_API_KEY": "your-key" }
    }
  }
}

Cursor

In ~/.cursor/mcp.json (global) or .cursor/mcp.json (project), using the same mcpServers block as Claude Desktop.

VS Code

In .vscode/mcp.json. VS Code asks for the key once and stores it securely:

{
  "inputs": [
    { "type": "promptString", "id": "sensortower-key", "description": "SensorTower API key", "password": true }
  ],
  "servers": {
    "sensortower": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "sensortower-mcp"],
      "env": { "SENSORTOWER_API_KEY": "${input:sensortower-key}" }
    }
  }
}

Related MCP server: @sonarapp/mcp

The API key

Read from, in order:

  1. SENSORTOWER_API_KEY in the environment. This is how an MCP client should supply it (see Quick start).

  2. --env-file <path>: a dotenv-style file that defines SENSORTOWER_API_KEY, e.g. "args": ["-y", "sensortower-mcp", "--env-file", "/abs/path/.env"]. The file must exist: Node.js itself intercepts --env-file and exits with node: <path>: not found when it does not.

  3. A .env file found by walking up from the working directory, stopping at the first directory that contains .git. The working directory is whatever the MCP client launches the server in, which is often not your project, so prefer option 1.

There is deliberately no flag or tool argument that takes the key. SensorTower sends it as a URL query parameter, so anything in argv would leak into ps output and shell history. Every URL this server emits — including inside error messages — has the token replaced with <TOKEN>.

If the key is missing the server still starts and still lists its tools; the error surfaces on the first call, where it is readable.

Two things worth knowing before you spend anything

Quota is charged per HTTP request, not per row, against a shared monthly organisation limit. One request covering three months costs exactly what one covering a single day costs. Widen date ranges, batch app_ids (100 per request), and do not loop.

sensortower_api_usage is free, and is the only endpoint that genuinely validates the key — /v1/{os}/apps returns 200 with full metadata even for a garbage token, so a revoked key looks healthy there and fails everywhere else.

Every tool accepts dry_run: true, which prints the exact URL it would call and charges nothing.

Tools

Tool

What it answers

sensortower_api_usage

How much quota is left (free)

sensortower_reference

Valid category ids, chart types, networks, review tags, segment formats (offline)

sensortower_raw_get

Any endpoint without a dedicated tool

sensortower_app_metadata

Name, publisher, rating, and the unified_app_id other tools need

sensortower_app_estimates

Downloads and revenue over time

sensortower_app_active_users

DAU / WAU / MAU

sensortower_app_rank

Current category ranks, or a rank history

sensortower_app_version_history

Releases, or store-listing changes

sensortower_app_demographics

Age and gender of an app's users

sensortower_app_in_app_purchases

Top IAP SKUs (iOS)

sensortower_app_overlap

What else this app's users use

sensortower_app_retention

Retention curves

sensortower_top_charts

The store top chart for a category

sensortower_top_apps

Leaderboard by downloads, revenue or active users

sensortower_top_publishers

Leaderboard by publisher

sensortower_store_summary

Category-wide totals (or game genres)

sensortower_market_size

Market totals sliced by any dimension

sensortower_top_advertisers

Ad share of voice, or one app's ad rank

sensortower_top_creatives

The most-seen ad creatives

sensortower_featured

Apple "Today" stories, or a category's featured apps

sensortower_featured_history

One app's featuring history and download impact

sensortower_keywords

Who ranks for a term, or what terms an app ranks for

sensortower_keyword_history

Keyword rank and traffic over time

sensortower_reviews

Individual reviews with sentiment and tags

sensortower_ratings

Star ratings over time

sensortower_review_breakdown

Review counts by rating, sentiment or tag

sensortower_search_ads

Apple Search Ads share of voice

sensortower_audience_demographics

Age and gender of an audience segment

sensortower_audience_affinity

What a segment is into: personas, channels, brands, apps

What the server normalises for you

The raw API is inconsistent in ways that are easy to get wrong and expensive to get wrong twice:

  • Revenue is in cents everywhere. Converted, and renamed *_usd.

  • sales_report_estimates returns three different key sets depending on os (iOS iu/ir/au/ar with country in cc; Android u/r with country in c; unified spelled out). All three collapse to app_id / country / date / downloads / revenue_usd.

  • custom_tags is 213 keys and ~94% of every leaderboard row. Dropped unless keep_custom_tags: true.

  • Artwork URLs are 75–85% of a featured payload (~1 MB per category-week). Dropped unless keep_artwork: true.

  • Leaderboards arrive ordered but unnumbered, and carry only ids. Rank numbers and app names are added.

  • featured/impacts *_series arrays carry no dates — index 0 is start_date, one element per day. series: true zips them onto real dates.

  • version_history returns a dict keyed by "YYYY-MM-DD HH:MM:SS UTC", and app_update_history returns [date, {mostly nulls}] pairs. Both flattened.

  • Results are capped at 60 KB with a note telling the caller to narrow the query, because tool output lands directly in a model's context window.

Errors are made actionable, not swallowed

A failing call returns isError with the redacted URL and, where the failure mode is a known trap, a hint:

  • 422 Bundle unsupported bundle: retention → the OpenAPI contract's /v1/facets/metrics?suffix path keys are not bundle values; use retention_monthly.

  • 401 ... is not authorized for the user → a subscription limit, not a bad key. Do not retry.

  • 404 with an HTML body → the path is wrong; several endpoints are iOS-only.

  • 422 App not found. → likely a store id sent to a unified endpoint.

A 422 body enumerates the valid values for whatever you got wrong, and is more authoritative than the OpenAPI contract. It is passed through verbatim.

Development

git clone https://github.com/mike-computer/sensortower_mcp.git
cd sensortower_mcp
npm install            # also builds dist/ via `prepare`
npm test               # build + unit, integration and stdio tests
npm run test:coverage  # same, with an 80% line-coverage floor
npm run inspector      # poke at the tools in the MCP Inspector

The test suite needs no API key and spends no quota: fetch is mocked, and the stdio tests run with no key at all. It covers every tool's exact request URL (a dry-run table that fails if a tool has no case), normalisation against API-shaped fixtures, retry and error-hint behaviour, key lookup order, and a check that the key never appears in any tool output.

test/live.mjs is an opt-in check against the real API. It calls only sensortower_api_usage, which is free:

ST_LIVE=1 SENSORTOWER_API_KEY=your-key node test/live.mjs

Releasing

npm version patch      # or minor / major; also syncs server.json
git push --follow-tags

Pushing the v* tag runs .github/workflows/release.yml. It publishes to npm through Trusted Publishing, with provenance, and then publishes server.json to the MCP Registry.

License

MIT. This is an unofficial project. It is not affiliated with or endorsed by Sensor Tower Inc. "SensorTower" is used only to describe the API this server talks to.

Available Tools

29 tools
sensortower_api_usageSensorTower API quotaA
Read-only

Monthly request quota for your user and organisation. This call is FREE and is the only endpoint that genuinely validates the API key -- /v1/{os}/apps returns 200 with full metadata even for a garbage token, so a revoked key looks healthy there and fails everywhere else. Call this first when anything returns 401.

Inputs: format, dry_run.

sensortower_app_active_usersDAU / WAU / MAUB
Read-only

Active-user estimates for one or more apps over a date range.

Inputs: app_ids (required), end_date (required), start_date (required), os, +6 more.

sensortower_app_demographicsApp audience age and genderA
Read-only

Age and gender split of an app's users, with a category baseline for comparison. This is the App Analysis version and is generally licensed; the Audience Insights equivalent is a separate subscription.

Inputs: app_ids (required), start_date (required), os, limit, +7 more.

sensortower_app_estimatesDownloads and revenue estimatesA
Read-only

Download and revenue estimates per app, country and period. The three per-OS key sets (iOS iu/ir/au/ar, Android u/r, unified spelled out) are collapsed into app_id/country/date/downloads/revenue_usd, and revenue is converted from CENTS to USD. Widen the date range rather than looping: one request covering three months costs exactly what one covering a day costs.

Inputs: app_ids (required), end_date (required), start_date (required), os, +7 more.

sensortower_app_in_app_purchasesTop in-app purchases (iOS only)A
Read-only

The top IAP SKUs for an app, with price and duration. iOS only -- there is no Android path for this endpoint.

Inputs: app_ids (required), limit, fields, format, +2 more.

sensortower_app_metadataApp metadataA
Read-only

Name, publisher, categories, rating, version and -- critically -- the 24-hex unified_app_id that every unified endpoint (overlap, audience insights) requires. Batches up to 100 ids per request. Two traps: this endpoint does NOT validate the API key (a garbage token still returns 200), and an unknown id returns an empty list rather than an error.

Inputs: app_ids (required), os, full, limit, +4 more.

sensortower_app_overlapCross-app audience overlapA
Read-only

Which other apps this app's users also use. Takes a 24-hex unified_app_id ONLY -- a store id returns an empty 200 and still costs a request. Get the unified id from sensortower_app_metadata. The API returns opaque ids; names are resolved for you (one extra request per 100 results).

Inputs: app_id (required), end_date (required), start_date (required), limit, +6 more.

sensortower_app_rankStore category rankA
Read-only

mode=current gives every category rank an app holds right now (one app id). mode=history gives the daily rank series for a specific category and chart type (needs category + chart_type_ids; get valid values from sensortower_reference). An unknown app id returns 422 'App not found.' here, unlike sensortower_app_metadata.

Inputs: app_ids (required), os, mode, limit, +8 more.

sensortower_app_retentionRetention curvesA
Read-only

Cohort retention over daily, weekly or monthly buckets, via /v1/facets/metrics. Note that plain retention is not a valid bundle -- it must be retention_daily, retention_weekly or retention_monthly.

Inputs: app_ids (required), end_date (required), start_date (required), limit, +7 more.

sensortower_app_version_historyVersion and store-listing historyA
Read-only

mode=versions lists app version releases (the API returns a dict keyed by "YYYY-MM-DD HH:MM:SS UTC"; it is flattened here into dated rows, newest first). mode=store_listing lists which store-listing fields changed on which date (the API returns [date, {mostly nulls}] pairs; only the non-null fields are kept).

Inputs: app_id (required), os, full, mode, +6 more.

sensortower_audience_affinityWhat an audience is intoA
Read-only

Affinity of one audience segment for personas, social ad channels, ad categories, advertisers (brands), app categories or other apps. Pick the dimension and this maps it to a valid metric/breakdown pair. MOST OF THESE ARE LICENSED SEPARATELY: a 401 saying 'not authorized for the user' means your subscription does not cover that metric, not that the key is bad -- do not retry, pick another dimension. Note also that breakdown validation runs BEFORE the authorization check, so a 422 tells you nothing about entitlement.

Inputs: end_date (required), dimension (required), segment_id (required), start_date (required), +9 more.

sensortower_audience_demographicsAudience age and genderA
Read-only

The age/gender grid for an audience segment (metric=est_audience_demographic_share, breakdown=age,gender). Shares over the whole segment sum to 1.0. The optional age and gender filters SUBSET WITHOUT RENORMALISING -- filtered rows keep the same values they had in the full grid, so they will not sum to 1. Age values in the response are bucket starts: 18=18-24, 25=25-34, 35=35-44, 45=45-54, 55=55+.

Inputs: end_date (required), segment_id (required), start_date (required), age, +7 more.

sensortower_keyword_historyKeyword rank and traffic over timeC
Read-only

mode=timeseries gives one metric per keyword per day (this path takes metric=, NOT bundle=). mode=rank_overview gives how many of an app's keywords sit in each rank bin (1, 2-3, 4-5, 6-10, ...).

Inputs: app_ids (required), end_date (required), keywords (required), start_date (required), +9 more.

sensortower_keywordsASO keyword researchA
Read-only

by=keyword answers 'which apps rank for this term' (bundle=aso_keyword_research). by=app answers 'which terms does this app rank for' (bundle=aso_top_keywords) -- that bundle defaults to ALPHABETICAL order, so this tool always sends order_by=est_keyword_downloads:desc unless you override it.

Inputs: by, os, limit, fields, +10 more.

sensortower_market_sizeMarket size by dimensionA
Read-only

Market-wide totals sliced by a dimension -- category, region, device, game genre, art style, and so on. metric=store gives downloads and revenue (bundle=mobile_store_estimates), metric=usage gives active users and time spent (bundle=mobile_usage_estimates). Any breakdown ending in ,date needs date_granularity.

Inputs: end_date (required), start_date (required), os, limit, +10 more.

sensortower_ratingsStar ratings over timeC
Read-only

Rating counts and averages. bundle=ratings_incremental gives per-period new ratings; ratings_cumulative gives the running total. Plain ratings is NOT a valid bundle.

Inputs: app_ids (required), end_date (required), start_date (required), limit, +7 more.

sensortower_raw_getRaw SensorTower GETA
Read-only

Escape hatch: any SensorTower path with arbitrary query parameters, raw JSON back. Handles auth, token redaction, gzip and retries. Use this for the ~50 endpoints without a dedicated tool -- ad creatives, network analysis, churn, cohort retention, session metrics, SDK data, webstore revenue, downloads-by-source. Do NOT pass auth_token. Deliberately sending a bogus enum value is the cheapest way to discover the valid ones: the 422 body enumerates them.

Inputs: path (required), params, dry_run, keep_artwork.

sensortower_referenceSensorTower vocabularies (offline)A
Read-onlyIdempotent

Valid category ids, chart types, ad networks, review tags, sentiments, keyword types, audience segment formats and the metric-to-breakdown table -- plus the mapping from the OpenAPI contract's /v1/facets/metrics?suffix path keys to the real bundle= or metric= parameter. Entirely offline: 0 requests. Read this before guessing an enum; every /api/docs/static/*.json file the contract links to is dead.

Inputs: section.

sensortower_review_breakdownReview counts by rating, sentiment or tagA
Read-only

Aggregate review counts. by=rating answers 'how do the stars break down', by=sentiment 'how happy are they', by=tag 'what are they complaining about'. Each accepts a plain breakdown or one prefixed with date, region, language or app_version.

Inputs: app_ids (required), end_date (required), start_date (required), by, +8 more.

sensortower_reviewsIndividual user reviewsA
Read-only

Reviews with rating, sentiment, tags, version and language. The API also returns a parsed_content token dump per review, which is dropped here because it is large and of no use to a reader. Filter with tags/sentiments/rating_filters -- see sensortower_reference for the vocabularies, which the contract does not enumerate.

Inputs: app_id (required), os, page, tags, +11 more.

sensortower_search_adsApple Search Ads share of voiceA
Read-only

by=term: who is buying ads on a search term. by=app: which terms an app buys, with traffic and share of voice. by=history: one app's daily share of voice on one term (the API returns a dict keyed by app-id string; it is flattened here). iOS only -- Apple Search Ads has no Android equivalent.

Inputs: by, term, limit, app_id, +6 more.

sensortower_store_summaryCategory totalsA
Read-only

Category-level download and revenue totals over time -- the whole category, not per-app. games=true switches to the games_breakdown endpoint (same shape, game genres instead of store categories). Revenue converted from cents.

Inputs: end_date (required), categories (required), start_date (required), os, +7 more.

sensortower_top_advertisersTop advertisers and ad publishersA
Read-only

Share-of-voice leaderboard for a network and category. role=advertiser lists who is buying; role=publisher lists who is showing. Supply app_id to look up one app's position instead of the whole board (returns page, rank and sov). Note the network vocabulary is per-endpoint: 'Facebook' is rejected here but valid on network_analysis.

Inputs: date (required), network (required), category (required), os, +10 more.

sensortower_top_appsTop apps by downloads, revenue or active usersA
Read-only

The estimate-based leaderboard. measure=downloads|revenue queries the sales-estimate leaderboard; measure=dau|wau|mau queries the active-user one. Revenue comes back in CENTS and is converted to *_usd here. The 213-key custom_tags blob -- 94% of each row -- is dropped unless you ask for it. On iOS device_type is de-facto required, so it defaults to iphone.

Inputs: date (required), os, limit, fields, +12 more.

sensortower_top_chartsStore top chartA
Read-only

The App Store / Google Play top chart for one category, country and date. The API returns bare app ids in rank order with no names and no rank numbers -- both are added here. Get valid category and chart_type values from sensortower_reference; a bad value returns a 422 whose body is PLAIN TEXT listing the valid ones.

Inputs: date (required), category (required), os, limit, +6 more.

sensortower_top_creativesTop ad creativesB
Read-only

The most-seen ad creatives for a network and category. Payloads are large and full of asset URLs -- use fields/limit aggressively.

Inputs: date (required), network (required), category (required), os, +8 more.

sensortower_top_publishersTop publishersB
Read-only

Publisher-level leaderboard by downloads or revenue. Each row nests an apps[] array, and custom_tags hides inside those nested app records too -- both levels are stripped unless keep_custom_tags is set.

Inputs: date (required), category (required), os, limit, +11 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 29 tools

    Disambiguation4/5

    Each tool maps to a distinct resource+action, and the descriptions explicitly pre-empt the trickiest overlaps (app_demographics vs audience_demographics licensing split, reviews vs ratings vs review_breakdown, app_active_users vs top_apps leaderboards). A few boundaries remain thin (app_retention vs app_active_users, featured vs featured_history) but descriptions make them selectable.

    Naming Consistency5/5

    Every tool uses a uniform sensortower_ snake_case prefix followed by a readable noun phrase, with grouping prefixes (app_*, top_*, audience_*, keyword*) that telegraph the resource family. No mixed conventions or ambiguous verbs anywhere.

    Tool Count3/5

    29 tools is on the heavy side, but the descriptions justify most of them as distinct curated endpoints over a very large analytics API, with sensortower_raw_get explicitly serving the ~50 uncovered endpoints. Still, at nearly 30 dedicated tools it sits above the comfortable range and invites selection errors.

    Completeness5/5

    The surface covers apps, estimates, ranks, demographics, retention, IAP, overlap, charts, leaderboards, publishers, store/market aggregates, advertisers/creatives, featured, keywords, reviews/ratings, search ads and audience segments. The raw_get escape hatch plus the offline reference tool close any residual gaps.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides live App Store rankings, charts, app details, reviews, and search across 55 countries, enabling AI assistants to query app store data.
      25 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Provides App Store Optimization tools for AI agents, enabling app lookup, keyword research, ASO audit, review mining, and revenue estimation across iOS and Google Play.
      43
      99 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Wraps the 42matters App Market Data API to let AI agents look up app details, search app stores, fetch ranked top charts, and find apps integrating specific SDKs across Android and iOS.
      288 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to query live App Store and Google Play data — keyword demand, rank history, top charts, competitor sets, reviews and ratings — across 100+ countries, directly inside a chat instead of a dashboard. Exposes 35 read-only tools covering app search, ASO keyword profiling, ranking trajectories, and worldwide market comparisons through a remote OAuth-authenticated endpoint.
      3
      MIT