Skip to main content
Glama
marktplaats-mcp

marktplaats-mcp

by jasp-nerd
README.md
<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/jasp-nerd/marktplaats-mcp/main/assets/hero-dark.webp">
  <img src="https://raw.githubusercontent.com/jasp-nerd/marktplaats-mcp/main/assets/hero-light.webp" alt="marktplaats-mcp: an AI assistant browsing second-hand finds on Marktplaats and 2dehands" width="820">
</picture>

# Marktplaats & 2dehands MCP server

**Let your AI assistant search, watch and bid on Marktplaats.nl and 2dehands.be.**

Find listings, vet sellers, check what a fair price is and catch new ads, from Claude, ChatGPT,<br>
Cursor or any MCP client. Log in with your own account to answer messages and place bids. No API key.

[![PyPI](https://img.shields.io/pypi/v/marktplaats-mcp?color=FF8800)](https://pypi.org/project/marktplaats-mcp/)
[![Downloads](https://img.shields.io/pypi/dm/marktplaats-mcp?color=2E3A4F)](https://pypi.org/project/marktplaats-mcp/)
[![CI](https://github.com/jasp-nerd/marktplaats-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/jasp-nerd/marktplaats-mcp/actions/workflows/ci.yml)
[![Live API canary](https://github.com/jasp-nerd/marktplaats-mcp/actions/workflows/e2e.yml/badge.svg)](https://github.com/jasp-nerd/marktplaats-mcp/actions/workflows/e2e.yml)
[![MCP Registry](https://img.shields.io/badge/MCP_Registry-listed-2E3A4F)](https://registry.modelcontextprotocol.io/v0/servers?search=marktplaats)
[![License: MIT](https://img.shields.io/badge/license-MIT-green)](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/LICENSE)

[![Install in Cursor](https://img.shields.io/badge/Install_in_Cursor-000000?style=for-the-badge&logo=cursor&logoColor=white)](https://cursor.com/install-mcp?name=marktplaats&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyJtYXJrdHBsYWF0cy1tY3AiXX0=)
[![Install in VS Code](https://custom-icon-badges.demolab.com/badge/Install_in_VS_Code-007ACC?style=for-the-badge&logo=vsc&logoColor=white)](https://vscode.dev/redirect/mcp/install?name=marktplaats&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22marktplaats-mcp%22%5D%7D)
[![Install in LM Studio](https://img.shields.io/badge/Install_in_LM_Studio-4F46E5?style=for-the-badge&logo=lmstudio&logoColor=white)](https://lmstudio.ai/install-mcp?name=marktplaats&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyJtYXJrdHBsYWF0cy1tY3AiXX0%3D)
[![Claude Code](https://img.shields.io/badge/Add_to_Claude_Code-D97757?style=for-the-badge&logo=claude&logoColor=white)](#install)

**[Install](#install)** · [Try asking](#try-asking) · [Tools](#tools) · [Your account](#use-your-own-account) · [Safety](#safety) · [FAQ](#faq)

**English** · [Nederlands](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/README.nl.md) · [Français](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/README.fr.md)

</div>

## Install

There are two ways to run it. Pick the one your client supports.

| | **Hosted:** paste a URL | **Local:** `uvx marktplaats-mcp` |
|---|---|---|
| Setup | Nothing to install | One command, needs [uv](https://docs.astral.sh/uv/getting-started/installation/) |
| Tools | Search, listing details, seller checks, prices, new-ad alerts | All of that, plus your messages, favorites, bids and ads |
| Clients | claude.ai, ChatGPT, Le Chat, Perplexity, Gemini app | Claude Code, Claude Desktop, Cursor, VS Code, Codex, Gemini CLI and more |

Hosted URL: `https://marktplaats-mcp.jaspnerd.dev/mcp`

For a local install, get uv first: `brew install uv` on macOS, `winget install --id=astral-sh.uv -e` on Windows, or the [one-line installer](https://docs.astral.sh/uv/getting-started/installation/).

<details open>
<summary><b>Claude Code</b></summary>

```bash
claude mcp add --scope user marktplaats -- uvx marktplaats-mcp
```

Check with `claude mcp list`. The first start can take a minute while `uvx` downloads the package.

</details>

<details>
<summary><b>claude.ai and Claude Desktop</b></summary>

**Hosted (all plans, including Free and mobile):** open **Settings → Connectors → Add custom connector**, name it *Marktplaats* and paste `https://marktplaats-mcp.jaspnerd.dev/mcp`. No sign-in needed.

**Local, with your own account (Claude Desktop):** open **Settings → Developer → Edit Config** and add the server to `claude_desktop_config.json`, then quit and reopen Claude:

```json
{
  "mcpServers": {
    "marktplaats": { "command": "uvx", "args": ["marktplaats-mcp"] }
  }
}
```

If Claude cannot find `uvx`, use its full path (`which uvx`).

</details>

<details>
<summary><b>ChatGPT</b></summary>

ChatGPT connects to hosted servers only (Plus, Pro, Business, Enterprise and Edu).

1. **Settings → Security and login**: turn on **Developer mode**.
2. On [chatgpt.com/plugins](https://chatgpt.com/plugins) click **+**, paste `https://marktplaats-mcp.jaspnerd.dev/mcp`, choose **No authentication** and click **Create**.
3. In a new chat click **+ → Developer mode** and tick *Marktplaats*.

</details>

<details>
<summary><b>Cursor</b></summary>

Click **[Install in Cursor](https://cursor.com/install-mcp?name=marktplaats&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyJtYXJrdHBsYWF0cy1tY3AiXX0=)**, or add this to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "marktplaats": { "command": "uvx", "args": ["marktplaats-mcp"] }
  }
}
```

</details>

<details>
<summary><b>VS Code and GitHub Copilot</b></summary>

Click **[Install in VS Code](https://vscode.dev/redirect/mcp/install?name=marktplaats&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22marktplaats-mcp%22%5D%7D)** (or [Insiders](https://insiders.vscode.dev/redirect/mcp/install?name=marktplaats&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22marktplaats-mcp%22%5D%7D)), or run:

```bash
code --add-mcp '{"name":"marktplaats","command":"uvx","args":["marktplaats-mcp"]}'
```

Then use the tools in Copilot Chat in **Agent** mode.

</details>

<details>
<summary><b>Codex</b> (CLI, IDE extension and ChatGPT desktop app)</summary>

```bash
codex mcp add marktplaats -- uvx marktplaats-mcp
```

</details>

<details>
<summary><b>Gemini CLI</b></summary>

```bash
gemini mcp add -s user marktplaats uvx marktplaats-mcp
```

</details>

<details>
<summary><b>Any other client</b></summary>

Most clients take the standard config:

```json
{
  "mcpServers": {
    "marktplaats": { "command": "uvx", "args": ["marktplaats-mcp"] }
  }
}
```

Clients that accept a remote server can use `https://marktplaats-mcp.jaspnerd.dev/mcp` instead.

</details>

Step-by-step guides for 40 clients (Windsurf, Cline, JetBrains, Zed, opencode, Goose, Le Chat, Perplexity and more), with config paths per OS and fixes for common problems: **[docs/clients.md](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/docs/clients.md)**.

## Try asking

<p align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/jasp-nerd/marktplaats-mcp/main/assets/demo-dark.webp">
    <img src="https://raw.githubusercontent.com/jasp-nerd/marktplaats-mcp/main/assets/demo-light.webp" alt="Example: an AI assistant searches Marktplaats for a racefiets, checks the sellers and compares prices" width="720">
  </picture>
  <br><sub>An example conversation.</sub>
</p>

| You ask | Your assistant |
|---|---|
| *"Find a racefiets under €500 within 25 km of 1011 AB, frame 57-61 cm"* | searches with the frame-size filter and a distance from your postcode |
| *"Is €450 a fair price for an iPhone 15 128 GB in good condition?"* | compares the median, quartiles and cheapest asking prices |
| *"Find a used Golf, 2018-2022, under 100,000 km, petrol, from a private seller"* | looks up the car filters, then searches with them |
| *"Is this seller trustworthy? What else are they selling?"* | checks verifications, reviews and the seller's other ads |
| *"Tell me when new bakfiets ads appear near Antwerp"* | polls 2dehands for ads placed since the last check |
| *"Ask the seller if it's still available and offer €120"* | shows you the message first, sends it after you confirm |

## Tools

**No account needed** (also on the hosted server):

| Tool | What it does |
|---|---|
| `search_listings` | Search by keyword, category, brand, size and other category filters, price, condition, delivery, distance from a postcode and age of the ad |
| `get_listing_details` | The full ad: description, attributes, status, views, bids and minimum bid, shipping, photos, seller response rate. Accepts a pasted URL |
| `get_seller_profile` | Trust signals: verified bank account, ID and phone, business status, reviews |
| `list_seller_listings` | Everything one seller has on offer, to spot dealers and duplicate ads |
| `analyze_prices` | Median, quartiles, min and max asking price for a search, plus the cheapest matches |
| `check_new_listings` | Only the ads placed since your last check, newest first; never skips one |
| `list_categories`, `list_category_filters` | The category tree, and the filters each category supports with their valid values |

**With your own account** (local server, after [`marktplaats-mcp login`](#use-your-own-account)):

| Tool | What it does |
|---|---|
| `get_my_account` | Session check, unread messages and notifications |
| `list_conversations`, `get_conversation` | Your inbox and full message threads |
| `list_my_listings`, `list_favorites`, `list_my_bids`, `list_saved_searches` | Your ads with views and bids, your favorites, bids and saved searches |
| `send_message`, `contact_seller` ✋ | Reply in a thread, or ask a seller a question or make an offer |
| `place_bid` ✋ | Place a bid (binding on Marktplaats); refuses bids below the minimum |
| `set_favorite`, `extend_my_listing` | Save or unsave a listing; renew one of your ads |

✋ Shows a preview first and only acts after you confirm. Every tool works on 2dehands with `site="2dehands"`. Two ready-made prompts, `bargain_hunt` and `vet_listing`, cover the common workflows.

## Use your own account

Marktplaats has no public API and logs in with SMS codes, so this server never asks for your password. It copies the session from a browser where you are already logged in:

```bash
uvx --from 'marktplaats-mcp[login]' marktplaats-mcp login
```

Restart your MCP client and the account tools appear. The session stays on your machine, in `~/.config/marktplaats-mcp/session.json`, readable by you only. Sessions last weeks; when one expires the tools tell you to log in again.

```bash
marktplaats-mcp login --site 2dehands  # your 2dehands.be session (or --site both)
marktplaats-mcp login --read-only      # never send, bid or change favorites
marktplaats-mcp login --window         # log in in a new browser window instead
marktplaats-mcp login --paste          # paste a Cookie header from DevTools instead
marktplaats-mcp status                 # is the stored session still valid?
marktplaats-mcp logout                 # delete it
```

<details>
<summary><b>Login says it could not read your browser's cookies</b></summary>

- **macOS** blocks command-line tools from reading browser data without asking. Once, open **System Settings → Privacy & Security → Full Disk Access**, add your terminal app (Terminal, iTerm, Warp or VS Code), quit and reopen it, and run the login again.
- **Windows:** Chrome and Edge lock their cookie file while they run. The tool copies it first, so this normally works; if not, close the browser and try again, or use `--paste`.
- **Linux:** Chromium browsers keep the cookie key in your keyring (GNOME Keyring or KWallet), which must be unlocked; Firefox needs nothing. For Snap or Flatpak browsers, use `--paste`.
- **Anywhere:** `marktplaats-mcp login --paste` needs no permissions. On marktplaats.nl press F12 → Network, click any request, copy the `Cookie` request header and paste it.

</details>

You can also set `MARKTPLAATS_COOKIE` or `TWEEDEHANDS_COOKIE` (the `Cookie` request header) in your client's config. All settings: [docs/configuration.md](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/docs/configuration.md).

## Safety

- **No account by default.** Searching, listing details, seller checks, prices and new-ad alerts need no login.
- **Your session stays yours.** It is read from your browser or a file only you can read, sent only to marktplaats.nl and 2dehands.be, and never logged. The hosted server has no account tools at all.
- **Nothing is sent without you.** Messages, offers and bids show a preview and need your confirmation. `login --read-only` or `MARKTPLAATS_READ_ONLY=1` turns all writing off, and every confirmed action is logged locally.
- **Listings are treated as data.** Ad texts and messages are written by strangers; the server tells the model never to follow instructions in them.
- **Polite to the sites.** Requests are spaced out and retried with backoff, and search results are cached for a minute. No placing ads (Marktplaats' terms forbid automating that), no affiliate links, no tracking.

## FAQ

<details>
<summary><b>Is this an official Marktplaats product?</b></summary>

No. It is an independent open source project with no ties to Marktplaats, 2dehands or Adevinta. It uses the same public JSON endpoints the websites use. They are undocumented and can change, so a live canary tests them every day.

</details>

<details>
<summary><b>Do I need an account or API key?</b></summary>

No. Only the account tools need a login, and they use your existing browser session instead of a password.

</details>

<details>
<summary><b>Does it work for Belgium?</b></summary>

Yes. Every tool takes `site="2dehands"`, and `language="nl"` or `"fr"` narrows Belgian results to one language.

</details>

<details>
<summary><b>Why do I get fewer results than I asked for?</b></summary>

Paid promotions (Dagtopper, Topadvertentie) are filtered out by default; pass `include_sponsored=true` to keep them. `total_count` is the site's own count, before that filter.

</details>

<details>
<summary><b>Which Python versions are supported?</b></summary>

3.10 and newer. `uvx` downloads a suitable Python for you if needed.

</details>

## More

- [Install guides for 40 clients](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/docs/clients.md)
- [Configuration](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/docs/configuration.md): every environment variable, for the local and hosted server
- [How this compares](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/docs/comparison.md) to the other Marktplaats MCP servers
- [Changelog](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/CHANGELOG.md)

## Contributing

PRs are welcome: see [CONTRIBUTING.md](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/.github/CONTRIBUTING.md). In short: `uv sync --all-groups`, then `uv run pytest`. Planned next: searching Marktplaats and 2dehands in one call, creating saved searches, and a Claude Desktop extension (MCPB).

Built on ideas from [marktplaats-py](https://github.com/jensjeflensje/marktplaats-py), [marktplaats-monitor](https://github.com/jasp-nerd/marktplaats-monitor), [marktplaats-2dehands-mcp](https://github.com/gjoris/marktplaats-2dehands-mcp) and [PonClick/marktplaats-mcp](https://github.com/PonClick/marktplaats-mcp) ([notices](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/THIRD_PARTY_NOTICES.md)). If it saved you a trip to Marktplaats, a star helps others find it.

---

<sub>[MIT](https://github.com/jasp-nerd/marktplaats-mcp/blob/main/LICENSE) © 2026 jasp-nerd. Unofficial; not affiliated with Marktplaats, 2dehands or Adevinta.</sub>

<sub>mcp-name: io.github.jasp-nerd/marktplaats-mcp</sub>

TDQS

A4.1/5.0

Scored across 8 tools

Disambiguation5/5

Each tool targets a distinct concern: listing retrieval, search, seller trust, seller inventory, category browsing, filter discovery, polling, and price analysis. There is no meaningful overlap between them.

Naming Consistency4/5

Tool names follow a consistent verb_noun pattern (get_, search_, list_, check_, analyze_). Minor deviation: list_categories and list_category_filters are similar in prefix but clearly distinct in purpose.

Tool Count5/5

8 tools is well-scoped for a marketplace MCP server. Each tool covers a distinct user need without redundancy or bloat.

Completeness4/5

The surface covers search, detail retrieval, seller trust, category/filter discovery, polling, and price analysis. Missing operations like placing bids or posting listings are likely out of scope for a read-only research-oriented server, so the gap is minor.

Maintenance

ActivityMaintained
ResponsivenessLimited data