mcp-server-subito-scraper
This server lets you scrape and search Subito.it classified ads via Apify, manage scraped data, and validate the Apify account.
subito_search: Search Subito.it by keyword, category, region, price range, and shipping availability; sort results and limit item count.
subito_scrape_by_url: Scrape ads directly from a given Subito.it search URL.
subito_get_dataset_items: Retrieve previously scraped results from an Apify dataset with pagination.
apify_check_status: Validate the Apify API token and check account status.
Allows searching and scraping classified ads on Vinted (Italy and Europe) via an Apify Actor, enabling retrieval of listings from the platform.
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., "@mcp-server-subito-scrapercerca iPhone 14 in Lombardia sotto 800โฌ"
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.
Subito.it MCP Server (via Apify)
TypeScript-based MCP (Model Context Protocol) server for searching and scraping listings from Subito.it using the Apify Actor azzouzana/subito-scraper-pro-by-search-url.
Instantly executable with npx on any MCP-compatible client (Claude Desktop, Cursor, Gemini Antigravity, Windsurf, VS Code, etc.).
๐ Key Features
๐ Run with
npx, no global install: ready to use withnpx -y mcp-server-subito-scraper.๐ฎ๐น Full support for all Subito.it categories: Motors (cars, motorcycles), Real Estate (sale/rent), Electronics/IT, Phones, Furniture, Jobs, and General Marketplace.
๐ Smart search (
subito_search): Automatically generates URLs with filters for query, category, region, min/max price, and TuttoSubito shipping (shp=true).๐ Direct URL scraping (
subito_scrape_by_url): Paste any URL with complex filters applied directly from the site.๐ฆ Dataset retrieval (
subito_get_dataset_items): View and extract results from previously created Apify datasets.๐ Flexible Token Configuration: Via environment variable (
APIFY_TOKEN), command-line parameter (--token), or directly in the prompt/tool.
Related MCP server: MCP Apify
๐ Getting an Apify Token
Create a free account at Apify.com.
Go to Settings > Integrations > API Tokens or console.apify.com/settings/integrations.
Copy your Personal API Token (e.g.
apify_api_...).
๐ ๏ธ Configuration in MCP Clients
1. Claude Desktop
Add the configuration to the claude_desktop_config.json file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"subito-scraper": {
"command": "npx",
"args": ["-y", "mcp-server-subito-scraper"],
"env": {
"APIFY_TOKEN": "IL_TUO_TOKEN_APIFY_QUI"
}
}
}
}Alternatively, passing the token as a CLI argument:
{
"mcpServers": {
"subito-scraper": {
"command": "npx",
"args": ["-y", "mcp-server-subito-scraper", "--token", "IL_TUO_TOKEN_APIFY_QUI"]
}
}
}2. Cursor / Windsurf
In the client's MCP settings:
{
"subito-scraper": {
"command": "npx",
"args": ["-y", "mcp-server-subito-scraper"],
"env": {
"APIFY_TOKEN": "IL_TUO_TOKEN_APIFY_QUI"
}
}
}3. Gemini Antigravity / Agentic IDE
Add the MCP configuration block in the mcpServers section:
{
"mcpServers": {
"subito-scraper": {
"command": "npx",
"args": ["-y", "mcp-server-subito-scraper"],
"env": {
"APIFY_TOKEN": "IL_TUO_TOKEN_APIFY_QUI"
}
}
}
}๐งฐ Available Tools
1. subito_search
Automatically builds the Subito URL and runs the scraper.
Parameter | Type | Description | Default |
|
| Search text (e.g. | - |
|
| Category (e.g. |
|
|
| Italian region (e.g. |
|
|
| Minimum price in Euros | - |
|
| Maximum price in Euros | - |
|
| Filter only listings with TuttoSubito shipping |
|
|
| Sorting: |
|
|
| Maximum number of listings to extract |
|
|
| Maximum execution timeout in seconds |
|
|
| Apify token (overrides the environment one) | - |
2. subito_scrape_by_url
Scrapes from a ready-made direct search URL.
Parameter | Type | Description | Default |
|
| Full Subito.it search URL | - |
|
| Maximum number of listings to extract |
|
|
| Timeout in seconds |
|
|
| Custom Apify token | - |
3. subito_get_dataset_items
Retrieves extracted data from a previously saved Apify dataset.
Parameter | Type | Description | Default |
|
| Apify dataset ID | - |
|
| Number of items to read |
|
|
| Offset for pagination |
|
|
| Apify token | - |
4. apify_check_status
Checks that the Apify token is valid and displays account information.
๐ป Local Development and Compilation
If you want to clone and modify the server locally:
# 1. Clona il repository
git clone https://github.com/pindaroli/mcp-server-subito-scraper.git
cd mcp-server-subito-scraper
# 2. Installa le dipendenze
npm install
# 3. Compila il codice TypeScript
npm run build
# 4. Esegui in modalitร test
APIFY_TOKEN=tuo_token_qui npm startOr in development mode with hot reload:
APIFY_TOKEN=tuo_token_qui npm run dev๐ Publishing to NPM and GitHub
To publish the package and make it available to everyone via npx mcp-server-subito-scraper:
# Esegui il login a npm
npm login
# Pubblica il pacchetto
npm publish --access public๐ License
This project is distributed under the MIT license. See the LICENSE file for details.
Disclaimer: This MCP server is not officially affiliated with, sponsored, or endorsed by Subito.it S.r.l. All trademarks belong to their respective owners.
Available Tools
4 toolsapify_check_statusB
Checks the status of the Apify account and validates the API token
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Optional Apify API Token to test |
TDQS
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.
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.
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.
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.
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.
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
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Limit number of items to fetch | |
| token | No | Optional Apify API Token | |
| offset | No | Offset for pagination | |
| datasetId | Yes | The Apify Dataset ID to fetch items from |
TDQS
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.
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.
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.
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.
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.
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)
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Optional Apify API Token (overrides APIFY_TOKEN environment variable) | |
| maxItems | No | Maximum number of ads/listings to retrieve (default: 30) | |
| searchUrl | Yes | Full Subito.it search URL to scrape (e.g. "https://www.subito.it/annunci-italia/vendita/usato/?q=iphone+15") | |
| timeoutSecs | No | Timeout in seconds for Apify Actor execution (default: 300) |
TDQS
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.
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.
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.
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.
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.
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.
subito_searchB
Searches Subito.it for ads by keywords, category, region, price range, and shipping, then scrapes the results via Apify
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query keyword (e.g. "MacBook Pro M3", "BMW 320d", "Appartamento centro") | |
| token | No | Optional Apify API Token (overrides APIFY_TOKEN environment variable) | |
| region | No | Italian region: "italia" (all Italy), "lombardia", "lazio", "campania", "veneto", "piemonte", "emilia-romagna", "toscana", "sicilia", "puglia", etc. | italia |
| sortBy | No | Sorting order: "datedesc" (most recent), "priceasc" (cheapest), "pricedesc" (most expensive), "relevance" | datedesc |
| category | No | Category on Subito.it: "usato", "auto", "moto", "accessori-auto", "accessori-moto", "case", "appartamenti", "immobili-affitto", "informatica", "telefonia", "audio-video", "fotografia", "videogiochi", "elettrodomestici", "arredamento", "abbigliamento", "orologi", "sport", "biciclette", "musica", "libri", "collezionismo", "lavoro" | usato |
| maxItems | No | Maximum number of listings to retrieve (default: 30) | |
| maxPrice | No | Maximum price in EUR (optional) | |
| minPrice | No | Minimum price in EUR (optional) | |
| timeoutSecs | No | Timeout in seconds for Apify Actor execution | |
| shippingOnly | No | If true, filters only listings with TuttoSubito shipping available |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It only states that the tool 'scrapes the results via Apify' without clarifying the scraping mechanism, potential delays (though timeoutSecs exists), rate limits, error behavior, or whether the operation is purely read-only. The description adds minimal behavioral context beyond what a user could guess from the name and parameters.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that front-loads the core action and key filtering dimensions. Every word carries meaning, with no redundancy or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has 10 parameters and no output schema, yet the description omits details about the result format, pagination behavior, or what information each scraped ad provides. It also fails to explain the role of Apify (external dependency, potential costs) or the significance of the timeout parameter. For a complex search-and-scrape tool, this is insufficient context for an AI agent to reliably interpret results or handle edge cases.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description mentions general parameter categories (keywords, category, region, etc.) but does not add semantic detail beyond what the schema already provides for each parameter (e.g., how the price range interacts with sorting, or the relationship between region and query scope). The description is adequate but not enriching.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses specific verbs ('Searches', 'scrapes') and identifies the resource ('Subito.it for ads'). It name-checks the key filtering dimensions (keywords, category, region, price range, shipping) and distinguishes the tool from siblings like subito_scrape_by_url (which handles URL-based scraping) and subito_get_dataset_items (which retrieves stored results).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not provide any guidance on when to use this tool versus the listed siblings. It implies general search usage but offers no explicit context for preferring subito_search over subito_scrape_by_url or apify_check_status, nor does it mention any prerequisites or limitations.
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.
4 tool updates
v1.0.0- First observed
apify_check_status - First observed
subito_get_dataset_items - First observed
subito_scrape_by_url - First observed
subito_search
TDQS
Scored across 4 tools
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).
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.
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.
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
Related MCP Connectors
Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store โก
Extract emails and phones from any website via Apify.
Scrape and analyze public LinkedIn posts as structured JSON via the Apify LinkedIn Posts API.
YouTube transcripts, subtitles, and video metadata as structured JSON via an Apify Actor.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to search Reddit for posts, comments, and users or monitor for high-intent leads and brand mentions. It functions by delegating scraping tasks to high-performance Apify cloud actors.227 npm7MIT
- AlicenseBqualityFmaintenanceEnables AI assistants to interact with the Apify platform to manage actors, monitor runs, and retrieve scraped data from datasets. It supports natural language commands for executing web scrapers, managing tasks, and accessing key-value stores.28MIT
- AlicenseAqualityCmaintenanceEnables searching and retrieving details from OLX classifieds across multiple domains (Portugal, Poland, Bulgaria, Romania, Ukraine) using browser automation.237 npm22MIT
- AlicenseNot gradedqualityDmaintenanceEnables web scraping, browser automation, and dataset management through Apify's actor platform.MIT