Logo di Sensor Tower MCP 服务器

Sensor Tower MCP 服务器

Community
virusimmortal00

MCP Server for connecting to the Sensor Tower APIs

Pubblicato davirusimmortal00
Repositorysensortower-mcp
LinguaPython
Fork
3
Stelle
17
Strumenti disponibili
0
Tipo di trasportostdio, streamable-http
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Sensor Tower MCP 服务器 mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • Strumenti disponibili: 0

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni se il server li fornisce.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse della comunità open source

    Stelle: 17; fork: 3 (repository collegato).

Sensor Tower MCP Server

An MCP server that lets agents use Sensor Tower APIs for ads, market, and utility data—no custom HTTP clients needed.

Features

  • FastMCP-based MCP server with structured tool registration.
  • Coverage for App Analysis, Market Analysis, Store Marketing, Usage Intelligence, and utility endpoints.
  • Built-in input normalization for common parameter issues (e.g., ad network aliases).
  • Bundled OpenAPI specifications (swaggerdocs/) for reference and validation.

Requirements

  • Python 3.10+
  • Sensor Tower API token (SENSOR_TOWER_API_TOKEN environment variable)
  • (Optional) Docker for container-based deployment

Quick Start

  1. Install dependencies and the package:
    bash
    uv sync  # or: pip install -e .[test]
  2. Export your API token:
    bash
    export SENSOR_TOWER_API_TOKEN="st_xxxxxxxxx"
  3. Launch the MCP server:
    bash
    python -m sensortower_mcp.server
    The FastMCP CLI will expose the registered tools to your orchestrator.

Client setup (Cursor, Claude, Docker)

Cursor

  • Settings → MCP → Add Server → Command:
    • Command: python
    • Arguments: -m sensortower_mcp.server
    • Env: set SENSOR_TOWER_API_TOKEN

Example JSON (if Cursor asks for a block):

json
{
  "name": "sensortower",
  "command": "python",
  "args": ["-m", "sensortower_mcp.server"],
  "env": { "SENSOR_TOWER_API_TOKEN": "st_xxxxxxxxx" }
}

Claude (Desktop/Web with MCP)

  • Add a custom MCP server in Settings → Integrations → Model Context Protocol.
  • Use the same command/args/env as above.

Minimal config snippet some clients accept:

json
{
  "mcpServers": {
    "sensortower": {
      "command": "python",
      "args": ["-m", "sensortower_mcp.server"],
      "env": { "SENSOR_TOWER_API_TOKEN": "st_xxxxxxxxx" }
    }
  }
}

Docker

Build and run the server container locally:

bash
docker build -t sensortower-mcp .
docker run --rm \
  -e SENSOR_TOWER_API_TOKEN=st_xxxxxxxxx \
  -p 8666:8666 \
  sensortower-mcp

Or with Compose (uses docker-compose.yml):

bash
docker compose up -d

Then point your MCP client at the local command as usual, or at http://localhost:8666 if your client supports HTTP MCP transport.

HTTP Invocation Shortcut

When exercising the server over HTTP without a JSON-RPC session, target the legacy gateway exposed at /legacy/tools/invoke:

bash
curl \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -X POST "http://localhost:8666/legacy/tools/invoke" \
  -d '{
        "tool": "get_creatives",
        "arguments": {
          "os": "ios",
          "app_ids": "835599320",
          "start_date": "2023-01-01",
          "end_date": "2023-01-31",
          "countries": "US",
          "networks": "Instagram,Unity",
          "ad_types": "video"
        }
      }'

The endpoint always responds with { "tool": "<name>", "result": <structured payload> }. The combined Accept header is mandatory because FastMCP's HTTP transport performs content negotiation that requires both application/json and text/event-stream to be present; omitting it can yield 406 errors in some clients. The server automatically widens overly strict Accept values from known MCP clients, but external tooling should set the header explicitly to avoid regression issues.

Usage Example

Calling the creatives tool from FastMCP requires the ad_types parameter, which Sensor Tower marks as mandatory:

python
from fastmcp import FastMCP
from sensortower_mcp.server import build_server

mcp = FastMCP("sensortower")
server = build_server(api_token="st_xxxxxxxxx")
server.register(mcp)

result = mcp.invoke_tool(
    "get_creatives",
    {
        "os": "ios",
        "app_ids": "284882215",
        "start_date": "2024-01-01",
        "countries": "US",
        "networks": "Instagram",
        "ad_types": "video"
    }
)

Testing

Install the testing extras and exercise the suites using uv (preferred) or the active virtualenv:

bash
uv sync --extra test
uv run pytest tests/test_result_normalization.py  # fast structural sanity check
uv run pytest                                     # full offline suite

Live API exercises are marked with @pytest.mark.live_api and require a valid SENSOR_TOWER_API_TOKEN. Execute only that suite with:

bash
uv run pytest -m live_api

The MCP server must be running locally (see Quick Start), and HTTP callers should send Accept: application/json, text/event-stream—or use the legacy gateway, which automatically normalizes the header when known MCP clients connect.

Manual smoke scripts that hit the deployed package or raw MCP transports have been moved to manual/. They are not part of automated CI but remain available for ad-hoc verification:

  • manual/search_entities_fix.py – verifies the published package’s search_entities helper.
  • manual/search_entities_mcp.py – end-to-end JSON-RPC smoke test for search_entities.

