olx-mcp-api
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., "@olx-mcp-api search for a used bike in Warsaw under 500 zł"
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.
olx-mcp-api
An MCP (Model Context Protocol) server for OLX classifieds, using the public JSON API that OLX itself uses — no browser automation, no HTML parsing, no authentication required.
Works with any OLX locale: olx.pl, olx.ro, olx.pt, olx.bg, olx.ua.
Tools
Tool | Endpoint | Description |
|
| Search by phrase, category, region/city/district + radius, price range, private/business seller, sorting, pagination (up to 50/page, ~1000 total) |
|
| Full description, all photos, parameters, seller info |
|
| Experimental. Converts an OLX search URL (e.g. |
Responses are trimmed to a compact format to reduce token usage.
Related MCP server: pik-mcp
Quick Start (npx — no installation needed)
The easiest way to use this server is with npx. No cloning or building required.
Claude Desktop
Edit the Claude Desktop config file for your OS:
OS | Path |
macOS |
|
Windows |
|
Linux |
|
{
"mcpServers": {
"olx": {
"command": "npx",
"args": ["-y", "github:explicite/olx-mcp-api"],
"env": { "OLX_BASE_URL": "https://www.olx.pl" }
}
}
}Claude CLI
Add to ~/.claude/settings.json:
{
"mcpServers": {
"olx": {
"command": "npx",
"args": ["-y", "github:explicite/olx-mcp-api"],
"env": { "OLX_BASE_URL": "https://www.olx.pl" }
}
}
}Restart Claude Desktop / Claude CLI after saving.
Manual Installation (from source)
git clone https://github.com/explicite/olx-mcp-api.git
cd olx-mcp-api
npm install
npm run build
npm testThen use the local path in your config:
{
"mcpServers": {
"olx": {
"command": "node",
"args": ["/absolute/path/to/olx-mcp-api/dist/index.js"],
"env": { "OLX_BASE_URL": "https://www.olx.pl" }
}
}
}Windows path example: C:\\Users\\yourname\\src\\olx-mcp-api\\dist\\index.js
OLX_BASE_URL
Change the base URL to target a different OLX country:
Value | Country |
| Poland (default) |
| Romania |
| Portugal |
| Bulgaria |
| Ukraine |
Requirements
Node.js 18 or later (for manual install)
For
npxusage: Node.js 18+ with npm
Limitations
Phone numbers (
/offers/{id}/limited-phones/) require a logged-in session — not supported.get_offertakes a numericidfrom search results, not the ID embedded in the HTML link (...-IDxxxx.html).This uses the unofficial frontend API. It may change without notice. The official OLX Partner API is available but requires OAuth app registration and is intended for managing your own listings.
License
MIT
Available Tools
3 toolsget_offerSzczegóły ogłoszenia OLXA
Full details of one offer by its numeric id (the "id" from search_offers): description, all photos, params, seller.
Inputs: id (required).
resolve_olx_urlZamień link OLX na parametryA
Convert an olx.pl search URL or path (e.g. "https://www.olx.pl/elektronika/krakow/q-lutownica/?search[dist]=30") into API params (category_id, city_id, region_id, filters). Use the result in search_offers. Experimental endpoint.
Inputs: url (required).
search_offersSzukaj ogłoszeń OLXA
Search OLX offers via the public JSON API. Location/category must be numeric IDs — get them with resolve_olx_url (e.g. "/elektronika/krakow/") if you only know names. Returns compact offers plus total count and nextOffset.
Inputs: limit, query, cityId, offset, +10 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct role: search_offers finds listings, get_offer retrieves full details for one listing, and resolve_olx_url converts human-readable URLs into API parameters. There is no overlap in purpose, and the descriptions explicitly explain how the tools relate.
All tool names use consistent snake_case with a verb_noun structure: get_offer, resolve_olx_url, and search_offers. The inclusion of 'olx' in resolve_olx_url is a minor domain-specific detail but does not break the pattern.
Three tools is a well-scoped set for a read-only search API: one for discovery, one for detail retrieval, and one for input normalization. Each tool earns its place without redundancy.
The surface covers the core read-only workflow of resolving a URL, searching offers, and fetching offer details. Minor gaps exist, such as no direct category/city lookup tools, but resolve_olx_url provides a workaround for common cases.
Maintenance
Related MCP Connectors
Search the live web, look up companies and read any page through the Oxylabs Web API.
Amazon search and product extraction: titles, prices, ASINs, and listings as clean JSON.
Search books and authors, fetch editions, browse subjects, and resolve cover images.
Resolve DOIs, search ~188M scholarly works, and fetch references via the Crossref REST API.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables searching and retrieving details from OLX classifieds across multiple domains (Portugal, Poland, Bulgaria, Romania, Ukraine) using browser automation.231 npm29MIT
- FlicenseAqualityDmaintenanceExposes the OLX.ba marketplace API as MCP tools, enabling LLM clients to authenticate, browse and manage listings, read categories/attributes/locations, and run sponsorship/discount actions.35-
- FlicenseNot gradedqualityDmaintenanceMCP server for OLX marketplace. Enables AI assistants to search listings, get offer details, track prices over time, and compare offers across OLX Poland and other supported countries.4-
- AlicenseNot gradedqualityCmaintenanceMCP server for the OLX.ba API that enables searching, publishing, editing, and managing listings (ads), including image handling, sponsorships, categories, locations, and user account operations through 36 tools covering all official API endpoints.7 npm8MIT