← Blog

Beyond Dashboards: Building an MCP Server for AI-Driven Commerce Analytics


Authors: Maria Vladimirova (Head of Product), Denis Shaklein (Senior Software Engineer), Artem Plotnikov (Head of Development), and Ilya Nartov (Machine Learning Engineer) at JoomPulse.

The Limit of Traditional Dashboards

At JoomPulse, we process e-commerce data to provide actionable analytics for sellers on Mercado Livre and Shopee in Brazil. Historically, delivering this data meant building complex interfaces with endless tables and filters.

Traditional dashboards have a strict limit. A platform can provide 100 filters to help a seller find “blue shirts”, but users will inevitably demand a 101st filter to exclude “blue shirts with text prints”. Continuously complicating the UI to predict every analytical scenario is a dead end. Users do not need more dropdown menus; they need a tool that understands their context and explains business metrics instantly.

Instead of forcing users to navigate complex interfaces, we brought our data directly to their AI assistants via LLMs like Claude and ChatGPT.

Becoming an Official MCP Connector

The Model Context Protocol (MCP) packages JoomPulse data into a format LLMs natively understand. Rather than exposing raw APIs, MCP acts as a bridge: it teaches the model how to navigate millions of products, interpret metrics, and answer complex commerce questions.

When Anthropic announced their connector ecosystem, the space lacked established playbooks. We submitted our integration on the day they launched their developer cabinet, bypassing the Google Form waitlist. JoomPulse became one of the first official Anthropic MCP connectors, allowing users to integrate our analytics into Claude with a single click.

Getting listed came with limits. Anthropic approved JoomPulse in two weeks; OpenAI took four. During Anthropic’s review, our country restrictions blocked the reviewer from logging in—a practical reminder to make sure reviewers can access the service.

We wanted to understand which business questions sellers were solving, so we could make our tools more useful. But both companies limit the conversation context tools can collect to what they need to complete the task, presumably to protect private conversations. We also wanted sellers to upgrade when they needed more analytics. Here, the restrictions differ: Anthropic generally prohibits connectors from executing financial transactions, while OpenAI explicitly bans selling digital subscriptions and promoting upgrades. Our existing subscribers can use their paid access in ChatGPT, but we cannot offer an upgrade when they reach their limit.

Real-World Impact and B2B Use Cases

Initially, we were afraid of a steep learning curve for MCP. However, it turned out that the combination of AI and MCP acted as the perfect translator, helping customers gather insights from our platform without needing deep technical preparation. Claude became our top integration point by request volume.

The usage retention and stickiness (WAU/MAU) of the MCP integration have significantly outperformed our traditional dashboard metrics. One of the most impressive use cases involves B2B sourcing:

  1. A seller receives a promotional PDF catalog from a wholesale supplier via WhatsApp.
  2. Instead of manually checking if the deals are profitable, they upload the PDF directly to Claude.
  3. Using our MCP, the assistant automatically matches the supplier's items with current Mercado Livre market data, applies the seller's proprietary unit economics, and outputs a color-coded spreadsheet highlighting profitable margins.

This workflow proved so valuable that one user drove 400 kilometers to show our team how he uses the integration, later revealing he charges other sellers to configure JoomPulse MCP for their stores.

Architecting the JoomPulse MCP Server

An analytical task involves deciding which market to examine, choosing comparable products, selecting a time period, interpreting the figures, and turning them into a recommendation. An error at any step can survive into a polished answer.

An assistant can retrieve the right rows but treat a change as a total, compare monthly sales with weekly sales, or read revenue growth as increased demand when fewer units were sold at higher prices. The core architectural challenge was deciding what our tools should expose, what knowledge must travel with the data, and how access, cost, and answer quality should work.

1. One analytics interface for several kinds of assistants

Our MCP connects data used by several products in the Joom group (JoomPulse, JoomPro, and JoomAI). The interface serves our own commerce assistant, external applications like Claude, and independently built agent runtimes.

For an external assistant, the main request path is: Assistant → Public endpoint (Authorization) → MCP service → Analytical query layer → Data warehouse.

However, not all requests reach the data warehouse. Some requests (like reading documentation) stop at the MCP service and return directly to the assistant, which decides whether it needs another query before answering. We also ensured authentication works smoothly across products: an internal integration carries authenticated identity to MCP, while external assistants connect through delegated access.

