Sverige Begagnad

v0.3.1
io.github.tudorgrigoriu90/sverige-begagnad-mcp Checked 3 days ago Published 4 months ago

Search Swedish second-hand marketplaces (Blocket, Tradera, Klaravik, Vinted) for used items.

Values you need

VariableWhat it is
TRADERA_APP_IDrequired Numeric Tradera App ID from api.tradera.com/register.
TRADERA_APP_KEYrequired secret Tradera App Key (GUID secret) from api.tradera.com/register.
BLOCKET_LOCATIONSoptional Optional comma-separated Blocket region (län) names to scope searches; empty = all of Sweden.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add sverige-begagnad-mcp -e 'TRADERA_APP_ID=<TRADERA_APP_ID>' -e 'TRADERA_APP_KEY=<TRADERA_APP_KEY>' -- uvx sverige-begagnad-mcp==0.3.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "sverige-begagnad-mcp": {
      "args": [
        "sverige-begagnad-mcp==0.3.1"
      ],
      "command": "uvx",
      "env": {
        "TRADERA_APP_ID": "<TRADERA_APP_ID>",
        "TRADERA_APP_KEY": "<TRADERA_APP_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "sverige-begagnad-mcp": {
      "args": [
        "sverige-begagnad-mcp==0.3.1"
      ],
      "command": "uvx",
      "env": {
        "TRADERA_APP_ID": "<TRADERA_APP_ID>",
        "TRADERA_APP_KEY": "<TRADERA_APP_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "TRADERA_APP_ID",
      "id": "tradera-app-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "TRADERA_APP_KEY",
      "id": "tradera-app-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "sverige-begagnad-mcp": {
      "args": [
        "sverige-begagnad-mcp==0.3.1"
      ],
      "command": "uvx",
      "env": {
        "TRADERA_APP_ID": "${input:tradera-app-id}",
        "TRADERA_APP_KEY": "${input:tradera-app-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.sverige-begagnad-mcp]
command = "uvx"
args = ["sverige-begagnad-mcp==0.3.1"]
env = { "TRADERA_APP_ID" = "<TRADERA_APP_ID>", "TRADERA_APP_KEY" = "<TRADERA_APP_KEY>" }

For AI agents

  1. Ask the user for: TRADERA_APP_ID, TRADERA_APP_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: search_blocket, list_blocket_categories, list_blocket_locations, search_tradera, list_tradera_categories, list_tradera_counties, search_klaravik, search_vinted, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json