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 Microsoft 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 Microsoft Copilot. 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 + Microsoft Copilot
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.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
MARKTPLAATS_SITE, MARKTPLAATS_CLIENT_ID, MARKTPLAATS_CLIENT_SECRET
Step 1 — Get credentials
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.
Step 2 — Install the adapter
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
Step 3 — Add the connector in Microsoft Copilot
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Microsoft Copilot uses MCP servers through agents built in Copilot Studio: you add AnythingMCP to an agent as a tool, then publish the agent to Microsoft 365 Copilot and Teams. Copilot Studio connects from Microsoft's cloud over Streamable HTTP, which AnythingMCP supports.
- In Copilot Studio, open your agent (or create one), go to Tools and choose Add a tool → New tool → Model Context Protocol.
- Enter a Server name (for example
AnythingMCP), a Server description that says what the connector does, and the Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID. Copilot Studio uses the description to decide when to call the server. - Under authentication, choose API key, set Type to Header and the header name to
X-API-Key, then select Create. - In Add tool, choose Create a new connection, paste an MCP API key from AnythingMCP (MCP Servers → your server → API keys) and select Add to agent.
- Try it in the agent's Test pane: ask for something that needs the
Marktplaats and 2dehandstools. - Select Publish, then Channels → Microsoft 365 and Microsoft Teams, keep Make agent available in Microsoft Copilot selected and choose Add channel. See agent in Teams installs it for you; in Microsoft 365 Copilot, type @ and pick the agent.
Prefer per-user sign-in? Choose OAuth 2.0 → Dynamic discovery instead of an API key: each user then signs in to AnythingMCP the first time the agent calls it.
Self-hosting? Use your instance's public HTTPS address instead of https://cloud.anythingmcp.com. Copilot Studio connects from Microsoft's cloud, so localhost does not work.
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?"
FAQ
Who can use it? Registered API partners. Ask Marktplaats for API access with this connector's redirect URI; it sends a client ID and secret for one platform. Marktplaats.nl and 2dehands / 2ememain.be have separate clients and accounts.
What does it cover? Your own advertisements with photos and attributes, statistics, bids and messages to bidders, categories, paid features and orders. It does not search other sellers' ads.
Which tools install switched off? marktplaats_delete_advertisement, marktplaats_delete_bid, marktplaats_buy_advertisement_feature and marktplaats_renew_advertisement, because buying features and renewals cost money. Switch them on on the connector page only if the AI should use them.
Which Copilot is this for? Microsoft 365 Copilot at work, through agents built in Copilot Studio. The Microsoft Copilot app for personal accounts has no option to add your own MCP server.
What do I need? A work account with access to Copilot Studio (a license or a trial) to build the agent. People who use it in Microsoft 365 Copilot or Teams need access to the agent: share it with them, or ask an admin to publish it to the organization. If your organization applies data policies to Power Platform connectors, they cover MCP servers too.
The agent doesn't call the tools. Check that the header name is exactly X-API-Key and that the key belongs to the same MCP server as the URL, and make the server description specific: Copilot Studio uses it to decide when to call the server. Publish the agent again after each change; in an open chat, type "start over" to get the new version.
Next steps
Was this guide helpful?