Mpstats Connector logo

Mpstats Connector

Community
Vladimir-Human
mpstats-connector

Use this skill for MPStats sales/stock analytics on a specific Ozon or Wildberries item — per-day sales, current price and stock, FBS/FBO warehouse split, seller/brand identity, and a rolling orders-per-day average. Trigger on "продажи товара на озон", "аналитика ozon sku", "mpstats по артикулу", "продажи за 30 дней", or English equivalents. Requires a paid MPStats account (MPSTATS_MP_AUTH env). Skip raw catalog price checks — use wb_/ozon_ connectors (no account needed).

Overview

PublisherVladimir-Human
Repositoryru-marketplace-mcp
Skill namempstats-connector
Stars
187
Forks
31
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Vladimir-Human on GitHub. Read the source before you install it.

Installation

Install the Mpstats Connector AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Vladimir-Human/ru-marketplace-mcp/tree/main/dsh/skills/mpstats-connector
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Vladimir-Human/ru-marketplace-mcp.git /tmp/ru-marketplace-mcp
mkdir -p .claude/skills
cp -r /tmp/ru-marketplace-mcp/dsh/skills/mpstats-connector .claude/skills/mpstats-connector
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mpstats Connector in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mpstats Connector on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mpstats Connector is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

MPStats Connector

Paid-account sales/stock analytics for Ozon and Wildberries items, via the MPStats browser-plugin API (plugin.mpstats.io/pluginapi). Unlike the anonymous catalog connectors in this workspace, this one is optional: it needs a paid MPStats account configured as the MPSTATS_MP_AUTH env var (the raw mp_auth JWT cookie from a logged-in browser plugin session at mpstats.io). Without it the server boots cleanly, every tool returns auth_missing, and no other connector is affected — like every source here, it is a pleasant extra you opt into, not a requirement.

When to use

  • Per-SKU 30-day sales analytics — orders graph, price graph, stock graph
  • Current price and stock for an item (today's reading off the graph tail)
  • Warehouse stock split — FBS (seller warehouse) vs FBO (marketplace warehouse)
  • Seller/brand identity and a rolling orders-per-day average
  • Sales-trend comparison across several SKUs in one batched call

When NOT to use

  • Bare price/availability checks with no account — use wb_card / ozon_card.
  • Reviews, categories, seller tax identity — MPStats does not surface those; use the catalog connectors.
  • Search by text or category browsing — MPStats analytics is keyed by SKU, not by query.

Prerequisites

Set MPSTATS_MP_AUTH to the raw JWT (no mp_auth= prefix, no quotes):

export MPSTATS_MP_AUTH='eyJ0eXAiOiJKV1Qi...'   # from a logged-in mpstats.io session

Without it, every tool returns an auth_missing error (retryable: false) and the server still boots cleanly. Treat the token as a secret: it identifies a paid, quota-billed account. Never log it, never commit it.

Tools available

  • mpstats_item(skus, place, oz_fbs=True) — per-SKU 30-day analytics. Up to 100 SKUs per call. Returns, per SKU: seller, seller_id, brand, stock_now, price_avg_rub, orders_per_day, days_on_stocks, totals (orders/sum/ sum_prev), and four per-day graphs (orders_graph, prices_graph, count_graph, rubrics_graph).
  • mpstats_warehouses(skus, place) — per-SKU warehouse stock split: fbs count, fbo total (collapsed from the upstream per-warehouse list), the raw fbo_warehouses list, and the upstream last_update timestamp.

Not an MCP tool: mpstats_selfcheck() is a tri-state health canary: success, drift_detected (reachable but unparseable — code change needed), or inconclusive (transport failure / missing auth — says nothing about the parsers). It is CLI-only — marketplace-mcp doctor runs every connector's canary at once.

Marketplace parameter

place is "ozon" or "wildberries". oz_fbs is an Ozon-specific Fulfilled-by-Seller flag (default true); harmless for wildberries.

Workflow patterns

Sales snapshot for one Ozon item by SKU:

  1. mpstats_item([5107857210], place="ozon") — current price/stock + 30-day graphs
  2. Read price_avg_rub and stock_now for today; sum orders_graph for the window total; compare totals.sum vs totals.sum_prev for trend.

Compare a basket of SKUs:

  1. mpstats_item([sku1, sku2, ...], place="ozon") — batched, request-order preserved. A SKU MPStats has no data for surfaces as a meta.warnings entry, not a silent gap.

Stock split (where the units physically sit):

  1. mpstats_item([...], place="ozon") for stock_now (total)
  2. mpstats_warehouses([...], place="ozon") for the FBS/FBO split and last_update (when MPStats last refreshed the snapshot).

Graph semantics (gotchas)

  • Graphs are length days (default 30), oldest-first; the final cell is "today". The current price or stock is the last non-zero cell.
  • Price and stock diverge on an all-zero graph, deliberately. price_avg_rub becomes None, because a false 0.0 would rank a delisted item as the cheapest. stock_now becomes 0, because "none in stock" is a real reading. An empty graph gives None for both — that one is genuinely no data.
  • A zero cell means "no data for that day", not "the value was zero". Sum the graph for a real total; do not read a single cell as the answer.
  • totals.orders / totals.sum are MPStats' own aggregates over the window — prefer them over hand-summing unless you need a custom sub-window.
  • A missing value is always None, never 0: a zero would rank a dead listing as the top seller — the exact bug this connector's parsers exist to prevent.

Error format

On failure, raises ToolError with a JSON body: {"error": "<code>", "message": "...", "retryable": <bool>}. Codes: auth_missing (no/expired token — not retryable), bad_request (bad SKU/place), rate_limited (retryable, honours retry_after_s), transport_down, parser_drift (upstream shape changed — code change needed), not_found (no analytics for any SKU). Partial data (some SKUs missing) stays a success with meta.warnings and meta.healthy: false — silence never reads as success here.

DSH activation

In DeepSeek Harness, the default profile exposes only compare_prices and compare_sources through the cheap compare mount. Per-marketplace tools and marketplace_sources require RU_MARKETPLACE_MCP_FULL=1 and a profile restart; do not call them in the default mode.

Frequently asked questions

What does the Mpstats Connector AI skill do?

Use this skill for MPStats sales/stock analytics on a specific Ozon or Wildberries item — per-day sales, current price and stock, FBS/FBO warehouse split, seller/brand identity, and a rolling orders-per-day average. Trigger on "продажи товара на озон", "аналитика ozon sku", "mpstats по артикулу", "продажи за 30 дней", or English equivalents. Requires a paid MPStats account (MPSTATS_MP_AUTH env). Skip raw catalog price checks — use wb_/ozon_ connectors (no account needed).

Why use Mpstats Connector on TypingMind?

Because you install it once and use it with any model. Mpstats Connector is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mpstats Connector in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Vladimir-Human/ru-marketplace-mcp/tree/main/dsh/skills/mpstats-connector. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Mpstats Connector?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mpstats Connector?

As many as you like. As long as a model supports skills, you can use Mpstats Connector with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mpstats Connector AI skill free?

Yes. It is published on GitHub by Vladimir-Human under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