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)

1件の広告に関するすべての情報: 完全な(切り詰められていない)説明、すべての画像、項目別の属性、カテゴリパス、正確な場所。検索で取得したIDに対して実行します。

list_categories(query, parent_id)

category フィルター用のカテゴリIDを検索します。

  • query: ツリー全体を名前で検索

  • parent_id: 1階層下を閲覧(両方省略するとトップレベルカテゴリ)

完全なツリー(約3500カテゴリ)はサーバーに同梱され、category-tree.json に格納されています。

search_brands(category, term)

ブランドはカテゴリ固有で、カテゴリごとに1000以上あるため、これはタイプアヘッドです。カテゴリと検索語を渡して一致するブランドIDを取得し、そのIDを search_willhaben(brand=...) に渡します。

注: condition、サイズ、色、パターン、ブランドはカテゴリに依存します。広いカテゴリでこれらを適用するとヒット数がゼロになることがあるため、まず特定のサブカテゴリに絞り込んでください。

Related MCP server: marktplaats-mcp

セットアップ

pip install -r requirements.txt

実行

python main.py

サーバーはストリーミング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と通信するもので、一般公開を意図しておらず、いつでも壊れたり変更されたりする可能性があります。使用方法については自己責任です: 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