Skip to main content
Glama

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_offers

GET /api/v1/offers/

Search by phrase, category, region/city/district + radius, price range, private/business seller, sorting, pagination (up to 50/page, ~1000 total)

get_offer

GET /api/v1/offers/{id}/

Full description, all photos, parameters, seller info

resolve_olx_url

GET /api/v1/friendly-links/query-params/{path}/

Experimental. Converts an OLX search URL (e.g. /elektronika/krakow/) into category_id, city_id, etc.

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

~/Library/Application Support/Claude/claude_desktop_config.json

Windows

%APPDATA%\Claude\claude_desktop_config.json

Linux

~/.config/Claude/claude_desktop_config.json

{
  "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 test

Then 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

https://www.olx.pl

Poland (default)

https://www.olx.ro

Romania

https://www.olx.pt

Portugal

https://www.olx.bg

Bulgaria

https://www.olx.ua

Ukraine

Requirements

  • Node.js 18 or later (for manual install)

  • For npx usage: Node.js 18+ with npm

Limitations

  • Phone numbers (/offers/{id}/limited-phones/) require a logged-in session — not supported.

  • get_offer takes a numeric id from 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 tools
get_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

    A4.3/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Exposes 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
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP 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
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP 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 npm
      8
      MIT