Skip to main content
Glama
willhaben-mcp

willhaben-mcp

by Samxel

willhaben-mcp

willhaben.at 마켓플레이스의 게시물을 AI가 검색하고 광고의 전체 상세 정보를 가져올 수 있게 해 주는 MCP 서버입니다. willhaben의 리버스 엔지니어링된 모바일 앱 API를 래핑하며, 중요한 필드만 AI에게 반환합니다.

도구

search_willhaben(keyword, ...)

마켓플레이스를 검색합니다. category를 전달하면 keyword는 선택 사항입니다.

필터:

  • category (id 또는 이름)

  • condition (신품, 중고, 리퍼브, ...)

  • clothing_size 및 shoe_size

  • color, pattern

  • brand

  • 지역, 판매자 유형, 가격 범위, PayLivery, 최근 48시간

  • 정렬 및 페이지네이션

간추린 결과 목록을 반환합니다.

get_ad_detail(ad_id)

한 광고에 대한 모든 정보를 제공합니다. 전체(잘리지 않은) 설명, 모든 이미지, 항목별 속성, 카테고리 경로, 정확한 위치가 포함됩니다. 검색에서 얻은 id에 대해 실행하세요.

list_categories(query, parent_id)

category 필터에 사용할 카테고리 id를 찾습니다.

  • query: 전체 트리를 이름으로 검색합니다.

  • parent_id: 한 단계 아래로 이동합니다. (둘 다 생략하면 최상위 카테고리를 표시합니다.)

전체 트리(~3500개 카테고리)는 category-tree.json과 함께 서버에 포함되어 제공됩니다.

search_brands(category, term)

브랜드는 카테고리별로 다르며, 카테고리당 1000개 이상 있으므로 자동 완성(type-ahead) 방식입니다. category와 검색어를 전달하면 일치하는 브랜드 id를 받아 search_willhaben(brand=...)에 넘겨 사용하세요.

참고: 상태, 사이즈, 색상, 패턴, 브랜드는 카테고리에 따라 다릅니다. 넓은 카테고리에 적용하면 검색 결과가 0개 나올 수 있으므로, 먼저 특정 하위 카테고리로 좁혀서 사용하세요.

Related MCP server: marktplaats-mcp

설정

pip install -r requirements.txt

실행

python main.py

서버는 streamable HTTP로 실행되고, 수신 대기 주소를 출력합니다:

Starting willhaben-mcp server on http://127.0.0.1:8000/mcp

MCP 클라이언트는 이 URL을 가리키도록 설정하세요. 호스트, 포트, 경로는 main.py의 상단에 있습니다.

참고

  • 상세 API는 정적 앱 토큰으로 보호되어 있으며 HTTP/2에서만 응답합니다. 둘 다 main.py에서 처리됩니다. willhaben이 토큰을 교체하면 앱의 요청 헤더에서 새 토큰을 받아 WH_APPLICATION_TOKEN을 교체하세요.

  • category-tree.json은 willhaben 마켓플레이스 카테고리 트리(id, label, parentId, children)의 생성된 스냅샷입니다. main.py는 시작 시 이 스냅샷을 로드해 category 필터와 list_categories에 사용합니다. 분류 체계가 변경되면 다시 크롤링하세요.

  • API 상세 정보는 search_api.md에 문서화되어 있습니다.

  • 이 서버는 willhaben의 내부 API를 사용하는 비공식 서버입니다. 그에 맞게 무리하게 사용하지 마세요.

면책 조항

이 프로젝트는 독립적이고 비공식적인 프로젝트이며, willhaben과 제휴, 보증, 연관이 없습니다. "willhaben" 및 모든 관련 상표는 각각의 소유자에게 귀속됩니다.

이 프로젝트는 교육 및 연구 목적으로만 제공됩니다. willhaben의 내부 API와 통신하며, 해당 API는 공개용이 아니므로 언제든 깨지거나 바뀔 수 있습니다. 사용 방법에 대한 책임은 사용자에게 있습니다: willhaben의 서비스 이용약관, robots 규칙 및 관련 법률을 준수하고, 서버에 과부하를 주거나 게시물에서 개인 데이터를 처리하지 마세요. 어떠한 보증도 없으며, 사용에 따르는 위험은 본인이 감수하세요.

권리자로서 이 저장소에 대해 우려가 있다면 이슈(issue)를 열어 주세요. 신속하게 답변하겠습니다.

라이선스

