kleinanzeigen-mcp-v2 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md ADDED
@@ -0,0 +1,74 @@
1
+ # Kleinanzeigen MCP Server (English summary)
2
+
3
+ 🇩🇪 The main documentation is in German: [README.md](./README.md). This page is a short English summary.
4
+
5
+ An MCP server (spec 2026-07-28) for [kleinanzeigen.de](https://www.kleinanzeigen.de), Germany's largest classifieds
6
+ site:
7
+
8
+ - **Search** reads the public search and listing pages directly. No account or extra software needed.
9
+ - **Your own ads** are files in a local workspace (`~/Kleinanzeigen`). Publishing, updating, deleting, reserving,
10
+ extending and importing are done by [kleinanzeigen-bot](https://github.com/Second-Hand-Friends/kleinanzeigen-bot),
11
+ which drives a browser signed in to your account.
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ claude mcp add kleinanzeigen \
17
+ --env KLEINANZEIGEN_BOT_USERNAME=you@example.com \
18
+ --env KLEINANZEIGEN_BOT_PASSWORD=your-password \
19
+ --env KLEINANZEIGEN_UPLOAD_DIRS=$HOME/Pictures/sell \
20
+ -- npx -y kleinanzeigen-mcp-v2@1
21
+ ```
22
+
23
+ The password is then stored in plain text in your client's config file: use a password you use nowhere else, or the
24
+ `.mcpb` bundle (`npm run pack:mcpb`), which marks it as a sensitive field. Point `KLEINANZEIGEN_UPLOAD_DIRS` at a
25
+ folder just for the photos you sell, not at `~/Pictures`.
26
+
27
+ For search only, leave out the `KLEINANZEIGEN_BOT_*` variables. For your own ads:
28
+
29
+ 1. Install the [kleinanzeigen-bot](https://github.com/Second-Hand-Friends/kleinanzeigen-bot/releases) binary and put
30
+ it on `PATH` (or set `KLEINANZEIGEN_BOT_PATH`). Drafts and category fields need the `preview` release.
31
+ 2. Sign in once in a terminal (SMS code or CAPTCHA may be required). Read the password without echo so it stays out
32
+ of your shell history: `printf 'Password: ' && read -rs KLEINANZEIGEN_BOT_PASSWORD && export KLEINANZEIGEN_BOT_PASSWORD`,
33
+ then `KLEINANZEIGEN_BOT_USERNAME=you@example.com npx -y kleinanzeigen-mcp-v2@1 login`. The browser profile in the
34
+ workspace works like a password; keep the workspace out of cloud sync folders.
35
+ 3. Ask your assistant to run `kleinanzeigen_check_setup`.
36
+
37
+ ## Tools
38
+
39
+ - **Search:** `kleinanzeigen_search`, `kleinanzeigen_get_listing`
40
+ - **Local ads:** `kleinanzeigen_list_local_ads`, `kleinanzeigen_verify_ads`, `kleinanzeigen_create_ad`,
41
+ `kleinanzeigen_update_ad`, `kleinanzeigen_delete_local_ad`
42
+ - **Your account:** `kleinanzeigen_list_my_ads`, `kleinanzeigen_get_category_fields`, `kleinanzeigen_publish_ads`,
43
+ `kleinanzeigen_save_drafts`, `kleinanzeigen_update_online_ads`, `kleinanzeigen_set_ads_reserved`,
44
+ `kleinanzeigen_extend_ads`, `kleinanzeigen_delete_online_ads`, `kleinanzeigen_import_online_ads`
45
+ - **Setup:** `kleinanzeigen_check_setup`
46
+
47
+ Publishing, updating, reserving and deleting ask for confirmation first. The confirmation lists what becomes public
48
+ or is lost (price, location, a public street or phone number, photo file names, the start of the description, what
49
+ an update changes). If your client declines the confirmation dialog automatically, set
50
+ `KLEINANZEIGEN_CONFIRMATION=tool` and keep your client's per-call approval on for these tools.
51
+
52
+ Listing texts from other users are marked as untrusted data. Bot output is scrubbed of your credentials. After an IP
53
+ block or a CAPTCHA the server pauses account requests instead of retrying.
54
+
55
+ ## Configuration
56
+
57
+ | Variable | Default | Meaning |
58
+ |---|---|---|
59
+ | `KLEINANZEIGEN_BOT_USERNAME` / `_PASSWORD` | – | Your Kleinanzeigen login |
60
+ | `KLEINANZEIGEN_WORKSPACE` | `~/Kleinanzeigen` | `config.yaml`, `ads/`, browser profile |
61
+ | `KLEINANZEIGEN_BOT_PATH` | `kleinanzeigen-bot` on `PATH` | The bot executable |
62
+ | `KLEINANZEIGEN_UPLOAD_DIRS` | – | Folders whose images may be used in ads |
63
+ | `KLEINANZEIGEN_READ_ONLY` | `false` | Register only read tools |
64
+ | `KLEINANZEIGEN_HEADLESS` | `true` | `false` shows the bot's browser |
65
+ | `KLEINANZEIGEN_CONFIRMATION` | `elicitation` | `tool`: no dialog, `confirm: true` required |
66
+ | `KLEINANZEIGEN_BOT_MIN_INTERVAL_MS` | `5000` | Minimum pause between two bot runs that sign in |
67
+
68
+ ## Disclaimer
69
+
70
+ Independent community project, not affiliated with Kleinanzeigen or the kleinanzeigen-bot project. Automated access
71
+ may conflict with the Kleinanzeigen terms of use; use it in moderation, for your own account only, at your own risk.
72
+ kleinanzeigen-bot (AGPL-3.0) is installed separately and only started as an external program.
73
+
74
+ License: [MIT](./LICENSE)