Skip to main content
Glama
mcp-server-subito-scraper

mcp-server-subito-scraper

by pindaroli

Oli II Hands Searcher MCP Server

License: MIT Node.js Model Context Protocol M8ven Score

Monorepo TypeScript basato su NPM Workspaces per lo sviluppo, test e deployment di molteplici server MCP (Model Context Protocol).


๐Ÿ“ Struttura del Repository

oli-II-Hands-searcher-mcp-server/
โ”œโ”€โ”€ package.json                 # Configurazione root e script globali (NPM Workspaces)
โ”œโ”€โ”€ tsconfig.base.json           # Configurazione TypeScript condivisa
โ”œโ”€โ”€ mcp_config.json              # Configurazione client MCP con tutti i server registrati
โ”œโ”€โ”€ hardware_rules.json          # Database centrale di regole hardware sincrone
โ”œโ”€โ”€ wiki/                        # ๐Ÿ“š Documentazione & Wiki ufficiale del progetto
โ”‚   โ”œโ”€โ”€ Home.md                  # Portale principale del Wiki
โ”‚   โ”œโ”€โ”€ architettura-monorepo.md # Architettura NPM Workspaces e flusso MCP
โ”‚   โ”œโ”€โ”€ regole-hardware.md       # Matrice ortogonale e regole Zero Assunzioni
โ”‚   โ”œโ”€โ”€ semantic-routing-e-prompting.md # Routing automatico e prompt
โ”‚   โ”œโ”€โ”€ server-scraper.md        # Scraper Vinted, Subito.it, Wallapop
โ”‚   โ”œโ”€โ”€ ai-vision-inspector.md   # Pipeline a 3 fasi e ispezione multimodale
โ”‚   โ””โ”€โ”€ guida-sviluppo-e-testing.md # Build, testing ed estensione
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ README.md                    # Questo file
โ”‚
โ””โ”€โ”€ packages/                    # Directory contenente i singoli server MCP
    โ”œโ”€โ”€ shared-mcp-utils/        # Utility condivise, prompt e regole hardware
    โ”œโ”€โ”€ subito-scraper/          # Server MCP per scraping Subito.it (via Apify)
    โ”œโ”€โ”€ vinted-scraper/          # Server MCP per scraping Vinted (via Apify)
    โ””โ”€โ”€ wallapop-scraper/        # Server MCP per scraping Wallapop (via Apify)

Related MCP server: OLX MCP Server

๐Ÿ“š Documentazione & Wiki Ufficiale

Per la documentazione completa e approfondita, consulta il Wiki del Progetto.


๐Ÿ“ฆ Server MCP Disponibili

Server

Directory

Descrizione

mcp-server-subito-scraper

packages/subito-scraper

Ricerca e scraping di annunci su Subito.it tramite Apify Actor.

mcp-server-vinted-scraper

packages/vinted-scraper

Ricerca e scraping di annunci su Vinted (Italia ed Europa) tramite Apify Actor.

mcp-server-wallapop-scraper

packages/wallapop-scraper

Ricerca e scraping di annunci su Wallapop (Italia e Spagna) tramite Apify Actor.

shared-mcp-utils

packages/shared-mcp-utils

Prompting specializzato, AI Inspector e moduli di regole per la validazione hardware.


๐Ÿš€ Guida Rapida

1. Installazione Dipendenze

Installa le dipendenze per tutti i workspace con un unico comando:

npm install

2. Compilazione

Compila tutti i server MCP nel monorepo:

npm run build

Per compilare solo un server specifico:

npm run build:subito
# oppure:
npm run build -w mcp-server-subito-scraper

3. Test

Esegui i test su tutti i server:

npm test

Esegui i test per un server specifico:

npm run test:subito
# Test di integrazione MCP con connessione Stdio:
npm run test:mcp -w mcp-server-subito-scraper

โž• Come Aggiungere un Nuovo Server MCP

