willhaben-mcp
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., "@willhaben-mcp Find a used road bike in Vienna under 500 euros"
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.
An MCP server that lets an AI search willhaben.at and pull the full details of ads. It covers the marketplace (Marktplatz), the Auto & Motor cars vertical and Immobilien (real estate), wrapping the willhaben app's API and returning the important fields to the AI.
Highlights
Visual Listing Analysis
Downloads and analyzes the actual ad photos, allowing vision-capable AI to inspect an item's condition, wear, damage, completeness, and other visual details instead of relying only on the seller's description. Small by default, sharp enough to read a label when asked.Full access to willhaben filters
Search with the complete range of available filters across Marketplace, Immobilien and Auto & Motor including categories, brands, condition, size, color, price, state and district (down to a Vienna postcode), vehicle specs, equipment, and much more.From discovery to full inspection
Find relevant ads, then retrieve complete listing details, full descriptions, attributes, precise locations, and all available photos for a deeper analysis, for one ad or up to ten at once.
Related MCP server: marktplaats-mcp
Setup
Pick one of two ways. Neither needs anything running in the background: the client starts the server when it needs it.
With uv, no clone. One command runs the current version straight from GitHub:
uvx --from git+https://github.com/Samxel/willhaben-mcp willhaben-mcp --stdioFrom a clone. Requires Python 3.10+.
git clone https://github.com/Samxel/willhaben-mcp
cd willhaben-mcp
pip install -r requirements.txt
python main.py --stdiouv run main.py --stdio also works without the pip install: main.py
declares its own dependencies.
Add it to Claude (and other MCP clients)
Claude Code
One command, no config file:
claude mcp add willhaben -- uvx --from git+https://github.com/Samxel/willhaben-mcp willhaben-mcp --stdioFrom a clone, point it at main.py instead:
claude mcp add willhaben -- python /path/to/willhaben-mcp/main.py --stdioAdd --scope user to have it in every project instead of only the current one.
claude mcp list shows whether the connection came up, claude mcp remove willhaben takes it out again.
Claude Desktop
Open Settings > Developer > Edit Config, add the willhaben entry to
claude_desktop_config.json and restart Claude Desktop:
{
"mcpServers": {
"willhaben": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Samxel/willhaben-mcp", "willhaben-mcp", "--stdio"]
}
}
}From a clone, use "command": "python" and "args": ["C:\\path\\to\\willhaben-mcp\\main.py", "--stdio"] (the full path to
main.py, forward slashes on macOS/Linux).
Custom connectors (Settings > Connectors) connect from Anthropic's cloud, so they cannot reach a server running only on your own machine. To use the tools in claude.ai and the mobile apps, expose the HTTP server (see Run it yourself) through cloudflared, ngrok or a box with a public hostname, and add that HTTPS URL under Settings > Connectors > Add custom connector. Anyone who finds the URL can use the server too, though, so put authentication in front of it.
Every tool is marked read-only, so clients that honour that hint won't ask before each call. In Claude Desktop you can also open Settings > Connectors > willhaben and set the tools' dropdown on the right to Always allow.
Cursor, Codex, VS Code and other JSON-config clients
The same entry as for Claude Desktop, in the client's MCP config:
{
"mcpServers": {
"willhaben": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Samxel/willhaben-mcp", "willhaben-mcp", "--stdio"]
}
}
}Clients that connect to a URL instead take "type": "http" and "url": "http://127.0.0.1:8010/mcp", with the server started as below.
Run it yourself
Without --stdio, the server starts over streamable HTTP and prints where it's
listening:
python main.pyStarting willhaben-mcp server on http://127.0.0.1:8010/mcpPoint your client at that URL, e.g. claude mcp add --transport http willhaben http://127.0.0.1:8010/mcp. Host, port and path live at the top of
willhaben/server.py. Installed with pip or uv, the willhaben-mcp command
and python -m willhaben do the same as python main.py.
Tools
The three searches share their region and paging parameters: area is an
Austrian state (wien, niederoesterreich, ...), and district narrows it to
districts (Bezirke) by name ("Graz", "Innsbruck-Land", "Neubau") or
Vienna postcode ("1070"); sort_by, rows (up to 50), offset, and
next_offset / has_more to page on. Results come as compact JSON, and fields
without a value are left out. Every hit and ad carries its url; the server
instructions ask the AI to link every ad it names.
exclude, require and hide_reserved work the same in all three searches,
applied here and paging on until rows matches are found or 250 ads have been
scanned:
excludedrops titles carrying any of these words, e.g.["pro", "max", "mini"]to keep a base model clean of its own trim levels, or["motorschaden", "export"]for cars. It matches a whole word or a German compound tail ("kabel"catches"Ladekabel") but never a mere prefix, so"pro"spares every"Prozessor".requirekeeps hits where every term appears, with a number and its unit matched however it is spelled:["128gb"],["128 GB"]and["128 gb"]are one filter and each finds all three spellings. Marketplace hits are checked in title and description; car and property hits carry no description, so there it is the title.hide_reserveddrops reserved and sold ads.
search_willhaben(keyword, ...)
Search the marketplace. keyword is optional if you pass a category.
Filters:
category(id or name; a name matches in any word order, and a miss suggests the closest categories)condition(new, used, refurbished, ...)clothing_sizeandshoe_sizecolor,patternbrandregion, seller type, price range, PayLivery (a payment method, not shipping), last 48h
title_only(every keyword word must be in the title, not just anywhere in the ad text), plusexclude,requireandhide_reservedfrom abovespecs belong in
require. Putting them inkeywordinstead is the one mistake that quietly breaks a search. Sellers write the same storage size nine different ways and one ad in five leaves it out of the title entirely, sokeyword="iPhone 13 128 GB", title_only=Truefinds almost nothing whilekeyword="iPhone 13", require=["128gb"]finds what you meantaccessories are what none of these fix, because a case carries the phone's exact name too. Excluding nouns like
"case"or"akku"backfires, since they appear in real listings' titles ("Akku 100%"). Use aprice_fromfloor at ~15–20% of the product's real price instead (Geizhals'get_model_price_rangegives you that number)handover("versand"/"abholung"). Shipping is not in willhaben's search response at all, so this costs one detail request per surviving candidate, capped at 40 and reported asdetail_lookupssorting and pagination
Returns a trimmed list of hits, each with a numeric price_amount. A
status ("reserved" / "sold") read out of the title appears only on ads that
are not active, because willhaben itself always reports an ad as active.
rows is 4 by default.
list_categories(query, parent_id, limit=50)
Find category ids for the category filter. Each entry carries its full path
("Baby / Kind > Kindermode > Mädchenmode > Kleider / Röcke") so similar names stay apart.
query: search the whole tree by nameparent_id: browse one level down (omit both for the top-level categories)
The full tree (~3500 categories) ships with the server in
willhaben/data/marktplatz/categories.json.
search_brands(category, term, limit=40)
Brands are category-specific and there are 1000+ per category, so this is a
type-ahead. Pass a category and a search term to get matching brand ids, then
hand an id to search_willhaben(brand=...).
Note: condition, sizes, color, pattern and brand are category-dependent. Applying them in a broad category can return zero hits, so drill into a specific subcategory first.
search_autos(make, model, ...)
Search used cars (Gebrauchtwagen). All filters are optional.
make(id or name) andmodel(id or name, e.g. "3er-Reihe")car_type,fuel,transmission,wheel_drivecondition(Gebrauchtwagen, Neuwagen, Oldtimer, ...),color,dealerequipment(e.g. Sitzheizung, Anhängerkupplung)ranges:
price_from/to,year_from/to,mileage_from/to,power_from/to(kW)warranty,condition_report(Pickerl §57a), region, last 48h, sorting, pagingexclude,requireandhide_reservedfrom above, e.g.exclude=["motorschaden", "export", "bastler"]
Enumerated filters accept the willhaben label or id, and an inverted range is
rejected instead of silently ignored. Results name the make and model and
include year, mileage, fuel and transmission. Power comes as both power_kw
and power_ps, since willhaben stores kW while ads and buyers talk in PS.
willhaben tops a make search with a paid dealer listing whatever the filters
say (a 48k car in an "up to 15k" search). Hits outside the requested ranges are
dropped and counted in dropped_off_filter. The
filter and make data ships in willhaben/data/auto-motor/filters.json.
list_car_makes(query, limit=60)
List car make ids for search_autos. Optional query filters by name.
list_car_models(make)
List the models of a make (fetched live, since models are make-specific).
search_immobilien(property_type, ...)
Search real estate. Pick a property_type first (buy vs rent and the kind of
property); everything else is optional.
property_type: id or name, e.g. "Wohnung mieten", "Haus kaufen", "Grundstücke", "Gewerbeimmobilie mieten", or "Alle Immobilien" (default)object_type(e.g. "Einfamilienhaus", "Dachgeschosswohnung"),rooms("1"-"5", "6-9", "10+")features(Garage, Keller, Einbauküche, ...),outdoor(Balkon, Terrasse, Garten, ...)ranges:
price_from/to,area_from/to(living m²),plot_from/to(plot m²)postcode: exact postcodes such as"1070"or"6020", checked on each hit. A Vienna postcode also narrows the search to its district at willhaben; pair one outside Vienna withareaordistrictregion and district,
exclude,requireandhide_reservedfrom above (e.g.exclude=["befristet"]), last 48h, sorting, paging
Filters that don't apply to the chosen type are ignored by willhaben; an
inverted range is rejected here rather than silently dropped. Results carry the
numeric price_amount and price_per_m2 next to living_area_m2,
plot_area_m2, rooms, floor, district and address. The type and filter
data ships in willhaben/data/immobilien/filters.json.
list_immobilien_types()
List the real-estate property types for search_immobilien.
get_ad_detail(ad_id | ids)
Everything about one ad: the full description, itemised attributes, category
path, precise location and how many photos it has. Works across verticals. Run it on an id you
got from a search. The mobile API caps the description near 600 characters, so
when it looks cut off the full clean text is pulled from the ad's web page.
Pass up to 10 ids instead of ad_id to compare several in one call; they
come back as {count, ads, failed}, and an ad that is gone lands in failed
instead of failing the rest.
This is also the only place willhaben states delivery: handover
("Selbstabholung", "Versand") with ships / pickup_only alongside it.
PayLivery in the search is a payment method and says nothing about shipping.
get_ad_images(ad_id, max_images=4, detail="low")
Download an ad's photos server-side (at most 10) and return them as real image
content, so a vision-capable client sees the pictures instead of just URLs.
detail="low" (300×400, about 160 tokens per photo) is enough for condition
and completeness; detail="high" (900×1200, about 1400 tokens) reads small
print such as a label, a serial number or a screen.
get_ad_seller(ad_id)
Who is selling: name, private vs dealer, rating and reply time (private sellers), the member-since / created date, and location. Useful for a trust or plausibility check the ad itself does not answer.
Disclaimer
This is an independent, unofficial project and is not affiliated with, endorsed by, or connected to willhaben. "willhaben" and all related trademarks belong to their respective owners.
It uses an unofficial interface of the willhaben app, which can change or go away at any time. You are responsible for how you use it: respect willhaben's Terms of Service and applicable law, don't hammer their servers, and don't collect personal data from listings.
If you're a rights holder and have a concern about this repository, please open an issue and I'll respond promptly.
License
MIT LICENSE. Provided "as is", without warranty.
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