Skip to main content
Glama

Blocket MCP

MCP server that lets ChatGPT, Claude and other clients search Blocket.se, open ads and check whether an asking price makes sense. It knows Torget and all twelve vehicle sections, from cars and boats to combines and snowmobiles.

Read-only. No account or API key.

License: MIT MCP

Tools

  • search takes filters in plain words like Volvo V70, Segelbåt or Stockholm and looks up Blocket's ids itself. A misspelled make comes back with suggestions. exclude: ["skal", "laddare", "köpes"] clears phone cases, chargers and wanted ads out of an iPhone search, and deals rates every ad against the median price of the same search.

  • get_ad opens up to five ads in full, seller included. If the text wants Swish up front, moves you to WhatsApp or has a foreign number in it, you'll hear about it. Vehicles with a visible reg number get car.info and biluppgifter links. Several ads come back side by side.

  • get_ad_photos hands the model up to 8 photos of an ad. If it can see, it can spot the rust the seller forgot to mention.

  • price_check pulls live ads for the same make and model, close in year and mileage, or boats of about the same length. You get p10 to p90 and the spot where your ad lands. Give it new_price (from Billigast, say) and it also shows what share of the shop price people ask. Blocket hides sold prices, so these are asking prices.

  • list_filters lists a section's filters with live counts.

ChatGPT shows the results as cards with photos.

Related MCP server: marktplaats-mcp

Local

For Claude Desktop there's a .mcpb file under Releases. Double-click it and it installs.

Anything else can run it in Docker:

claude mcp add blocket -- docker run -i --rm ghcr.io/idoo/blocket-mcp

Without Docker, Node 20 or newer works too:

npm ci && npm run build:stdio
node dist/blocket-mcp.js

ChatGPT, claude.ai

ChatGPT and claude.ai won't talk to your laptop. I host mine on a Cloudflare Worker, free plan:

npm ci && npx wrangler deploy
npx wrangler secret put MCP_PATH_TOKEN    # openssl rand -hex 24

My own Worker redeploys on every push to main from my home server (air-ci, see .air.yml); the commands above, from a clean committed checkout, are the manual fallback.

Paste https://<your worker>.workers.dev/mcp/<token> as the URL. The token is the only lock, so make it long. Other paths return 404, and wrangler.jsonc caps calls at 120 a minute. ChatGPT: Plugins, Add custom MCP server, no auth. claude.ai: Settings, Connectors.

Firebase works as well if you're on the Blaze plan:

npm ci && npm --prefix functions ci
firebase login && firebase use --add
firebase functions:secrets:set MCP_PATH_TOKEN
firebase deploy --only functions

Your URL is https://europe-north1-<project-id>.cloudfunctions.net/mcp/<token>. Firebase has no rate limiter, so the function stops at 3 instances. Region and limits are at the top of functions/src/index.ts.

Caveats

Blocket has no public API. The server calls the JSON endpoints blocket.se's own pages load, so when Blocket changes them this breaks until someone patches it. Filters are matched against Blocket's live lists, and a make that appeared last week already works.

The endpoint notes in dunderrrrrr/blocket_api got me started. Not affiliated with Blocket AB. MIT.

Available Tools

5 tools
get_adGet Blocket adsA
Read-onlyIdempotent

Full details of 1-5 ads by id or blocket.se URL: description, specs, equipment, all photos, place, status (active/sold/removed), seller (dealer, years on Blocket, other ads via seller.id), shipping/buy-now, favourites count, red flags and vehicle history links. Several ids render a comparison.

Inputs: ids (required).

get_ad_photosGet Blocket ad photosA
Read-onlyIdempotent

An ad's photos as images (640 px wide JPEGs) to look at the item's condition yourself, plus its title, url and total photo count. Returns the first max photos (default 4, up to 8).

Inputs: id (required), max.

list_filtersList Blocket filtersA
Read-onlyIdempotent

Filter names and values (with live ad counts) available for a vertical, to use in search.filters. Pass filter to list one filter's values, query to find values by substring (e.g. filter 'make', query 'hallberg').

Inputs: vertical (required), query, filter.

price_checkCheck a Blocket priceA
Read-onlyIdempotent

Use this when the user asks what a used item sells for on Blocket, whether an asking price is fair, or whether to buy used or new. Returns the asking-price distribution (p10/p25/median/p75/p90) of comparable live ads, with up to 6 example ads. Give ad_id to judge that ad (comparables are derived from its make, model, year, mileage or length; its percentile is returned), or describe the item with the search filters. For Torget items pass a short query (e.g. 'iphone 13 128gb') for good comparables; for mass-market products (phones, consoles, headphones) also pass title_only and excludes for accessories and wanted ads, e.g. ['skal', 'fodral', 'laddare', 'kontroll', 'controller', 'headset', 'fäste', 'cover', 'köpes', 'bytes']. With require/exclude/title_only the stats come from those of the newest 200 ads that pass them (scanned, dropped). Pass new_price when a shop price comparison gave you one: vs_new says what % of it the median and the ad ask, and ads under 10% of it are left out as accessories or parts. Explicit filters override the derived ones.

Inputs: near, ad_id, query, trade, +17 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 5 tools

    Disambiguation4/5

    Each tool has a largely distinct role: search lists ads, list_filters discovers filter values, get_ad retrieves full ad details, get_ad_photos returns images, and price_check computes price statistics. search and price_check both accept filters and return comparable ads, and get_ad already lists photo metadata, so there is some surface overlap, but the descriptions clearly differentiate browsing from valuation and detail inspection.

    Naming Consistency3/5

    All names use snake_case casing, which is consistent. However, the structural pattern is mixed: list_filters, get_ad, and get_ad_photos follow verb_noun, search is a bare verb, and price_check is noun_noun. This is readable but not a single predictable convention.

    Tool Count5/5

    Five tools is well-scoped for a read-only marketplace search server. Each tool covers a distinct part of the workflow—search, filter discovery, ad detail, photos, and price analysis—without obvious redundancy.

    Completeness4/5

    The core read-only lifecycle is covered: discovery via search, filter discovery, full ad details, photo inspection, and price valuation. Minor gaps remain, such as no tool to enumerate verticals/categories and no direct tool for listing a seller's other ads despite get_ad referencing seller.id for that purpose.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to search and retrieve listings from Sweden's largest second-hand marketplaces, Blocket and Tradera. Returns unified data including prices, images, seller information, and direct links to listings.
      9
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to search and monitor Dutch and Belgian classifieds (Marktplaats and 2dehands) for listings, seller profiles, and categories.
      8
      54 PyPI
      5
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables searching and retrieving listings from Sweden's Blocket marketplace, including cars, boats, motorcycles, and general items, without requiring an API key.
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to search and retrieve used and new car listings from carsales.com.au, with support for various filters and detailed listing information including images. It uses a real browser to bypass bot protection and integrates with MCP-compatible clients like Claude Desktop and Claude Code.
      19
      2
      MIT