Aggiungere un nuovo server MCP al monorepo รจ semplicissimo:

  1. Crea la cartella del nuovo server:

    mkdir -p packages/mio-nuovo-server/src packages/mio-nuovo-server/test
  2. Crea il package.json in packages/mio-nuovo-server/package.json:

    {
      "name": "mcp-server-mio-nuovo-server",
      "version": "1.0.0",
      "type": "module",
      "main": "dist/index.js",
      "types": "dist/index.d.ts",
      "bin": {
        "mcp-server-mio-nuovo-server": "./dist/index.js"
      },
      "scripts": {
        "build": "tsc && chmod +x dist/index.js",
        "watch": "tsc --watch",
        "test": "tsx test/index.test.ts",
        "dev": "tsx src/index.ts",
        "start": "node dist/index.js"
      },
      "dependencies": {
        "@modelcontextprotocol/sdk": "^1.12.0",
        "dotenv": "^16.4.7",
        "zod": "^3.24.2"
      }
    }
  3. Crea il tsconfig.json in packages/mio-nuovo-server/tsconfig.json:

    {
      "extends": "../../tsconfig.base.json",
      "compilerOptions": {
        "outDir": "./dist",
        "rootDir": "./src"
      },
      "include": ["src/**/*"],
      "exclude": ["node_modules", "dist"]
    }
  4. Installa e Compila:

    npm install
    npm run build
  5. Aggiungi la configurazione in mcp_config.json.


๐Ÿ› ๏ธ Configurazione Client MCP (Claude Desktop / Antigravity / Cursor)

Usa la configurazione aggregata mcp_config.json per registrare i server nei tuoi client:

{
  "mcpServers": {
    "subito-scraper": {
      "command": "node",
      "args": [
        "/Users/olindo/prj/oli-II-Hands-searcher-mcp-server/packages/subito-scraper/dist/index.js"
      ],
      "env": {
        "APIFY_TOKEN": "il_tuo_token_apify",
        "HARDWARE_RULES_DIR": "/Users/olindo/prj/oli-II-Hands-searcher-mcp-server/packages/shared-mcp-utils/dist/rules"
      }
    },
    "vinted-scraper": {
      "command": "node",
      "args": [
        "/Users/olindo/prj/oli-II-Hands-searcher-mcp-server/packages/vinted-scraper/dist/index.js"
      ],
      "env": {
        "APIFY_TOKEN": "il_tuo_token_apify",
        "HARDWARE_RULES_DIR": "/Users/olindo/prj/oli-II-Hands-searcher-mcp-server/packages/shared-mcp-utils/dist/rules"
      }
    }
  }
}

๐Ÿ“„ Licenza

MIT ยฉ Olindo

Available Tools

4 tools
apify_check_statusB

Checks the status of the Apify account and validates the API token

NameRequiredDescriptionDefault
tokenNoOptional Apify API Token to test

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It only mentions checking status and validating a token, but does not state whether the tool is read-only, what it returns, or any side effects. For a tool with no annotations, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that is front-loaded and free of extraneous words. It conveys the core purpose efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema, so the description should explain what the agent can expect as a response (e.g., success/failure, account details). It does not, leaving a significant gap in understanding the tool's behavior. Given the simplicity of the tool (1 optional param), a more complete description is expected.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single parameter 'token' with a basic description. The description adds value by explaining that the tool validates the token, which goes beyond the schema's 'Optional Apify API Token to test' โ€“ it implies the token is tested for validity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Checks the status of the Apify account and validates the API token.' It uses specific verbs ('checks', 'validates') and a specific resource ('Apify account', 'API token'), distinguishing it from sibling tools that deal with scraping and searching.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, no prerequisites, and no context about when a status check is appropriate. It is purely a statement of function without usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

subito_get_dataset_itemsC

Fetches scraped items from a previously generated Apify dataset ID

NameRequiredDescriptionDefault
limitNoLimit number of items to fetch
tokenNoOptional Apify API Token
offsetNoOffset for pagination
datasetIdYesThe Apify Dataset ID to fetch items from

TDQS

