kleinanzeigen-mcp
Wraps Kleinanzeigen's internal mobile API to search classified listings and inspect them in detail. Supports keyword and category search with filters for attributes, location/radius or postcode, price range, offer/wanted, private/commercial, shipping and sorting, plus server-side refinement filters (title_only, require, exclude). Provides tools to fetch an ad's full description, attributes, precise location, images and seller details, download ad photos as image content for vision analysis, look up location/region ids, list category-specific attribute filters, and browse the category tree.
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., "@kleinanzeigen-mcpFind a used PS5 under €300 in Berlin, exclude accessories"
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 Kleinanzeigen
listings and pull ad and seller details. It wraps the Kleinanzeigen Android
app's API (api.kleinanzeigen.de / gateway.kleinanzeigen.de) and returns 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.Filters the API doesn't have
title_only,requireandexcludeare applied server-side here and page on automatically, so an AI gets the number of real matches it asked for instead of re-searching to work around accessories and wrong variants.From discovery to full inspection
Find relevant ads, then retrieve complete descriptions, itemised attributes, precise locations, seller reputation and all photos for a deeper analysis.
Related MCP server: marktplaats-mcp
Tools
search_kleinanzeigen(query, ...)
Search listings by free-text keyword and/or category (id or name). Filters for category-specific attributes, location/radius or postcode, price range, offer/wanted, private/commercial, shipping and "Direkt kaufen", plus sorting and paging.
Client-side filters, applied here over what Kleinanzeigen returns:
title_only: every word ofquerymust be in the titlerequire: terms that must appear in title or description ("128gb" matches "128 GB" too)exclude: drop ads whose title carries these ("kabel" catches "Ladekabel", "pro" spares "Prozessor")
Returns a trimmed list of hits plus total / next_page / has_more.
get_ad_detail(ad_id)
Everything about one ad: full description, precise location, category, attributes, shipping options, all images and the seller's rating.
get_ad_images(ad_id, max_images=4)
Download an ad's photos server-side and return them as real image content (base64), so a vision-capable client sees the pictures instead of just URLs. Handy when you want to actually look at a listing.
get_seller_info(seller_id)
Who is selling: name, private vs commercial, member-since date, ad counts, followers, badges and Kleinanzeigen's reputation score.
search_locations(query)
Look up location/region ids for search_kleinanzeigen's location_id filter
by name prefix.
get_category_filters(category_id)
List the category-specific attribute filters search_kleinanzeigen's
attributes argument takes for one category, straight from Kleinanzeigen's
own search-options schema.
list_categories(query)
Browse Kleinanzeigen's category tree to find the category ids
search_kleinanzeigen takes. The full tree ships with the server in
data/categories.json. Note the tree stops fairly high up: a finer cut like
"Grafikkarten" is an attribute value from get_category_filters, not a
category.
Setup
Requires Python 3.9+.
pip install -r requirements.txtRun
python main.pyThe server starts over streamable HTTP and prints where it's listening:
Starting kleinanzeigen-mcp server on http://127.0.0.1:8000/mcpPoint your MCP client at that URL. Host, port and path live at the top of
main.py.
Use it from Claude Desktop
Claude Desktop launches MCP servers over stdio, so bridge to this HTTP server
with mcp-remote (needs
Node.js):
Start the server (
python main.py) and leave it running.In Claude Desktop open Settings > Developer > Edit Config; that reveals
claude_desktop_config.json. Open it and add thekleinanzeigenentry:{ "mcpServers": { "kleinanzeigen": { "command": "cmd", "args": ["/c", "npx", "-y", "mcp-remote", "http://127.0.0.1:8000/mcp"] } } }On macOS/Linux drop the Windows wrapper: use
"command": "npx"with"args": ["-y", "mcp-remote", "http://127.0.0.1:8000/mcp"].Save the file and restart Claude Desktop.
Notes
Search quirks worth knowing:
totalis capped at 10000 by Kleinanzeigen (so that value means "at least"), ads flaggedis_top_adare paid placements pinned above the sort order (include_top_ads=Falsefor an honest price ranking), and anullprice means "zu verschenken" or "VB" -- seeprice_type.data/categories.jsonis a flattened snapshot of Kleinanzeigen's category tree (title, id, children), built byscripts/build_categories.pyfrom the liveapi/categories.json(which ships the tree wrapped in JAXB envelopes and a single "Alle Kategorien" pseudo-root). Re-run it if Kleinanzeigen changes their categories.API details, including the auth scheme and the Akamai finding, are documented in
search_api.md.This uses Kleinanzeigen's internal mobile 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 Kleinanzeigen or Adevinta. "Kleinanzeigen" and all related trademarks belong to their respective owners.
It's published for educational and research purposes only. It talks to Kleinanzeigen'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 Kleinanzeigen's Terms of Service, robots rules and applicable law, and don't hammer their servers.
License
MIT LICENSE. Provided "as is", without warranty.
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and browse global classifieds across 80 markets. No auth required for read-only access.
AI marketplace: search, buy, sell across Amazon, eBay, AliExpress. 13 tools.
Search products, compare prices and discover deals across 6 European markets with your AI assistant.
Search products in nearby stores. Agents can also list items for sale on a user's behalf.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to search and view advertisements on Marktplaats.nl with extensive filtering options.16MIT
- AlicenseAqualityAmaintenanceEnables AI agents to search and monitor Dutch and Belgian classifieds (Marktplaats and 2dehands) for listings, seller profiles, and categories.52MIT
- AlicenseNot gradedqualityAmaintenanceSearch Kleinanzeigen.de, Germany's largest classifieds site, via MCP tools without API keys.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to search willhaben.at marketplace listings and retrieve full ad details, using filters for category, condition, size, color, pattern, brand, and more.3MIT