Purpose
ozon-mcp is an MCP (Model Context Protocol) server that connects to the Ozon Seller API and Performance API. It lets AI agents (such as Claude, Cursor, Cline, Continue, Goose, Zed, etc.) directly access data and operations in the Ozon seller backend, turning the entire Ozon seller toolkit into 15 high-leverage tools.
Main capabilities
- API knowledge base: indexes 466 methods (420 Seller + 46 Performance), covering 55 sections, supports searching the API in Russian or English, and allows viewing the complete JSON Schema of any method.
- Subscription tier awareness: models 5 subscription tiers (LITE → STANDARD → PREMIUM → PREMIUM_PLUS → PREMIUM_PRO), and for Premium-exclusive methods rejects the call before it leaves the local machine, saving API quota.
- Rate limit management: automatically retries 429 responses with exponential backoff, respects Retry-After (supports delta-seconds and RFC 7231 HTTP-date), and automatically queues slow methods (such as /v1/analytics/turnover/stocks, hard-limited to 1 request/minute) using per-endpoint semaphores.
- Automatic pagination: ozon_fetch_all handles all four pagination modes used by Ozon: offset/limit, cursor, last_id, page_number, and can detect the rare case where the server repeatedly returns the same cursor and break the loop.
- Safety classification: each method has a safety field (read, write, or destructive). Write operations require confirm_write=True; destructive operations require both confirm_write=True and i_understand_this_modifies_data=True. 43 destructive methods are double-gated, and quirks.yaml has 43 curated safety_warning entries.
- Unified error envelope: all tools that may fail return the same structure, making it easy for agents or downstream code to branch on it.
- 13 ready-made workflows: step-by-step recipes for typical seller scenarios, accessible via ozon_get_workflow("name") to get the complete plan, including interpret, when_to_use, common_mistakes, and the database schema recommended for synchronization-type workflows.
How to use
Environment requirements
- Python 3.12 or 3.13
- uv package manager — installation command: curl -LsSf https://astral.sh/uv/install.sh | sh
- Ozon Seller API credentials (Client-Id + Api-Key) — obtained at https://seller.ozon.ru/app/settings/api-keys ### Connect an AI agent
ozon-mcp uses standard MCP stdio transport. All client examples expose the same 15 tools.
- Claude Desktop: edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).
- Claude Code (CLI): or add it to ~/.claude/mcp.json, with the same structure as the Claude Desktop config.
- Cursor: Settings → MCP → Add new MCP Server, or edit ~/.cursor/mcp.json.
- Windsurf: edit ~/.codeium/windsurf/mcp_config.json.
- Cline (VS Code extension): Cline → Settings → MCP Servers → Add.
- Continue: edit ~/.continue/config.json.
- Goose, Zed, or other MCP clients: any client that supports MCP stdio can be used. For generic configuration, refer to the official MCP client list https://modelcontextprotocol.io/clients。
Example Usage
- Fetch all products: Use ozon_fetch_all, operation_id="ProductAPI_GetProductList", the server automatically iterates through the last_id cursor.
- Find products at risk of being out of stock: Run the oos_risk_analysis workflow, call AnalyticsAPI_StocksTurnover (rate limit 1 request/minute, the server queues automatically), flag SKUs with idc < 14 or turnover_grade ∈ {DEFICIT, NO_SALES} based on turnover_grade, and sort in ascending order by idc.
- Store health check: Run the cabinet_health_check workflow, read RatingAPI_RatingSummaryV1, SellerAPI_SellerInfo, AverageDeliveryTimeSummary in parallel.
- Price analysis: Run the pricing_analysis workflow, check each product's price_indexes.color_index field, note the comparison with marketing_seller_price (the actual price facing buyers), rather than just the base price.
- Content audit: Run content_audit, get each SKU's rating and the list of attributes that can improve the score; a 10-point score increase can significantly improve search ranking.
Keeping API Specs Up to Date
Ozon periodically refreshes its swagger. How to sync: run ozon_get_swagger_meta to confirm whether the built-in snapshot is fresh (CI fails the build when the snapshot is older than 14 days). For how to add knowledge (workflows, examples, quirks, subscription overrides), see CONTRIBUTING.md.
Applicable Scenarios
- Ozon sellers want to query and manage store data through AI agents.
- Scenarios requiring automated analysis of out-of-stock risk, content quality, price index, store health, etc.
- Scenarios requiring write operations or destructive operations to be executed in a safe manner, with a confirmation mechanism.
Limitations
- Requires Ozon Seller API credentials (Client-Id + Api-Key).
- Requires Python 3.12 or 3.13 and the uv package manager.
- Some methods are restricted by subscription tier, and the server will reject them before the call.
- Some endpoints have strict rate limits (such as 1 request/minute), and the server queues automatically.
- Destructive operations require a double confirmation parameter.
- Specific information such as fees, prices, and platform support scope is not yet provided.