C2.8/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description adds no behavioral context. It fails to disclose any notable traits such as authentication requirements (token is optional), rate limits, pagination behavior, error handling, or what happens if the datasetId is invalid. The agent has no insight into side effects or restrictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence, which is concise but overly minimal. It is front-loaded with the key action, but it lacks any structure or additional information. Every sentence should earn its place, and this one is too sparse to be considered efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description should cover return values, prerequisites, and pagination behavior. It does not mention that the dataset must already exist from a previous scrape, nor does it describe the format of the returned items. This is insufficient for a tool with four parameters and pagination.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the input schema already describes all four parameters. The description adds no additional meaning beyond the schema. While it does not repeat the schema, it also does not explain how parameters like offset and limit relate for pagination, which would be helpful.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('fetches scraped items') and the resource ('from a previously generated Apify dataset ID'). It distinguishes this tool from siblings like subito_scrape_by_url (scraping) and subito_search (searching) by focusing on existing datasets.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. It does not mention that it should be used after scraping, nor does it explain when to use subito_search or apify_check_status instead. No exclusions or prerequisites are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

subito_scrape_by_urlB

Scrapes classified ads directly from a Subito.it search URL using Apify Actor (azzouzana/subito-scraper-pro-by-search-url)

NameRequiredDescriptionDefault
tokenNoOptional Apify API Token (overrides APIFY_TOKEN environment variable)
maxItemsNoMaximum number of ads/listings to retrieve (default: 30)
searchUrlYesFull Subito.it search URL to scrape (e.g. "https://www.subito.it/annunci-italia/vendita/usato/?q=iphone+15")
timeoutSecsNoTimeout in seconds for Apify Actor execution (default: 300)

TDQS

B3.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description must fully disclose behavioral traits. It mentions the use of an Apify Actor and provides parameters like timeout, which hints at asynchronous behavior. However, it does not disclose whether the tool is synchronous or asynchronous, if it returns results directly or only initiates a run, or what happens on failure (e.g., invalid URL, Actor timeout). The description is adequate but leaves gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, compact sentence that conveys the core purpose and implementation. It wastes no words and is easy to parse. This is exemplary conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has no output schema, 4 parameters, and no annotations, the description is too brief. It does not explain the return format (e.g., what the scraped data looks like), error behavior, or how to handle the Apify Actor lifecycle (e.g., need to check status or get dataset items separately). The presence of sibling tools like 'apify_check_status' and 'subito_get_dataset_items' suggests a pipeline, but the description does not connect them.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% (all 4 parameters have descriptions). The tool description adds no additional parameter details, but the schema itself is complete and clear. The baseline is 3 per the rubric; the description includes the full search URL format example, which adds marginal value. Thus a score of 4 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('scrapes classified ads'), the specific source ('directly from a Subito.it search URL'), and the implementation ('using Apify Actor'). The name 'subito_scrape_by_url' reinforces this. While the purpose is clear, it does not explicitly distinguish from siblings like 'subito_search' which might serve a similar but different purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'subito_search' or 'subito_get_dataset_items'. It does not mention prerequisites (e.g., valid search URL format), when not to use it, or what to do after scraping (e.g., check status or retrieve items). The agent is left to infer usage from context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 4 tool updatesv1.0.0
    • First observedapify_check_status
    • First observedsubito_get_dataset_items
    • First observedsubito_scrape_by_url
    • First observedsubito_search

TDQS

B3.3/5.0

Scored across 4 tools

Disambiguation4/5

Each tool targets a distinct aspect: scraping by URL vs. by search parameters, checking account status, and retrieving dataset items. There is slight potential confusion between subito_scrape_by_url and subito_search, but their descriptions clarify the difference (URL vs. keyword-based).

Naming Consistency4/5

Tool names use a consistent verb_noun pattern with a domain prefix (subito_). Names are descriptive and follow a predictable structure, though subito_search could optionally be subito_search_by_keywords for perfect parallelism with subito_scrape_by_url.

Tool Count5/5

Four tools are appropriate for a focused scraping server: two scraping methods, one status check, and one data retrieval tool. Each tool has a clear purpose and no unnecessary bloat.

Completeness3/5

The tool surface covers scraping, search, status checking, and data retrieval, but lacks ability to list or manage datasets (e.g., delete old datasets). An agent scraping multiple times may accumulate datasets without cleanup, which is a notable gap.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues

Related MCP Connectors

Related MCP Servers