Back to blog
AI 10 min read

AI + MCP over a vehicles API: fitment and analogues without an army of managers

How a microservice with an AI agent and an MCP server built from a cars API sped up applicability, category moves, and analogue matching — and why the engineering win still carries a moral weight.

AI + MCP over a vehicles API: fitment and analogues without an army of managers

The work that used to be done by people

In an auto-parts catalog a “new SKU” is not just a title and a photo. You must set applicability (which vehicles/types it fits), place it in the category tree, and find analogues among existing articles. On a live aftermarket flow that was daily work for several managers: open a card, cross-check TecDoc/OEM context, click links by hand, and hope the crosses are right.

Mistakes are expensive: wrong fitment means returns; a missed analogue means lost sales; a bad category kills SEO and search.

The idea: a microservice + AI + MCP over the vehicles API

Instead of “yet another admin with checkboxes”, we built a loop where the model uses domain tools rather than inventing VINs.

  • Applicability microservice — owns draft links, task queues, decision audit, statuses proposed / approved / rejected.
  • Vehicles API (makes, models, types, modifications, attributes) — source of truth for the vehicle graph.
  • MCP server generated on top of that API: tools like “find types by make/model”, “compare two parts”, “analogue candidates”, “suggest category”.
  • AI agent (in an IDE or internal assistant) calls MCP tools, gathers evidence, and writes a proposal into the microservice.

The point: the model does not “know the catalog” — it uses the API via MCP. That cuts hallucinations and leaves a trail: which tool calls ran, which ids came back, who approved.

┌─────────────┐     tool calls      ┌──────────────────┐
│  AI agent   │────────────────────▶│  MCP server      │
│  (operator) │◀────────────────────│  vehicles tools  │
└──────┬──────┘     structured      └────────┬─────────┘
       │          proposals                  │
       ▼                                     ▼
┌──────────────────┐              ┌────────────────────┐
│ Applicability    │              │ Vehicles API       │
│ microservice     │◀─ audit ─────│ make/model/type    │
│ drafts / review  │              └────────────────────┘
└────────┬─────────┘
         │ approve
         ▼
   catalog / crosses / categories

Scenario 1: applicability for a new part

Input — a new card (brand, article, description, sometimes an OEM number). Via MCP the agent:

  1. pulls vehicle-type candidates by make/model/criteria;
  2. compares against known links of similar articles;
  3. builds an applicability list with confidence and API evidence;
  4. stores a draft in the microservice — the manager reviews instead of typing from scratch.
new part
    │
    ▼
normalize (brand/article/OEM)
    │
    ▼
MCP: search vehicles / types
    │
    ▼
MCP: similar parts applicability
    │
    ▼
draft links ──▶ human review ──▶ publish

Scenario 2: moving parts across categories

When the category tree is alive (new nodes, merges, SEO reshuffles), bulk manual moves are hell. The agent suggests a target branch from title, attributes, and graph neighbours; the microservice keeps batch ops with rollback. A human approves a pack instead of clicking a thousand cards.

Scenario 3: “is this an analogue?” — compare with existing stock

Classic case: a new article arrives, a cross/replacement already exists, but the manager does not see it. Through MCP a compare service pulls candidates (normalized number, brand family, fitment overlap) and returns: link as analogue / unsure / conflict.

new article ──▶ candidates ──▶ compare attrs + fitment
                                      │
                    ┌─────────────────┼─────────────────┐
                    ▼                 ▼                 ▼
              link as analog    needs review      reject / conflict

Final catalog links are written only after review. AI accelerates preparation; it does not replace accountability.

What changed in operations

Before the rollout, five content/applicability managers covered the flow. After the AI+MCP loop stabilized, two were enough: the job shifted from “enter links” to “review proposals and handle exceptions”. In practice automation removed three manager roles and sped new-SKU processing up several times — shorter queues per card, faster time-to-search and storefront.

As an engineer I was genuinely glad: the domain API stopped being “docs for humans” and became an agent tool surface; MCP was a solid glue between an LLM and a boring but critical vehicle graph.

The moral residue a deploy does not clear

And at the same time — an honestly unpleasant effect. Three people lost their jobs not because they “did not try hard enough”, but because a process I helped automate no longer needed that many hands. Professionally the decision is right: fewer errors, faster time-to-shelf, better unit economics. Personally, the thought that my software laid off three people still weighs on me.

I will not romanticize it or hide behind “we freed capacity”. Some were redeployed; some were not. Aftermarket automation is not only latency and analogue recall — it is also responsibility for whom it displaces. If you build something similar, plan retraining/redeployment before “we sped it up N times” lands on a management slide.

Practical takeaways

  • AI without a tool layer over the vehicles API invents fitment fast.
  • MCP from an existing cars API is a quick way to give an agent safe operations without inventing a new protocol.
  • The microservice exists for audit trail and human-in-the-loop — not as “another CRUD”.
  • The economic win is real — and so is the ethical debt.

How I can help (offer)

If you build or already run an aftermarket shop, I can take concrete work:

  • 1-call audit — what to extract from OpenCart/PrestaShop first, where margin and warehouse/content time leak;
  • architecture & delivery — catalog, suppliers/WMS, search, applicability microservices;
  • AI/MCP loop — faster fitment, category moves, and analogues with human-in-the-loop.

Format: paid consultation or staged delivery with measurable outcomes (card queue, stock confidence, time-to-shelf). Reach me via the contact form or info@prybytkow.ru — short note on stack and bottleneck.

Related posts