Summary
Marktplaats API v2 for sellers on Marktplaats.nl and 2dehands / 2ememain.be (one API, site as a choice): own advertisements with photos and attributes, statistics, bids and messages to bidders, categories, paid features and orders. OAuth2 for registered API partners.
Guided setup
Connect Marktplaats and 2dehands to Claude, ChatGPT or Copilot in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Marktplaats and 2dehands in the guided setup, then add your MCP URL to your AI assistant. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for Marktplaats and 2dehands
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Marktplaats and 2dehands, choose the site, paste the client ID and secret from Marktplaats, click Authorize with Provider and sign in with your seller account, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Marktplaats and 2dehands
Marktplaats API v2 for sellers on Marktplaats.nl and 2dehands / 2ememain.be (one API, site as a choice): own advertisements with photos and attributes, statistics, bids and messages to bidders, categories, paid features and orders. OAuth2 for registered API partners.
Setup
Access: the API is for registered API partners. Ask Marktplaats for API access (business sellers and their software partners); Marktplaats registers an app for your redirect URI and sends a client ID and client secret. Each platform has its own clients and accounts: an app for Marktplaats cannot place ads on 2dehands and the other way round.
- When asking for access, give Marktplaats this connector's redirect URI:
<your AnythingMCP URL>/api/mcp-oauth/callback(on AnythingMCP Cloudhttps://cloud.anythingmcp.com/api/mcp-oauth/callback). - Choose the site in
MARKTPLAATS_SITE: marktplaats.nl, 2dehands.be or 2ememain.be (2dehands and 2ememain are one platform, with default language nl-BE or fr-BE). - Paste the client ID and secret into
MARKTPLAATS_CLIENT_IDandMARKTPLAATS_CLIENT_SECRET, install, then click Authorize with Provider and sign in with the seller account. Every refresh returns a new refresh token, which the connector stores.
Where to start: marktplaats_get_me gives the seller's userId; marktplaats_list_my_advertisements lists their ads; marktplaats_get_advertisement_statistics shows views, messages and bids per ad.
Placing an ad: 1) marktplaats_list_categories and marktplaats_get_category for a level-2 category, 2) marktplaats_list_category_attributes for the writable attributes and allowed values (some are mandatory, e.g. manufacturer fields for traders under the GPSR), 3) marktplaats_create_advertisement, 4) marktplaats_add_advertisement_images. Check a postcode with marktplaats_lookup_postcode.
Changing ads: marktplaats_update_advertisement takes JSON Patch operations; give all locales when replacing /translations. marktplaats_get_advertisement and marktplaats_list_advertisement_images read the current state. marktplaats_delete_advertisement is installed switched off.
Bids: marktplaats_list_bids, marktplaats_get_bid, and marktplaats_message_bidder to answer a bidder by e-mail. marktplaats_delete_bid is installed switched off.
Paid products: marktplaats_list_advertisement_features shows prices. marktplaats_buy_advertisement_feature and marktplaats_renew_advertisement charge the seller's invoice and are installed switched off. marktplaats_get_order reads an order of paid products; marktplaats_list_advertisement_transactions shows payments handled by a partner. marktplaats_get_user reads a user.
Formats: all money is in euro cents (1550 = EUR 15.50). Ad ids (itemId) look like m1234567890; user, bid, order and category ids are numbers. Times are ISO 8601 in UTC. Answers are HAL JSON: lists sit under _embedded, links under _links. Ad lists page with limit (up to 100) and an offset that is a multiple of the limit.
Errors: 400 validation-failure lists field errors (missing-required-field, input-invalid, unknown-field and others), 401 means the token expired or belongs to another user, 403 the ad or bid is not yours, 404 not found, 409 a patch could not be applied.
Prerequisites: MARKTPLAATS_SITE, MARKTPLAATS_CLIENT_ID, MARKTPLAATS_CLIENT_SECRET
Install the connector locally
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Open http://localhost:3000/connectors/store, pick Marktplaats and 2dehands and paste in the env vars listed under Prerequisites.
Available tools
| Tool | What it does |
|---|---|
marktplaats_get_me | The signed-in seller (GET /v2/me answers with a redirect to the user): userId, name, email, phone number, postcode, status, dealerPackage… |
marktplaats_get_user | One user by id; email, phone and postcode only for the signed-in user |
marktplaats_list_my_advertisements | The signed-in seller's advertisements (embedded under mp:advertisements): itemId, categoryId, translations, priceModel, location, seller… |
marktplaats_get_advertisement | One of the seller's advertisements: categoryId, translations (title and description per locale), priceModel (prices in euro cents)… |
marktplaats_create_advertisement | Place a new advertisement in a level-2 category: translations (title and description), priceModel (euro cents), location (postcode), and… |
marktplaats_update_advertisement | Change an advertisement with JSON Patch operations (op replace, add or remove, path, value): /translations (all locales must be given)… |
marktplaats_delete_advertisement | Delete an advertisement. It cannot be undone; paid features on it are lost. Installed switched off |
marktplaats_add_advertisement_images | Attach photos to an advertisement from public URLs (JPG, PNG or BMP under 8 MB, no GIF), in the given order; replace_all swaps out the… |
marktplaats_list_advertisement_images | Photos of an advertisement: imageId, mediaId, status and links in small, medium, large and xlarge sizes |
marktplaats_get_advertisement_statistics | Statistics of an advertisement: numberOfViews, numberOfAsqs (buyer messages), numberOfBids, numberOfUrlClicks, numberOfPhoneClicks… |
marktplaats_list_bids | Bids on an advertisement, highest first: bid id, amount in euro cents, bidder id and nickname, placeDate |
marktplaats_get_bid | One bid on an advertisement: amount in euro cents, bidder and placeDate |
marktplaats_message_bidder | Send an e-mail message to the bidder of a bid on your own advertisement (ask bidder question), with your phone number |
marktplaats_delete_bid | Delete a bid on your advertisement. It cannot be undone. Installed switched off |
marktplaats_list_advertisement_features | Paid features available for an advertisement (omhoogplaatsen, dagtopper, dagtopper7, homepaginaAdvertentie and others) with price in euro… |
marktplaats_buy_advertisement_feature | Buy a paid feature for an advertisement and pay it by invoice (pay true, API partners only). Costs money. Installed switched off |
marktplaats_renew_advertisement | Renew an advertisement that is about to expire (renewPossible true, usually in its last 7 days); paid by invoice. Costs money. Installed… |
marktplaats_list_advertisement_transactions | Transactions on an advertisement handled by a payment partner: transactionId, buyerId, amount and shippingCosts in euro cents, status |
marktplaats_get_order | One order of paid products (features, renewals): orderId, status (new, payment required, paid, refused, closed), total price in euro cents… |
marktplaats_list_categories | All categories of the site: level-1 categories with their level-2 children (categoryId, name). Ads go into level-2 categories |
marktplaats_get_category | One level-1 or level-2 category by id (categoryId, name) with its embedded children |
marktplaats_list_category_attributes | Attributes of a level-2 category: key, labels, type, options (allowed values), mandatory, writable, updateable, min and max. Use the keys… |
marktplaats_lookup_postcode | Location details for a postcode (street, city, province, provinceShortCode), to check a postcode before placing an ad |
Example prompts
- "How many views and favourites did my Marktplaats ads get this week?"
- "Which bids are open on my ad for the oak dining table?"
- "Send the highest bidder a message that the table can be picked up on Saturday."
- "Place a new ad for a road bike at 450 EUR in the right category."
- "Which of my ads expire in the next 7 days?"
Next steps
Was this guide helpful?