kleinanzeigen-mcp
A read-only MCP server that lets an agent search public Kleinanzeigen.de listings and read individual listings via browser automation.
search_listings— keyword search with optionallocation(city or postal code),radiusKm(1–200),minPrice/maxPrice(EUR),sort(relevance,newest,price_asc,price_desc), andmaxPages(1–10, de-duplicated by listing id); returns{ results }of normalized summaries.get_listing— open a single listing byidor fullurland return its normalized details.Safe failures — errors come back as small payloads with codes like
CHALLENGE_REQUIRED,NAVIGATION_ERROR,LISTING_NOT_FOUND,RATE_LIMITED,INVALID_INPUT,INTERNAL_ERROR; no browser stack traces, no raw HTML.Read-only by design — public listings only: no login, no account features, no messaging, no CAPTCHA bypass, no proxy rotation, no bulk crawling.
Read-only access to public kleinanzeigen.de listings through a local browser session: search listings by query with optional location/radius, price range, sort order and multi-page walking, plus retrieval of a single listing's details by id or URL.
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-mcp search for a used Mac Mini M4 under 500 euros near Berlin"
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.
kleinanzeigen-mcp
MCP server for searching and reading Kleinanzeigen listings.
Requirements
Node.js >= 20
Related MCP server: marktplaats-mcp
Install
From npm:
npm install -g @washedguy/kleinanzeigen-mcp
npx patchright install chromiumOr from a checkout:
npm install
npx patchright install chromium
npm run buildThe server uses Patchright. Set KLEINANZEIGEN_CHANNEL=chrome|msedge|bundled to select a browser.
Configure the MCP client
The server speaks MCP over stdio.
{
"mcpServers": {
"kleinanzeigen": {
"command": "npx",
"args": ["-y", "@washedguy/kleinanzeigen-mcp"]
}
}
}From a checkout, point at the built entrypoint instead:
{
"mcpServers": {
"kleinanzeigen": {
"command": "node",
"args": ["/path/to/kleinanzeigen-mcp/dist/index.js"]
}
}
}Tools
Tool | Input | Returns |
|
|
|
|
|
|
sort is relevance (default), newest, price_asc or price_desc.
location takes a city or postal code and combines with radiusKm. maxPages
(1–10) walks the numbered result pages and de-duplicates by listing id. Note that
promoted "Top-Anzeigen" are pinned to the top and ignore sorting.
Errors
Failures come back as small, safe payloads — never browser stack traces:
{ "error": "CHALLENGE_REQUIRED", "message": "Kleinanzeigen presented a challenge (e.g. CAPTCHA). Try again later from a normal browser session." }Codes: CHALLENGE_REQUIRED, NAVIGATION_ERROR, LISTING_NOT_FOUND,
RATE_LIMITED, INVALID_INPUT, INTERNAL_ERROR.
Debugging
kleinanzeigen-mcp-debug # or: npm run debugOpens a visible browser and saves every page (and client-side route change) as
HTML plus an index.jsonl into ./debug-snapshots/. To capture from normal tool
calls instead:
KLEINANZEIGEN_SAVE_HTML=1 npm start
# or: KLEINANZEIGEN_SNAPSHOT_DIR=/tmp/ka-snaps npm run devSnapshots may contain public listing data and are git-ignored — do not commit them.
Development
npm run dev # stdio server with watch mode
npm run verify # typecheck + lint + tests (run before committing)
npm run check # Biome lint/format/import-sort (write)
npm run test # node:test via tsxLinting and formatting use a single dev dependency
(Biome); configuration is in biome.json.
Notes
Searches return up to 10 pages; promoted listings can appear above the requested sort order.
Challenges return
CHALLENGE_REQUIRED; try again later.This is an unofficial integration and site behavior may change.
Author
washed.dev · Building websites and web apps for your business
License
Available Tools
2 toolsget_listingGet listingARead-only
Open a single Kleinanzeigen listing and return its normalized details. Provide either id or url. Read-only.
Inputs: id, url.
search_listingsSearch listingsBRead-only
Search Kleinanzeigen.de for listings and return normalized summaries. Read-only.
Inputs: query (required), sort, location, maxPages, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
search_listings and get_listing have clearly distinct purposes: one performs a query and returns multiple summaries, the other retrieves a single listing by id or URL. There is no overlap or risk of misselection.
Both tool names follow a consistent verb_noun snake_case pattern (search_listings, get_listing) and accurately reflect read-only behavior. The convention is predictable and unambiguous.
With only two tools, the surface feels thin for a marketplace MCP. While search and detail retrieval are core, the server lacks ancillary tools that would make it feel well-scoped (e.g., category browsing or seller info).
The core read-only workflow is covered: users can search listings and retrieve full details for a single listing. Minor gaps exist, such as accessing seller profiles or navigating categories, but agents can work around them for basic browsing.
Related MCP Connectors
Craigslist listings for AI agents: search by keyword, city, state and category; cars, rentals.
Classifieds marketplace for AI agents: post offers and wanted ads, search, and negotiate.
Buy and sell used items nearby: AI agents list, search, negotiate offers and set up cash meetups.
Classifieds for AI assistants: sell, buy, rent, hire and find local services, just by asking.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents like claude.ai to search online marketplaces (e.g., Facebook Marketplace) through your own logged-in browser, returning structured listings and details.-
- AlicenseAqualityBmaintenanceEnables AI agents to search and monitor Dutch and Belgian classifieds (Marktplaats and 2dehands) for listings, seller profiles, and categories.844 PyPI5MIT
- AlicenseAqualityBmaintenanceEnables an AI assistant to search and read classified listings, write to sellers, and negotiate a purchase price, with price limits, waiting times, message caps, and quiet hours enforced by the server rather than left to the model. Messages are drafted for user confirmation by default, and corrections are recorded locally as style preferences; everything runs on the user's own machine.16PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI assistants and MCP clients to search classified listings with price sorting, retrieve detailed ad and seller contact information, and browse category and location taxonomies.41MIT