Run them with python manual/<script>.py; each script prints a summary and exits 0/1 accordingly.

See docs/testing.md for the full test matrix, CI recommendations, and troubleshooting tips.

Release Highlights

  • 1.2.10: Expands tool docstrings with metadata-driven usage hints so MCP clients surface examples and notes without extra manual edits.
  • 1.2.1: Ensures get_creatives forwards the required ad_types query parameter, preventing 422 responses from Sensor Tower. Adds regression coverage so missing parameters are detected before release.

Contributing

Issues and merge requests are welcome. Please include tests for bug fixes and keep API examples in the README and README-pypi.md synchronized.

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "virusimmortal00-sensortower-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sensortower-mcp"
      ]
    }
  }
}

Usa Sensor Tower MCP 服务器 MCP con più modelli AI

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Sensor Tower MCP 服务器, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Puoi eseguire MCP localmente sul tuo dispositivo o connetterti all'URL di un server MCP remoto.

Opzione 1: usa il connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura connettore.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura connettore e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con l’opzione «Questo dispositivo» selezionata
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Sensor Tower MCP 服务器 come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Sensor Tower MCP 服务器.
  4. Salva l'elenco dei server.
  5. Se vuoi verificare che il connettore sia ancora pronto, aggiorna la pagina.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "virusimmortal00-sensortower-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sensortower-mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Sensor Tower MCP 服务器, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Sensor Tower MCP 服务器.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Sensor Tower MCP 服务器 per aiutarmi con questa attività?
Sensor Tower MCP 服务器
Certo. L’ho letto.
Ecco cosa ho trovato con Sensor Tower MCP 服务器.

Opzione 2: aggiungi l'URL di un server MCP

Usa questo metodo se Sensor Tower MCP 服务器 è già ospitato in remoto o se il tuo team vuole un unico connettore condiviso accessibile a più utenti.

1

Apri Connettori MCP

In TypingMind, vai su Plugin, apri Connettori MCP e scegli Aggiungi URL.

  1. Apri TypingMind nel tuo browser.
  2. Vai a Plugin.
  3. Apri Connettori MCP.
  4. Fai clic su Aggiungi URL.
Modulo di TypingMind per aggiungere l'URL di un server MCP personalizzato
2

Incolla l'URL del server

Inserisci URL del tuo server nel campo URL del server. Aggiungi un nome per la connessione, una descrizione, un'icona, header HTTP personalizzati o le impostazioni del client OAuth se richiesti dal server.

  1. Incolla URL del tuo server nel campo URL del server.
  2. Inserisci un nome per la connessione a Sensor Tower MCP 服务器.
  3. Se vuoi riconoscere più facilmente la connessione, aggiungi una descrizione e un’icona.
  4. Aggiungi header HTTP personalizzati o i dati del client OAuth se il server richiede l'autenticazione.
3

Crea la connessione

Fai clic su Crea connessione, poi torna all'elenco dei plugin e verifica che la nuova connessione MCP sia attiva.

  1. Fai clic su Crea connessione.
  2. Torna all'elenco dei connettori MCP.
  3. Verifica che la connessione Sensor Tower MCP 服务器 risulti attiva.
  4. Aggiorna l'elenco dei plugin se la connessione non appare subito.
4

Cambia modello senza dover ristabilire la connessione MCP

Avvia una chat con il tuo modello preferito, abilita gli strumenti di Sensor Tower MCP 服务器 dalla sezione Plugin e passa a un altro modello quando serve. La connessione MCP rimane disponibile nell'area di lavoro di TypingMind.

  1. Avvia una nuova chat in TypingMind.
  2. Seleziona il modello IA che vuoi usare.
  3. Abilita gli strumenti di Sensor Tower MCP 服务器 dalla sezione Plugin.
  4. Chiedi al modello di usare lo strumento quando serve.
  5. Passa a un altro modello IA e riutilizza la stessa connessione MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Sensor Tower MCP 服务器 per aiutarmi con questa attività?
Sensor Tower MCP 服务器
Certo. L’ho letto.
Ecco cosa ho trovato con Sensor Tower MCP 服务器.

Domande frequenti

A cosa serve il server MCP Sensor Tower MCP 服务器?

Sensor Tower MCP 服务器 è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare il server MCP Sensor Tower MCP 服务器 con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Sensor Tower MCP 服务器 con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Sensor Tower MCP 服务器 con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Sensor Tower MCP 服务器, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego il server MCP Sensor Tower MCP 服务器 a TypingMind?

Puoi collegare Sensor Tower MCP 服务器 a TypingMind con il connettore MCP locale oppure aggiungendo l'URL di un server MCP remoto. Usa il connettore locale quando il server deve accedere a file, app o risorse private sul tuo dispositivo; usa invece l'URL del server quando il server MCP è ospitato in remoto.

Quali strumenti offre il server MCP Sensor Tower MCP 服务器 in TypingMind?

Sensor Tower MCP 服务器 mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare il server MCP Sensor Tower MCP 服务器?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Sensor Tower MCP 服务器 richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