MIT LICENSE. 보증 없이 "있는 그대로" 제공됩니다.

Available Tools

11 tools
get_ad_detailA
Read-only

One ad in full: the complete description (also when the app API cuts it), condition, attributes, category, location and image_count. To compare several, pass up to 10 ids instead; they come back as {count, ads, failed}.

It is the only place that says how an item changes hands: handover ("Selbstabholung", "Versand") with ships and pickup_only.

Args: ad_id: The ad id from a search. ids: Several ad ids, instead of ad_id.

Inputs: ids, ad_id.

get_ad_imagesA
Read-only

The ad's photos as images you can look at, up to max_images (at most 10). Use them whenever the answer depends on what the item looks like: condition, damage, completeness, or details only a picture shows, such as a label or a screen.

Args: ad_id: The ad id from a search. max_images: How many photos to fetch. Default 4. detail: "low" (300x400, enough for condition and completeness) or "high" (900x1200, about nine times the tokens) to read small print such as a label, serial number or screen.

Inputs: ad_id (required), detail, max_images.

get_ad_sellerA
Read-only

Who sells an ad: name, private or dealer, rating and reply time for private sellers, member since, and location. For a trust check the ad itself does not answer.

Args: ad_id: The ad id from a search.

Inputs: ad_id (required).

list_car_makesA
Read-only

List car make ids for search_autos.

Args: query: Part of the make name. limit: At most 100. Default 60.

Inputs: limit, query.

list_car_modelsA
Read-only

List the models of a car make, for the model filter of search_autos.

Args: make: Make id or name.

Inputs: make (required).

list_categoriesA
Read-only

Find category ids for search_willhaben. Returns {count, categories: [{id, path, has_children}]}.

Args: query: Part of a category name; searches the whole tree. parent_id: List the subcategories of this id. Omit both for the top level. limit: At most 100. Default 50.

Inputs: limit, query, parent_id.

list_immobilien_typesB
Read-only

List the property types for search_immobilien.

Inputs: no named parameters.

search_autosA
Read-only

Search used cars. Everything is optional.

Prefer the structured filters to keyword: they match exact fields, a keyword searches the free text. Use a keyword for what has no filter, such as a chassis code ("E39") on top of make and model.

Hits name make and model and give power as power_kw and power_ps. willhaben tops a make search with a paid listing whatever the filters say; hits outside the requested ranges are dropped and counted in dropped_off_filter.

exclude, require and hide_reserved work as in search_willhaben and page on until rows cars pass, e.g. exclude=["motorschaden", "export", "bastler"]. Car hits carry no description, so require only looks at the title here.

Args: make: Make id or name, see list_car_makes. model: Model id or name, e.g. "3er-Reihe"; needs make. keyword: Free-text words. car_type: e.g. "Kombi / Family Van", "SUV / Geländewagen". fuel: e.g. "Diesel", "Benzin", "Elektro", "Hybrid Elektro/Benzin". transmission: "Automatik" or "Schaltgetriebe". wheel_drive: "Allrad", "Hinterrad" or "Vorderrad". condition: e.g. "Gebrauchtwagen", "Neuwagen", "Oldtimer". color: Exterior colour, e.g. "Schwarz". dealer: "Händler" or "Privat". equipment: e.g. "Sitzheizung vorne", "Anhängerkupplung". price_from / price_to: EUR. year_from / year_to: First registration. mileage_from / mileage_to: Kilometres. power_from / power_to: kW, not PS (150 PS is 110 kW). warranty / condition_report: Only cars with a warranty / a current "Pickerl" (§57a). last_48h: Only ads from the last two days.

Inputs: area, fuel, make, rows, +26 more.

search_brandsA
Read-only

Find brand ids for the brand filter of search_willhaben. Brands depend on the category and there can be thousands, so pass a term. Broad top categories may have no brand filter at all.

Args: category: Category id or name; a specific one works best. term: Part of the brand name, e.g. "nik". limit: At most 100. Default 40.

Inputs: category (required), term, limit.

search_immobilienA
Read-only

Search real estate. property_type picks buy or rent and the kind of property; everything else is optional, and filters that do not fit the type are ignored by willhaben.

Hits carry price_amount and price_per_m2 next to living_area_m2, plot_area_m2, rooms, floor, district and address.

exclude, require and hide_reserved work as in search_willhaben, e.g. exclude=["befristet", "provision"]. Property hits carry no description, so require only looks at the title here.

