willhaben-mcp
willhaben-mcp
Сервер MCP, который позволяет ИИ искать объявления на willhaben.at и получать полные детали объявлений. Он оборачивает обратно разработанный API мобильного приложения willhaben и возвращает ИИ только важные поля.
Инструменты
search_willhaben(keyword, ...)
Поиск по площадке. keyword необязателен, если вы передаёте category.
Фильтры:
category(id или название)condition(новое, б/у, восстановленное, ...)clothing_sizeиshoe_sizecolor,patternbrandрегион, тип продавца, диапазон цен, PayLivery, последние 48 часов
сортировка и пагинация
Возвращает сокращённый список результатов.
get_ad_detail(ad_id)
Вся информация об одном объявлении: полное (не сокращённое) описание, все изображения, детальные атрибуты и точное местоположение. Запускайте с id, полученным из поиска.
list_categories(query, parent_id)
Поиск id категорий для фильтра category.
query: поиск по всему дереву категорий по названиюparent_id: просмотр на один уровень вниз (опустите оба параметра, чтобы получить верхний уровень)
Полное дерево (~3500 категорий) поставляется вместе с сервером в файле category-tree.json.
search_brands(term, category)
Бренды привязаны к категориям, и их более 1000 на каждую категорию, поэтому это поиск по мере ввода. Передайте категорию и поисковый запрос, чтобы получить подходящие id брендов, а затем передайте id в search_willhaben(brand=...).
Примечание: состояние, размеры, цвет, узор и бренд зависят от категории. Применение их в широкой категории может не дать результатов, поэтому сначала уточните категорию.
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Укажите URL вашего MCP-клиента. Хост, порт и путь указаны вверху файла main.py.
Примечания
API деталей защищён статическим токеном приложения и работает только по HTTP/2. Всё это обрабатывается в
main.py. Если willhaben сменит токен, возьмите новый из заголовков запросов их приложения и заменитеWH_APPLICATION_TOKEN.category-tree.json— это сгенерированный снимок дерева категорий willhaben (id, название, parentId, дети).main.pyзагружает его при запуске для фильтраcategoryиlist_categories. Если таксономия изменится, обойдите дерево заново.Детали API описаны в
search_api.md.Здесь используется внутренний API willhaben, а не официальный. Относитесь к нему бережно.
Отказ от ответственности
Это независимый неофициальный проект, не связанный с willhaben и не поддерживаемый им. Товарный знак «willhaben» и все связанные товарные знаки принадлежат их правообладателям.
Проект опубликован в образовательных и исследовательских целях. Он обращается к внутреннему API willhaben, который не предназначен для публичного использования и может измениться или перестать работать в любой момент. Вы несёте ответственность за то, как вы его используете: соблюдайте Условия предоставления услуг willhaben, правила для роботов и действующее законодательство, не перегружайте их серверы и не обрабатывайте персональные данные из объявлений. Никаких гарантий; используйте на свой страх и риск.
Если вы являетесь правообладателем и у вас есть претензии к этому проекту, пожалуйста, откройте issue, и я оперативно отвечу.
Лицензия
ЛИЦЕНЗИЯ MIT. Предоставляется «как есть», без каких-либо гарантий.
Available Tools
11 toolsget_ad_detailARead-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_imagesARead-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_sellerARead-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_makesARead-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_modelsARead-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_categoriesARead-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_typesBRead-only
List the property types for search_immobilien.
Inputs: no named parameters.
search_autosARead-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_brandsARead-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_immobilienARead-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_willhabenARead-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).payliveryis 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
Scored across 11 tools
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.
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.
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.
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
Related MCP Connectors
Live kleinanzeigen.de search, ad, seller, category and location data for AI clients
Search products in nearby stores. Agents can also list items for sale on a user's behalf.
Source and sell for AI agents: search listings, run a shop, chat with buyers and sellers.
Search a free buy-and-sell marketplace for Europe, the US and Canada.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables 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.73MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to search and view advertisements on Marktplaats.nl with extensive filtering options.523MIT
- AlicenseAqualityBmaintenanceEnables 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.76MIT
- AlicenseNot gradedqualityCmaintenanceLets 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