Blocket MCP

io.github.idoo由 GitHub 帳號 idoo 發布v2.1.0更新於 Nov 7, 2026

Read-only MCP server for Blocket.se: search ads, read one in full, check asking prices.

概覽

AI 產生的概覽

唯讀的 MCP 伺服器,讓助理搜尋 Blocket.se 分類廣告、查看單筆廣告詳情,並判斷開價是否合理。

可以做什麼
  • 在 13 個分類(綜合市場及汽車、船隻、機車、露營車等)中搜尋廣告,支援自然語言篩選、半徑、可寄送、贈送、徵求、排除與必含詞以及優惠標籤
  • 完整讀取一筆或多筆廣告:描述、規格、配備、照片、賣家、收藏數、詐騙跡象提示,並做並排比較
  • 以真實圖片形式取得最多八張廣告照片,讓視覺模型自行判斷狀況
  • 將開價與同類在售廣告比較,給出 p10 至 p90 區間及該廣告的落點
  • 列出某分類的篩選條件與選項及即時數量
適用情境
適合讓助理代你瀏覽瑞典二手與車輛市場:依寬鬆條件找刊登、過濾配件與徵求文、查看照片判斷狀況,或在聯絡賣家前評估價格是否合理。
執行需求
可透過 stdio 在本機執行,不需權杖或代管:Claude Desktop 安裝檔、Docker 映像,或以 Node 20 以上自行建置。若要供 ChatGPT 或 claude.ai 使用,需部署到公開 HTTPS 端點(Cloudflare Workers 或 Firebase),並以 MCP_PATH_TOKEN 設定祕密路徑權杖。需要能連線至 blocket.se 的網路。
安裝前請注意
僅唯讀:無法登入、聯絡賣家或刊登廣告。代管部署依賴網址中的祕密路徑權杖,取得連結的人都能使用該端點;Firebase 需要付費 Blaze 方案並綁定信用卡,且沒有流量限制。它依賴 Blocket 的非官方端點,可能隨時失效,且與 Blocket 官方無關。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Blocket MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Blocket MCP

I got tired of scrolling Blocket, so now ChatGPT does it.

It can't log in, message sellers or post anything. It reads public ads and that's it.

[License: MIT] [MCP]

Tools

search knows all 13 sections: Torget plus cars, boats, motorcycles, caravans, motorhomes, trucks, tractors, combines, snowmobiles, ATVs, mopeds and buses. You write filters like a person would, Volvo V70, Segelbåt, Stockholm, and the server works out Blocket's ids. Typo in a make? It comes back under unmatched with suggestions and the model fixes it on the next call. Without that you'd quietly get every car in Sweden. There's radius search with distances, giveaways and wanted ads, items that ship, "what's new since this morning", one seller's whole stock, and value counts when you want a quick read on the market. Each search also returns its blocket.se URL. Save it in the Blocket app and you'll get pushes when new ads turn up.

Blocket's own search throws in a lot of junk. Looking for an iPhone 13? Pass exclude with skal, laddare and köpes, and the cases, chargers and wanted ads are gone. There's require too, and a titles-only switch. When that leaves a page half empty the server keeps reading, but stops at 200 ads. The usual Blocket operators still do their thing: -word, OR, "exact phrase", word*. Turn on deals and each result gets a label against the median price of the same search, from great to high. Titles with "defekt", "reservdelar", "startar inte" and the like get flagged either way.

get_ad takes up to five ad ids or links. Description, specs, equipment, every photo, whether it's still for sale, who's selling and how many people saved it. It points out the usual scam signs too: pay outside Blocket, "write me on WhatsApp", a foreign number. Cars and boats get horsepower, EVs their range and battery size, and dealer cars the price without VAT when the dealer shows it. Dealers with a Google rating get that as well. Cars from dealers come with links to their history. Give it several ads and you get a comparison.

get_ad_photos sends up to 8 photos of an ad as real images, so a model that can see judges the condition itself. Rust, cracks and missing parts show up there sooner than in the description.

price_check is for "is this price fair?". It finds comparable live ads by make, model, year, mileage or boat length and gives you p10 to p90 plus where your ad lands. With fewer than 8 comparables it loosens the match and says what it dropped. The numbers are asking prices, since Blocket doesn't show what anything sold for.

list_filters lists a section's filters and values with live counts.

On your own computer

Claude Desktop, Claude Code, Cursor and Codex can run the server locally over stdio. That needs no token and no hosting.

Claude Desktop users grab blocket-mcp-<version>.mcpb from Releases and double-click it. That's the whole install.

Other clients can start it with Docker. In Claude Code that looks like this:

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

Cursor and Codex take the same command and args in their MCP config. If you'd rather skip Docker, build it yourself with Node 20 or newer:

sh
npm ci && npm run build:stdionode dist/blocket-mcp.js

Hosted, for ChatGPT and claude.ai

ChatGPT and claude.ai can't reach your laptop, so the server needs a public HTTPS address. I run mine on Cloudflare. Firebase works too.

There's no login. ChatGPT's custom connectors offer OAuth or nothing, and OAuth felt like overkill for public ads, so the endpoint hides behind a secret path, /mcp/<token>. Any other path gets a 404. Make up a long random token:

sh
openssl rand -hex 24

Cloudflare Workers

The free plan does fine here.

sh
git clone https://github.com/idoo/blocket-mcp && cd blocket-mcpnpm cinpx wrangler loginnpx wrangler deploynpx wrangler secret put MCP_PATH_TOKEN    # paste the token

Wrangler prints a workers.dev URL at the end. Stick /mcp/<token> on it. There's a limit of 120 calls a minute in wrangler.jsonc.

Local dev: MCP_PATH_TOKEN=dev in .dev.vars, npm run dev, then http://localhost:8787/mcp/dev.

Firebase

Cloud Functions need the Blaze plan, which means a card on file. A single person's traffic won't leave the free tier.

sh
git clone https://github.com/idoo/blocket-mcp && cd blocket-mcpnpm ci && npm --prefix functions cifirebase loginfirebase use --add                              # pick your projectfirebase functions:secrets:set MCP_PATH_TOKEN   # paste the tokenfirebase deploy --only functions

The endpoint is https://europe-north1-<project-id>.cloudfunctions.net/mcp/<token>. There's no rate limiter on Firebase. The function stops at 3 instances, which keeps the bill small if someone finds your URL. Want another region or more room? Top of functions/src/index.ts.

To test without deploying, drop MCP_PATH_TOKEN=dev into functions/.secret.local and start firebase emulators:start --only functions. The URL is http://127.0.0.1:5001/<project-id>/europe-north1/mcp/dev.

Connect

ChatGPT on the web: Plugins, Add, "Add custom MCP server". Paste the endpoint, no authentication, done. Then @Blocket in any chat. It won't nag for permission on every call because all tools are marked read-only.

claude.ai: Settings → Connectors → Add custom connector.

Claude Code and Codex:

sh
claude mcp add --transport http blocket https://…/mcp/<token>codex mcp add blocket --url https://…/mcp/<token>

How it works

Blocket has no public API. The server calls the JSON endpoints that blocket.se's own pages load, usually one request per tool call and a few for comparisons and price checks. Filter names are matched against Blocket's live filter lists, so a make that showed up last week already works. If Blocket changes those endpoints, this breaks until someone patches it. PRs welcome.

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

License

MIT

來源:README.md,提交 dc353f2

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v2.1.0最新Nov 7, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分