Skip to main content
Glama
Samxel

willhaben-mcp

by Samxel

willhaben-mcp

An MCP server that lets an AI search willhaben.at marketplace listings and pull the full details of ads. It wraps willhaben's reverse-engineered mobile-app API and returns the important fields to the AI.

Tools

search_willhaben(keyword, ...)

Search the marketplace. keyword is optional if you pass a category.

Filters:

  • category (id or name)

  • condition (new, used, refurbished, ...)

  • clothing_size and shoe_size

  • color, pattern

  • brand

  • region, seller type, price range, PayLivery, last 48h

  • sorting and pagination

Returns a trimmed list of hits.

get_ad_detail(ad_id)

Everything about one ad: the full (untruncated) description, all images, itemised attributes, category path and precise location. Run it on an id you got from a search.

list_categories(query, parent_id)

Find category ids for the category filter.

  • query: search the whole tree by name

  • parent_id: browse one level down (omit both for the top-level categories)

The full tree (~3500 categories) ships with the server in category-tree.json.

search_brands(category, term)

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.

Related MCP server: Begagnad MCP

Setup

pip install -r requirements.txt

Run

python main.py

The server starts over streamable HTTP and prints where it's listening:

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

Point your MCP client at that URL. Host, port and path live at the top of main.py.

Notes

  • The detail API is gated by a static app token and only speaks HTTP/2. Both are handled in main.py. If willhaben rotates the token, grab a fresh one from the app's request headers and replace WH_APPLICATION_TOKEN.

  • category-tree.json is a generated snapshot of willhaben's marketplace category tree (id, label, parentId, children). main.py loads it at startup for the category filter and list_categories. Re-crawl it if the taxonomy changes.

  • API details are documented in search_api.md.

  • This uses willhaben's internal API, not an official one. Be nice to it.

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's published for educational and research purposes only. It talks to willhaben's internal API, which is not meant for public use and may break or change at any time. You are responsible for how you use it: respect willhaben's Terms of Service, robots rules and applicable law, and don't hammer their servers or process personal data from listings. No warranty of any kind; use at your own risk.

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.

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to interact with New Zealand's largest online marketplace through the Trade Me API. Supports searching listings, managing watchlists, placing bids, making purchases, and accessing marketplace data across all Trade Me categories.
    5
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to search and retrieve listings from Sweden's largest second-hand marketplaces, Blocket and Tradera. Returns unified data including prices, images, seller information, and direct links to listings.
    8
  • A
    license
    A
    quality
    C
    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
    19
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • Search products in nearby stores. Agents can also list items for sale on a user's behalf.

  • Agent-native product catalog for AI shopping agents. 296M+ products, 28 countries.

  • Search products, compare prices and discover deals across 6 European markets with your AI assistant.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Samxel/willhaben-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server