Skip to main content

MCP server for Marktplaats & 2dehands - search Dutch and Belgian classifieds from Claude, Cursor, Codex and any MCP client.

Project description

marktplaats-mcp: search Marktplaats and 2dehands from any AI agent

English | Nederlands | Français

marktplaats-mcp

marktplaats-mcp is an MCP server that lets Claude, Cursor, Codex, opencode and every other MCP client search Marktplaats and 2dehands, the Dutch and Belgian second-hand classifieds. Find bargains, vet sellers, browse categories and monitor new listings in plain language.

PyPI version Python versions License: MIT CI Downloads Ruff

✨ Features

  • 🔍 Powerful search: free text, categories, price range, condition, distance from a postal code, recency, sorting
  • 🇳🇱🇧🇪 Two marketplaces, one server: marktplaats.nl (Netherlands) and 2dehands.be (Belgium) via a site parameter
  • 📄 Full listing details: complete description, all photos, view and favorite counts, listing age
  • 🛡️ Seller vetting: verified bank account, identity and phone, review score
  • 🔔 New-listing monitoring: poll for ads placed after a timestamp with a stateless cursor
  • 🧠 Built for LLMs: compact token-efficient output, paid promotions filtered out, structured results, pagination hints
  • 🔁 Resilient: retries with exponential backoff, jitter and Retry-After handling
  • 🔓 No account, no API key

🚀 Quickstart

The only prerequisite is uv (brew install uv or curl -LsSf https://astral.sh/uv/install.sh | sh).

Claude Code, one command:

claude mcp add marktplaats -- uvx marktplaats-mcp

Then ask: "Search Marktplaats for an OLED TV under €400 near 3011 AB."

📦 Install in your favorite client

Every config runs the same stdio server via uvx marktplaats-mcp.

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\), then fully restart Claude Desktop:

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

If Claude Desktop can't find uvx, use the absolute path (which uvx, e.g. /Users/you/.local/bin/uvx).

OpenAI Codex CLI

Add to ~/.codex/config.toml:

[mcp_servers.marktplaats]
command = "uvx"
args = ["marktplaats-mcp"]

Or: codex mcp add marktplaats -- uvx marktplaats-mcp

opencode

Add to opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "marktplaats": {
      "type": "local",
      "command": ["uvx", "marktplaats-mcp"],
      "enabled": true
    }
  }
}
Cursor

Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):

{
  "mcpServers": {
    "marktplaats": {
      "command": "uvx",
      "args": ["marktplaats-mcp"]
    }
  }
}
VS Code / GitHub Copilot

Add to .vscode/mcp.json (note the servers key and explicit type):

{
  "servers": {
    "marktplaats": {
      "type": "stdio",
      "command": "uvx",
      "args": ["marktplaats-mcp"]
    }
  }
}
Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "marktplaats": {
      "command": "uvx",
      "args": ["marktplaats-mcp"]
    }
  }
}
Gemini CLI

Add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "marktplaats": {
      "command": "uvx",
      "args": ["marktplaats-mcp"]
    }
  }
}
JetBrains IDEs (AI Assistant / Junie)

Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add:

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

🧰 Tools

Tool What it does
search_listings Search with query, category, price range, condition, distance, recency, sorting and pagination
get_listing_details Full ad: complete description, all images, view and favorite counts, listing age
get_seller_profile Trust signals: verified bank, identity and phone, review score and count
list_categories Browse the category tree (names + ids) used for filtering
check_new_listings Newest-first monitoring with a stateless cursor: returns only ads placed after since

All five tools are read-only and carry the matching MCP annotations, so clients skip the confirmation prompts.

Example prompts

  • "Find a second-hand iPhone 15 under €600 in as-good-as-new condition, sorted by price."
  • "Search 2dehands for a bakfiets within 20 km of postcode 2000 Antwerpen."
  • "Is seller 12345 trustworthy? Check their profile."
  • "Check for new 'vintage lamp' listings since my last check and summarize the interesting ones."

❓ FAQ

Does this need a Marktplaats account or API key? No. It uses the same public JSON endpoints the website itself uses.

Is this an official Marktplaats product? No. This is an independent open source project with no ties to Marktplaats or Adevinta. The underlying API is undocumented and may change. The server backs off politely on rate limits; keep your own usage reasonable.

Why do I sometimes see fewer results than the limit? Paid promotions (DAGTOPPER/TOPADVERTENTIE) are filtered out by default. Pass include_sponsored=true if you want them.

Which Python versions are supported? 3.10 and up. CI tests 3.11 through 3.13 on Linux, macOS and Windows.

🗺️ Roadmap

  • Persistent saved searches with price-drop detection
  • Notifications (Discord/Telegram/ntfy via Apprise)
  • Authenticated tools (your messages, favorites and bids)
  • Docker image + Docker MCP Catalog

🤝 Contributing

PRs welcome. See CONTRIBUTING.md for the dev setup: uv sync --all-groups, then uv run pytest.

This project reuses proven ideas from marktplaats-py, marktplaats-monitor, marktplaats-2dehands-mcp and PonClick/marktplaats-mcp. Details in THIRD_PARTY_NOTICES.md.

📄 License

MIT © 2026 jasp-nerd


mcp-name: io.github.jasp-nerd/marktplaats-mcp

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marktplaats_mcp-0.1.1.tar.gz (245.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marktplaats_mcp-0.1.1-py3-none-any.whl (53.5 kB view details)

Uploaded Python 3

File details

Details for the file marktplaats_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: marktplaats_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 245.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for marktplaats_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e9b4c94d42051c7783e56c8a6573e678e27c3eff61d841b9062f2b55289e1972
MD5 b8231c27aa9fdbf8ac934aa5b5a2a055
BLAKE2b-256 6c475b38cb671c7cae90d6ab54a33df1755504e7bb171a4337b0f0f68d47fb57

See more details on using hashes here.

Provenance

The following attestation bundles were made for marktplaats_mcp-0.1.1.tar.gz:

Publisher: release.yml on jasp-nerd/marktplaats-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file marktplaats_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: marktplaats_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 53.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for marktplaats_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 429eb3393bad0e7b8200cb946548a00a7f5e6e77454e49683c219bb2b2d3d0a7
MD5 78fa54cf53aa822f6fd79c6a125f3b80
BLAKE2b-256 79f5458ff64855002de06bee6228beb852376dc8cfbd1daeeb6be220d2823d8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for marktplaats_mcp-0.1.1-py3-none-any.whl:

Publisher: release.yml on jasp-nerd/marktplaats-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page