πΈπͺ Sverige Begagnad MCP
Find quality second-hand deals across Sweden β straight from your AI assistant.
An MCP server that lets Claude (or any MCP client) search Blocket and Traderafor used items worth buying, restoring, and reselling.
π¬ What you can ask Claude
Once connected, just talk to it:
πͺ "Find String shelves (String hylla) near VΓ€xjΓΆ under 1000 SEK."
π οΈ "Search Blocket and Tradera for Festool or Makita tools I could flip for profit."
π "What Bang & Olufsen speakers are on Tradera between 500 and 3000 SEK?"
π² "List Blocket categories, then look for quality bikes (Kronan, Crescent) in SkΓ₯ne."
π "Do this week's sourcing sweep for Scandinavian design in Kronoberg and neighbouring counties, ranked by estimated profit."
Claude picks the right tools, applies your filters, and hands back titles, prices,locations, links, and images β from both marketplaces in one go.
β¨ Features
| π Two marketplaces | Blocket + Tradera, searched together or separately, normalized into one shape |
| π― Rich filters | Price min/max, category, county (Tradera) Β· region + category (Blocket) |
| π Location-aware | Every Blocket result carries coordinates + distance for precise radius filtering |
| π General by default | Searches all of Sweden; scope it to your area via config or per-search |
| π§ Discovery tools | List categories, regions, and counties so the agent filters intelligently |
| π§© Easy install | One-command Claude Code plugin, uvx, or from source β each user brings their own keys |
| β Tested live | Every source verified end-to-end against the real APIs |
π Source status
| Source | Method | Stability |
|---|---|---|
| Tradera | Official REST API (v4) | π’ Solid β tested live; requires free registration |
| Blocket | Community package (blocket-api) |
π‘ Semi-stable, unofficial β tested live against the real API |
| Facebook Marketplace | Disabled by default | π΄ Risky β see src/sverige_begagnad_mcp/facebook_client.py |
π Get Tradera credentials (required for all install methods)
- Register (free) at https://api.tradera.com/register.
- Accept the Terms of Use + Logo Terms of Use.
- Create an application and copy the numeric App ID and the App Key(GUID secret). You'll supply these as
TRADERA_APP_ID/TRADERA_APP_KEY.
Blocket needs no credentials. Facebook Marketplace is off by default.
π¦ Installation
Every user runs their own copy with their own Tradera keys β pick whichever methodfits your client. uvx-based methods need uvinstalled (curl -LsSf https://astral.sh/uv/install.sh | sh, orwinget install astral-sh.uv on Windows) β no cloning or virtualenv needed.
Option 1 β Claude Code plugin (easiest)
claude plugin marketplace add tudorgrigoriu90/sverige-begagnad-mcp
claude plugin install sverige-begagnad@sverige-begagnad-marketplace
Then export your keys (the plugin passes them through to the server):
export TRADERA_APP_ID=... # Windows PowerShell: $env:TRADERA_APP_ID="..."
export TRADERA_APP_KEY=...
export BLOCKET_LOCATIONS= # optional; empty = all of Sweden
Restart Claude Code β you'll have search_blocket, search_tradera, search_all,and more. The plugin runs the server via uvx straight from GitHub.
Option 2 β uvx (Claude Desktop or any MCP client)
Add to your client's MCP config (Claude Desktop: Settings β Developer β Edit Config):
{
"mcpServers": {
"sverige-begagnad": {
"command": "uvx",
"args": ["--from", "git+https://github.com/tudorgrigoriu90/sverige-begagnad-mcp", "sverige-begagnad-mcp"],
"env": {
"TRADERA_APP_ID": "...",
"TRADERA_APP_KEY": "...",
"BLOCKET_LOCATIONS": ""
}
}
}
}
Once published to PyPI, the args simplify to just ["sverige-begagnad-mcp"]. Restart the client.
Option 3 β From source (development)
git clone https://github.com/tudorgrigoriu90/sverige-begagnad-mcp
cd sverige-begagnad-mcp
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e .
cp .env.example .env # then fill in your keys
Point your client at the venv's sverige-begagnad-mcp command (orpython -m sverige_begagnad_mcp.server) with cwd set to the repo.
From a source checkout with keys set (in .env or the environment):
# Tradera β official REST API v4 (https://api.tradera.com/v4, header auth)
python -m sverige_begagnad_mcp.tradera_client
# Blocket β unofficial community API
python -c "import asyncio; from sverige_begagnad_mcp.blocket_client import search_blocket; print(asyncio.run(search_blocket('String hylla')))"
Both are tested live. If Tradera's shape ever drifts, the OpenAPI spec is athttps://api.tradera.com/openapi.json.
π§° Tools
| Tool | Purpose |
|---|---|
search_blocket(query, category?, locations?, max_pages?) |
Search Blocket |
list_blocket_categories() |
Valid category names |
list_blocket_locations() |
Valid region (lΓ€n) names |
search_tradera(query, category_id?, price_min?, price_max?, county_id?) |
Search Tradera |
list_tradera_categories() |
Category tree β category_id |
list_tradera_counties() |
County ids for the optional county_id filter |
search_facebook_marketplace(...) |
Disabled by default |
search_all(query, blocket_category?, blocket_locations?, tradera_category_id?, price_min?, price_max?) |
Blocket + Tradera in one call |
π Geographic scope
Searches default to all of Sweden. Three ways to set the area, in order of precedence:
- Per-search β pass
locationstosearch_blocket(orblocket_locationstosearch_all), e.g.["KRONOBERG", "KALMAR"]. Uselist_blocket_locations()for valid names. - A personal default β set
BLOCKET_LOCATIONSin.envto a comma-separated list of region names. - Nothing set β all of Sweden.
Blocket's filter is regional (lΓ€n), not a precise km radius. For a tight"within X min drive" filter, let Claude do the final check per listing β each resultincludes the ad's text location plus coordinates (lat/lon) and Blocket's owndistance. Tradera is national with shipping, so it has no radius concept (there'san optional county_id filter, rarely needed).
Personal scope lives only in .env (gitignored β not a shipped default):
BLOCKET_LOCATIONS=KRONOBERG,KALMAR,JONKOPING,HALLAND,SKANE
π€ Power user: a full weekly "sourcing agent" prompt
Paste this as your instructions to turn the tools into a profit-ranked weekly sweep.It runs many targeted Swedish searches, filters by radius/quality, estimates profit,and returns a ranked shortlist. Tune the brands, region, and thresholds to taste.
ROLE: You are a sourcing assistant for a personal, quality-focused loppis (flip).
Each week, search Blocket and Tradera for second-hand items to buy, minimally
restore, and resell at a profit.
METHOD: Search with SWEDISH terms. Run MANY targeted searches β by BRAND and by
CATEGORY β across both sources; deduplicate. Prices are in SEK.
AREA: within ~35 km straight-line of VΓ€xjΓΆ (56.88, 14.81) or Γlmhult (56.55, 14.14),
computed from each Blocket result's `coordinates`. Tradera ships nationally, so
include shippable Tradera items too.
QUALITY: recognized brand or top craftsmanship (String, Artek, Fritz Hansen, Louis
Poulsen, Iittala, Orrefors, Bang & Olufsen, Braun, Marantz, Bahco, Hilti, Festool,
Makita, Kronan, Crescentβ¦); "bra skick"/"nyskick" or minor cosmetic wear; asking
price clearly below market; only minimal restoration (clean, polish, light sand,
small off-the-shelf parts).
PROFIT: estimate resale value (use web search for comparables if available β do NOT
invent sold prices). Net = resale β (purchase + restoration + pickup/courier), with
stated assumptions (~80 SEK pickup fuel, ~70 SEK courier, 0β150 SEK materials).
Include only items with estimated net profit β₯ 300 SEK. Note that Tradera auction
prices may rise before close.
OUTPUT: ranked by net profit descending, max 15. For each: title + link + location
(distance from VΓ€xjΓΆ or "ships nationally"), asking vs. estimated market price, net
profit with assumptions, 2β3 restoration steps, and a risk note. End with a 2β3
sentence read on the week's trends. Don't pad with weak candidates.
π« Facebook Marketplace β why it's disabled
There is no public API for Facebook Marketplace. The only known methods (sessioncookies or headless-browser scraping) explicitly violate Facebook's Terms of Service.The src/sverige_begagnad_mcp/facebook_client.py module is intentionally left as astub, with an explanation of how you could implement it yourself, at your own risk.
π οΈ Maintenance & publishing
Maintainer notes- If a source breaks: Blocket β check https://pypi.org/project/blocket-api/ for anewer version; Tradera β the OpenAPI spec at https://api.tradera.com/openapi.json.
- PyPI (enables the short
uvx sverige-begagnad-mcp):python -m buildthentwine upload dist/*. Bumpversioninpyproject.tomlandsrc/sverige_begagnad_mcp/__init__.pyfirst. - Plugin marketplace: the
.claude-plugin/marketplace.json+plugins/dirs makethis repo itself the marketplace β no extra hosting. - MCP Registry:
server.jsonis ready; publish with themcp-publisherCLI afterthe PyPI release (see the Registry publishing guide).
π License
MIT β each user runs their own copy with their own credentials. Note thatBlocket has no official API; this uses an unofficial community package, so treat theBlocket half accordingly.