Kleinanzeigen MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Log verbosity; logs go to stderr. | info |
| KLEINANZEIGEN_BOT_PATH | No | The bot executable. | kleinanzeigen-bot on PATH |
| KLEINANZEIGEN_HEADLESS | No | Set to false to show the bot's browser window. | true |
| KLEINANZEIGEN_READ_ONLY | No | Register only read tools. | false |
| KLEINANZEIGEN_WORKSPACE | No | Workspace containing config.yaml, ads/ and the browser profile. | ~/Kleinanzeigen |
| KLEINANZEIGEN_TIMEOUT_MS | No | Limit for one kleinanzeigen.de page request, in milliseconds. | 20000 |
| KLEINANZEIGEN_UPLOAD_DIRS | No | Comma-separated folders whose images may be used in ads. | |
| KLEINANZEIGEN_BOT_PASSWORD | No | Your Kleinanzeigen login password, read by the bot through config.yaml. | |
| KLEINANZEIGEN_BOT_USERNAME | No | Your Kleinanzeigen login username, read by the bot through config.yaml. | |
| KLEINANZEIGEN_BOT_TIMEOUT_MS | No | Limit for one bot run, in milliseconds. | 600000 |
| KLEINANZEIGEN_MIN_INTERVAL_MS | No | Minimum pause between page requests, in milliseconds. | 1000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Kleinanzeigen MCP server: search listings on kleinanzeigen.de and manage the user's own ads.
Searching: kleinanzeigen_search (keywords, place + radius, price, category), then kleinanzeigen_get_listing for details. Search pages are public; keep the number of requests low.
Own ads live as files in a local workspace and are published by kleinanzeigen-bot, which drives a browser signed in to the user's account.
Selling: read kleinanzeigen://guide/ad-fields, research prices with kleinanzeigen_search, kleinanzeigen_create_ad (local) → kleinanzeigen_publish_ads (public) or kleinanzeigen_save_drafts (private).
Changing: kleinanzeigen_update_ad (local file) → kleinanzeigen_update_online_ads. Managing: kleinanzeigen_list_my_ads, kleinanzeigen_set_ads_reserved, kleinanzeigen_extend_ads, kleinanzeigen_delete_online_ads.
Publishing, updating and deleting online ads change the user's public account and ask for confirmation. Show the user the final title, description, price and photos first.
When a publishing tool fails, call kleinanzeigen_check_setup. Sign-in problems (SMS code, CAPTCHA) need the user: they run
npx -y kleinanzeigen-mcp-v2 loginin a terminal. Never ask for the password in chat.Bot runs take from seconds to a few minutes and run one at a time.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| kleinanzeigen_searchA | Search listings on kleinanzeigen.de by keyword, place and radius, price range and category. Returns compact summaries (25 per page); call kleinanzeigen_get_listing for the full text, all images and seller details. |
| kleinanzeigen_get_listingA | Full details of one listing: description, price, shipping, location, attributes, all image URLs and public seller info. |
| kleinanzeigen_list_local_adsA | Lists the ads prepared in the local workspace (one folder per ad under ads/), with their online id once published. include_status adds the bot's view (draft, changed, due, published-local, disabled). |
| kleinanzeigen_verify_adsA | Runs kleinanzeigen-bot's offline check of config.yaml and the ad files (all, or the named ones). Changes nothing. |
| kleinanzeigen_list_my_adsA | Signs in (via kleinanzeigen-bot) and lists the ads currently in your Kleinanzeigen account with id, title, status and expiry date. |
| kleinanzeigen_get_category_fieldsA | Opens the Kleinanzeigen ad form for a category (signed in, nothing is submitted) and returns its fields, including the special_attributes keys and allowed values (e.g. condition). Use it before creating an ad in an unfamiliar category. |
| kleinanzeigen_create_adA | Creates a new ad in the local workspace (not online yet): writes ads//ad_.yaml and copies the images. Then call kleinanzeigen_publish_ads (public) or kleinanzeigen_save_drafts (private draft). |
| kleinanzeigen_update_adA | Changes fields of a local ad file. Only the given fields change; images, when given, replace all images. For an ad that is already online, call kleinanzeigen_update_online_ads afterwards to apply the change on Kleinanzeigen. |
| kleinanzeigen_delete_local_adA | Deletes an ad folder (YAML and copied images) from the workspace. It does not touch the ad on Kleinanzeigen; use kleinanzeigen_delete_online_ads for that. |
| kleinanzeigen_publish_adsA | Publishes local ads on Kleinanzeigen so everybody can see them. New ads get an id, which is written back into the ad file. republish: true re-posts ads that are already online (new id, the old ad is deleted) to push them up. To change an online ad in place use kleinanzeigen_update_online_ads. This can take a few minutes. |
| kleinanzeigen_save_draftsA | Saves new local ads as private drafts in your Kleinanzeigen account (not public). Each call creates a new draft; the ad file is not changed. |
| kleinanzeigen_update_online_adsA | Applies the current content of local ad files to the matching ads on Kleinanzeigen, in place (id, age and watchers stay). |
| kleinanzeigen_set_ads_reservedA | reserved: true marks ads as reserved (hidden from search, id/views/watchers kept); reserved: false makes them active again. |
| kleinanzeigen_extend_adsA | Extends ads that expire within the next 8 days (free, does not count as a new ad). Ads outside that window are skipped. |
| kleinanzeigen_delete_online_adsA | Deletes ads from your Kleinanzeigen account. This cannot be undone. The local ad files are kept, so the ads can be published again later. |
| kleinanzeigen_import_online_adsA | Downloads ads from your Kleinanzeigen account (text and images) into the workspace, so they can be changed, republished or extended here. Default: only ads that are not in the workspace yet. |
| kleinanzeigen_check_setupA | Checks what publishing needs: kleinanzeigen-bot installed, workspace and config.yaml, credentials set, browser session present. Does not contact Kleinanzeigen. Call it first when a publishing tool fails. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| find_deal | Search Kleinanzeigen for an item, compare the best offers and judge the prices. |
| create_ad | Turn notes and photos into a complete Kleinanzeigen ad, with price research, then publish it. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| ad-guide | How to fill in the fields of a Kleinanzeigen ad, with allowed values. |
TDQS
Scored across 17 tools
Most tools are clearly differentiated, and descriptions explicitly cross-reference near-neighbours (e.g. update_ad vs update_online_ads, delete_local_ad vs delete_online_ads, publish_ads vs save_drafts). The main residual overlap is between kleinanzeigen_list_local_ads and kleinanzeigen_list_my_ads, plus the local/online delete pair, which an agent must read carefully to separate.
Every tool shares the kleinanzeigen_ prefix with consistent snake_case verb_noun structure (search, get_listing, create_ad, update_ad, delete_local_ad, publish_ads). Qualifiers (local/online) are applied uniformly so names read predictably.
17 tools is slightly heavy but each maps to a distinct step in a real workflow (search, draft, publish, update, reserve, extend, import, verify, setup). The count reflects the two-sided nature of the domain (local workspace vs online account) rather than bloat.
The full lifecycle is covered: discovery (search/get_listing/category_fields), local CRUD, publishing and drafts, in-place online updates, reservation, expiry extension, deletion on both sides, import, plus validation and setup diagnostics. No obvious dead ends for managing Kleinanzeigen ads.