Args: property_type: Id or name from list_immobilien_types, e.g. "Wohnung mieten", "Haus kaufen", "Grundstücke". Default "Alle Immobilien". keyword: Free-text words. object_type: e.g. "Einfamilienhaus", "Dachgeschosswohnung". rooms: "1" to "5", "6-9" or "10+". features: e.g. "Garage", "Keller", "Einbauküche". outdoor: e.g. "Balkon", "Terrasse", "Garten". price_from / price_to: EUR; rent or purchase price, depending on the type. area_from / area_to: Living area in m². plot_from / plot_to: Plot area in m². postcode: Exact postcodes, e.g. "1070" or "6020"; checked on each hit, so pair one outside Vienna with area or district. last_48h: Only ads from the last two days.

Inputs: area, rows, rooms, offset, +18 more.

search_willhabenA
Read-only

Search the willhaben marketplace. Needs a keyword, a category or both.

A bare keyword matches the whole ad text and drags in accessories and spare parts, so scope to a category when you can. willhaben ignores punctuation: "???" in a keyword matches nothing, so write "drei fragezeichen".

Put the model in keyword and every spec in require. Sellers write "128GB", "128 GB" or leave it out of the title, so keyword="iPhone 13", require=["128gb"] finds what keyword="iPhone 13 128 GB" misses.

These filters run here, paging on until rows matches turn up or 250 ads were scanned (scanned):

  • title_only: every keyword word must be in the title.

  • require: every term must be in the title or description; a number with its unit matches however it is spelled.

  • exclude: drop titles carrying any of these words, e.g. ["pro", "max"] to keep a base model clean of its trim levels. A word also hits the tail of a compound ("kabel" in "Ladekabel"), never a prefix ("pro" spares "Prozessor"). If variants turn up, search again with them excluded rather than dropping rows yourself.

  • hide_reserved: drop reserved and sold ads.

  • handover ("versand" / "abholung"): costs one detail request per candidate, at most 40 (detail_lookups). paylivery is a payment method, not shipping.

Don't exclude ordinary nouns like "case" or "akku", real listings use them too ("Akku 100%"). Keep accessories out with price_from at about 15-20% of the product's real price instead.

Args: keyword: Search words. category: Category id or name; includes its subcategories. condition: "neu", "neuwertig", "generalueberholt", "gebraucht", "defekt" or "ausstellungsstueck". clothing_size / shoe_size: e.g. "38", "46 / S" or "42"; clothing and shoe categories only. color / pattern: willhaben's colours and patterns, mostly fashion. brand: Brand id(s) from search_brands. seller: "privat" or "haendler". price_from / price_to: Price bounds in EUR. last_48h: Only ads from the last two days.

Inputs: area, rows, brand, color, +19 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 11 tools

    Disambiguation4/5

    The three search tools are domain-scoped (real estate, cars, general marketplace) and their descriptions make the intent reasonably clear. There is mild overlap since real estate and cars are also marketplace categories, so an agent could plausibly route to search_willhaben instead of the specialized tools, but the structured filters signal the distinction.

    Naming Consistency4/5

    Consistent verb_noun pattern throughout: search_*, list_*, get_ad_*. Minor deviation is the mixed German/English domain nouns (search_immobilien, search_autos, search_willhaben), but the structural convention itself is predictable and readable.

    Tool Count5/5

    Eleven tools is well within the ideal range, and each earns its place: three scoped searches, three ad-inspection tools, and five taxonomy/lookup helpers. Nothing feels redundant or bloated.

    Completeness4/5

    Covers search, detail, images, seller and the needed taxonomy helpers (categories, brands, immobilien types, car makes/models), so core browse-and-inspect workflows have no dead ends. Minor asymmetry: real estate gets only a type list while cars get makes and models, and there are no watchlist or seller-contact operations, but these are reasonable outside a read-only search scope.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables searching Austria's largest classifieds marketplace (willhaben.at) for real estate, cars, jobs, and second-hand items via natural-language queries and structured filters, with full listing details.
      7
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to search Kleinanzeigen listings by keyword, category, location, price and seller type, with extra server-side filtering for title matches and required or excluded terms. It also retrieves full ad details, downloadable photos for visual inspection, category attributes, and seller reputation information.
      7
      6
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets AI tools search Facebook Marketplace listings by query, location, price, condition, and other filters, and fetch full listing details such as seller info, photos, and delivery options.
      MIT