Figure 1. High-level architecture separating external AI requests from the internal data warehouse.
Figure 1. High-level architecture separating external AI requests from the internal data warehouse.

2. Choose how much freedom a tool gives the model

We started with a broad analytical query tool because we were still learning which questions agents could answer. Our query language comes from Cube, which defines reusable metrics and attributes so each consumer does not have to reconstruct the underlying SQL and business definitions.

Our current interface divides queries into three domain-specific tools:

  • Mercado Livre Brazil analytics
  • Shopee Brazil analytics
  • JoomPro sourcing catalogue

The agent first selects a data domain, then constructs a query within it. Separate documentation tools let the agent find models and read their definitions and examples.

3. Explain the data through a catalogue and analytical rules

A schema tells you how data is stored, but a data catalogue explains what it means and how to use it. MCP makes that context available to an agent.

One trap in our data is the difference between a metric's value and its change. Returning 20 as the current sales value when it actually represents a month-over-month change produces a valid-looking answer from the wrong measure. Another trap is the data's grain: a product and a listing are different entities. Adding three listing rows together might accidentally triple the product-level total.

We spend a lot of time forcing the agent to use tools in the correct order. Our service therefore supplies a product overview, analytical rules, worked queries, and documentation — essentially acting as a “how to work with me” guide for the LLM. The agent reads the directory first and fetches the relevant model’s documentation when needed.

4. Package analytical workflows as a Claude plugin

A seller should not have to invent an analytical method every time they open an assistant. Our public joompulse-skills catalogue packages instructions for recognizable tasks.

A skill tells the assistant how to approach a particular job. The Agent Skills format lets it discover relevant instructions and load the full procedure when needed. For example, a seller comparing a product with competing offers supplies a listing. The skill guides the assistant to identify comparable products, retrieve their prices, and explain the meaningful differences. We packaged the skills as a Claude plugin that bundles these workflows with the JoomPulse MCP connection configuration.

Figure 2. Conceptual mock-up of Claude interface executing a B2B sourcing analysis via MCP.
Figure 2. Conceptual mock-up of Claude interface executing a B2B sourcing analysis via MCP.

5. Design results and errors for the agent's next decision

In an agent loop, error wording is part of the operational interface. We distinguish failures that require different actions:

  • Wrong tool selected: Gets a response naming the correct marketplace tool.
  • Invalid query: Gets guidance toward documentation and examples.
  • Oversized result: Gets a request to reduce the selected fields or rows.

Successful results also consume the model's limited context window. We found that the same data presentation methods that work for humans also work for LLMs. Instead of returning a list of JSON objects that repeat field names, we optimize for context size using a tabular representation. We return column headers once, followed by simple arrays of row values (e.g., ["Shoes", 120]).

6. Keep conversation state out of the query service

Since our workflows did not require server-side MCP sessions, we chose stateless request handling. Requests can be distributed across replicas without preserving conversation state, ensuring a highly independent query path.

7. Connect delegated access to existing identity and permissions

We built the OAuth issuer over our existing login and token infrastructure. At the public MCP endpoint, the server validates the token's intended resource and required scope. Testing the query handler alone was not enough — we had to test the full connection journey end-to-end (gateway, authentication system, frontend, and backend).

8. Meter queries rather than conversations

One user prompt can cause several analytical calls. While searching for an optimal limits solution, we built a composite system.

Before executing a query, the MCP verifies both general limits and specific marketplace quotas based on the user’s plan. To drive engagement, users who purchased access to only one marketplace are still given a small allowance for other marketplaces to explore new data. Successful query-tool calls count toward that allowance. When a limit is reached, the response identifies the reset time, giving the assistant concrete information.

9. Evaluate the interface through an agent, including its documentation

Unit tests cannot establish that a model chooses the right metric. We built an eval harness that runs a fixed collection of questions against an agent and records traces in Langfuse. This is a non-trivial part of the system: it allows us to change configurations on the fly, simulate how different agents (e.g., a “smart” Claude vs. a simpler GPT model) work with our MCP, and monitor limit consumption for typical requests.

A new analytical model creates several pieces of work:

  • Register it in the right tool.
  • Document what its data means.
  • Add evaluation cases for likely mistakes.

Building the MCP architecture means keeping data access, analytical procedures, permissions, and evidence about their behavior consistent as the product changes.

We're hiring in Lisbon, São Paulo and Shenzhen. Open roles ↗