{
  "markdown": "# Vinted MCP Server\n\n[![npm version](https://img.shields.io/npm/v/%40andrijdavid%2Fvinted-mcp.svg)](https://www.npmjs.com/package/@andrijdavid/vinted-mcp)\n[![License: AGPL v3+](https://img.shields.io/badge/License-AGPL%20v3%2B-blue.svg)](./LICENSE.md)\n\nAn MCP server for Vinted search and analysis that provides tools to search listings, fetch item details, inspect seller profiles, compare prices across countries, and surface trending items.\n\nIt also exposes resources for supported countries and category data.\n\n**Disclaimer**: This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Vinted, or any of its subsidiaries or its affiliates. The official Vinted website can be found at [vinted.com](https://www.vinted.com).\n\n## Client support\n\nThis server works with MCP clients that support local `stdio` servers.\n\nPopular clients and setup docs:\n\n- Claude Desktop (local): https://support.claude.com/en/articles/10949351-getting-started-with-local-mcp-servers-on-claude-desktop\n- Claude Desktop (remote): https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp\n- ChatGPT (MCP developer mode): https://platform.openai.com/docs/guides/developer-mode\n- ChatGPT (MCP and connectors): https://platform.openai.com/docs/guides/tools-remote-mcp\n- Cursor: https://docs.cursor.com/context/model-context-protocol\n- Windsurf: https://docs.windsurf.com/windsurf/cascade/mcp\n- Cline: https://docs.cline.bot/mcp/configuring-mcp-servers\n- Full MCP client directory: https://modelcontextprotocol.io/clients\n\n## Quick start\n\n### Option 1: npx\n\nAdd this to your MCP client config:\n\n```json\n{\n  \"mcpServers\": {\n    \"vinted\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@andrijdavid/vinted-mcp\"]\n    }\n  }\n}\n```\n\n### Option 1b: bunx (canary)\n\n```bash\nbunx @andrijdavid/vinted-mcp@next\n```\n\nThis starts the server in `stdio` mode and waits for an MCP client.\n\n### Option 2: global install\n\n```bash\nnpm install -g @andrijdavid/vinted-mcp\n```\n\nThen configure:\n\n```json\n{\n  \"mcpServers\": {\n    \"vinted\": {\n      \"command\": \"vinted-mcp\"\n    }\n  }\n}\n```\n\n### Run in network mode (Streamable HTTP over TCP)\n\nIf you need a network endpoint instead of stdio, run:\n\n```bash\nVINTED_MCP_TRANSPORT=http VINTED_MCP_HOST=127.0.0.1 VINTED_MCP_PORT=3001 bunx @andrijdavid/vinted-mcp@next\n```\n\nOptional:\n\n- `VINTED_MCP_PATH` (default `/mcp`)\n- `VINTED_MCP_ENABLE_LEGACY_SSE` (default `true`)\n- `VINTED_MCP_LEGACY_SSE_PATH` (default `/sse`)\n- `VINTED_MCP_LEGACY_MESSAGES_PATH` (default `/messages`)\n\nDefault endpoints:\n\n- Streamable HTTP (recommended): `http://127.0.0.1:3001/mcp`\n- Legacy SSE (older clients): `http://127.0.0.1:3001/sse`\n\n## CLI usage and env variables\n\n### Pass env vars inline (macOS/Linux)\n\n```bash\nVINTED_AUTH_MODE=env \\\nVINTED_AUTH_COOKIES='session_cookie=your_value; other_cookie=your_value' \\\nVINTED_AUTH_CSRF_TOKEN='your_csrf_token' \\\nbunx @andrijdavid/vinted-mcp@next\n```\n\n### Pass env vars inline (PowerShell)\n\n```powershell\n$env:VINTED_AUTH_MODE = \"env\"\n$env:VINTED_AUTH_COOKIES = \"session_cookie=your_value; other_cookie=your_value\"\n$env:VINTED_AUTH_CSRF_TOKEN = \"your_csrf_token\"\nbunx @andrijdavid/vinted-mcp@next\n```\n\n### Pass env vars inline (Windows Command Prompt)\n\n```bat\nset VINTED_AUTH_MODE=env\nset VINTED_AUTH_COOKIES=session_cookie=your_value; other_cookie=your_value\nset VINTED_AUTH_CSRF_TOKEN=your_csrf_token\nbunx @andrijdavid/vinted-mcp@next\n```\n\n### Use a local `.env` file\n\nThe server auto-loads `.env` from the current working directory.\n\n```bash\ncp .env.example .env\nbunx @andrijdavid/vinted-mcp@next\n```\n\n### Run network mode from CLI with env\n\n```bash\nVINTED_MCP_TRANSPORT=http \\\nVINTED_MCP_HOST=127.0.0.1 \\\nVINTED_MCP_PORT=3001 \\\nbunx @andrijdavid/vinted-mcp@next\n```\n\nWindows Command Prompt:\n\n```bat\nset VINTED_MCP_TRANSPORT=http\nset VINTED_MCP_HOST=127.0.0.1\nset VINTED_MCP_PORT=3001\nbunx @andrijdavid/vinted-mcp@next\n```\n\n## Authentication and environment\n\nThe server auto-loads `.env` from the working directory if present.\n\nStart from the example file:\n\n```bash\ncp .env.example .env\n```\n\nMain variables:\n\n- `VINTED_AUTH_MODE`: `http`, `playwright`, or `env`\n- `VINTED_AUTH_COOKIES`: cookie header string or JSON object string\n- `VINTED_AUTH_CSRF_TOKEN`: CSRF token\n- `VINTED_AUTH_ACCESS_TOKEN`: optional bearer token\n- `VINTED_AUTH_REFRESH_TOKEN`: optional refresh token, used to mint a new access token\n- `VINTED_PROFILE_DIR`: optional root for browser profiles created by `login`, default `~/.vinted-mcp`\n- `VINTED_PROXY_URL`: optional proxy URL\n- `VINTED_MAX_CONCURRENCY`: optional tuning\n- `VINTED_REQUEST_DELAY_MS`: optional tuning\n- `VINTED_MAX_RETRIES`: optional tuning\n\nExample client config with env auth:\n\n```json\n{\n  \"mcpServers\": {\n    \"vinted\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@andrijdavid/vinted-mcp\"],\n      \"env\": {\n        \"VINTED_AUTH_MODE\": \"env\",\n        \"VINTED_AUTH_COOKIES\": \"session_cookie=your_value; other_cookie=your_value\",\n        \"VINTED_AUTH_CSRF_TOKEN\": \"your_csrf_token\"\n      }\n    }\n  }\n}\n```\n\n## Signing in\n\nSearch and price tools work anonymously. Anything tied to your account (`like_item`) needs a\nlogged-in session. Run this once per country:\n\n```bash\nnpx @andrijdavid/vinted-mcp login --country fr\n```\n\nA browser window opens on Vinted. Sign in the way you normally do (password, captcha, 2FA, Google\nlogin all work). The window closes by itself once you are signed in, and the browser profile is\nsaved to `~/.vinted-mcp/profile-<country>`. The server reopens that profile headlessly when it needs\ncookies, so the session refreshes itself and there is nothing to copy or paste.\n\nRequirements: Playwright with Chromium (`npm i playwright && npx playwright install chromium`).\nSet `VINTED_PROFILE_DIR` to move the profile root somewhere other than `~/.vinted-mcp`.\n\n### Manual cookies (headless servers and CI)\n\nWhere no browser can be opened, use `VINTED_AUTH_MODE=env` and supply the credentials yourself:\n\n1. Sign in to Vinted in your browser.\n2. Open Developer Tools.\n3. Open `Network` and refresh.\n4. Open any `https://www.vinted.<country>/api/...` request.\n5. Copy from `Request Headers`:\n   - `cookie` -> `VINTED_AUTH_COOKIES`\n   - `x-csrf-token` -> `VINTED_AUTH_CSRF_TOKEN`\n6. Optional: copy `authorization: Bearer ...` token into `VINTED_AUTH_ACCESS_TOKEN`, and the\n   `refresh_token_web` cookie value into `VINTED_AUTH_REFRESH_TOKEN`.\n\nSecurity notes:\n\n- treat these values as secrets\n- never commit `.env`\n- rotate tokens/cookies if exposed\n- the saved browser profile holds a live session; it is stored with owner-only permissions\n\n## Tools\n\n### `search_items`\n\nSearch listings with filters like country, price range, brand IDs, category, condition, sort, and limit.\n\n### `get_item`\n\nGet item details by `itemId` or `url`.\n\n### `get_seller`\n\nGet seller profile data and optional recent items by `sellerId` or `url`.\n\n### `compare_prices`\n\nCompare average and median prices for a query across countries.\n\n### `get_trending`\n\nReturn trending items by engagement score.\n\n### `like_item`\n\nAdd an item to your favourites by `itemId` or `url`, or remove it with `unlike: true`. Needs a\nlogged-in session, see [Signing in](#signing-in). Already-liked items are left alone rather than\ntoggled off.\n\n## Resources\n\n- `vinted://countries`\n- `vinted://categories`\n\n### Resource templates\n\n- `vinted://item/{country}/{itemId}`\n- `vinted://seller/{country}/{sellerId}`\n- `vinted://search/{country}/{query}`\n\nThese templates let clients create direct resource URIs quickly.\n\n## Prompt templates\n\n- `find_best_deal`\n- `screen_seller`\n- `search_item_with_filters`\n- `trending_report`\n- `buy_or_skip_decision`\n- `resale_arbitrage_estimator`\n\nThese predefined prompts help clients bootstrap common Vinted workflows.\n\nSupported countries: `fr`, `de`, `uk`, `it`, `es`, `nl`, `pl`, `pt`, `be`, `at`, `lt`, `cz`, `sk`, `hu`, `ro`, `hr`, `fi`, `dk`, `se`.\n\n## Local development\n\n```bash\nnpm install\nnpm run build\nnpm run bundle\nnpm start\n```\n\n## Testing\n\nRun protocol-level tests:\n\n```bash\nnpm test\n```\n\nRun live integration tests:\n\n```bash\nRUN_LIVE_MCP_TESTS=1 npm test\n```\n\n## License\n\nLicensed under `AGPL-3.0-or-later`.\n\nSee `LICENSE.md`.\n",
  "bytes": 8208,
  "sha": "9320ebae8d702df21258d3fe47243cbd9be54dd89ede0349a56a227cbd2ca0f2",
  "repo_slug": "andrijdavid/vinted-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_andrijdavid_vinted_mcp_9549a608/readme"
}