Skip to content

MCP OData Connect ​

Connect your AIs directly to Mercado Eletrônico's OData Connect. Procurement queries, order tracking, and financial analysis in natural language, in Claude, Cursor and Genius sub-agents.


MCP OData Connect exposes Mercado Eletrônico's OData Connect via the Model Context Protocol (MCP). AI agents query purchase requests, orders, quotations, contracts, invoices and other entities in natural language, without building OData calls.

  • 15 tools: one per domain, plus describe
  • 85 OData entities
  • Read-only
  • Sign in with ME (your user) or Key + Secret (integration)

Server URL: https://odata.mercadoe.rocks/mcp (HTTP)

How to connect ​

Claude (claude.ai and Claude Desktop) ​

  1. In Settings → Connectors, click Add custom connector.
  2. Enter https://odata.mercadoe.rocks/mcp and save.
  3. Click Connect. The MCP OData Connect sign-in page opens: choose the environment and sign in with ME (your user) or with a Key + Secret from the Partner's portal.

That's it: Claude uses the tools with your session, with no credentials stored in files.

Claude Code ​

bash
claude mcp add --transport http --scope user me-odata https://odata.mercadoe.rocks/mcp

Then run /mcp, pick me-odata and click Authenticate. The sign-in is the same as in Claude.

Cursor and other OAuth clients ​

Add the server by its URL. In Cursor, in ~/.cursor/mcp.json:

json
{
  "mcpServers": {
    "me-odata": {
      "url": "https://odata.mercadoe.rocks/mcp"
    }
  }
}

On the first call the client opens the sign-in page.

Authentication ​

Sign in withQueries as
MEYour user, with its permissions
Key + SecretThe API Key's integration, created in the Partner's portal. See Credentials

The environment (production, trunk, stg or uat) is chosen on the sign-in page. To switch environment or credentials, disconnect and connect again.

Available tools ​

Each domain is one tool. All of them take the same parameters:

ParameterDescription
entityEntity in the domain (default: the main one, e.g. Orders)
filtersList of { "field", "op", "value" }, combined with "and". Operators: eq, gt, ge, lt, le and contains (text)
from / toPeriod on the entity's date field (YYYY-MM-DD or ISO UTC). from is inclusive, to exclusive; a bare date covers the whole day
fieldsFields returned in each row
limitMaximum rows, from 1 to 500 (default 50)
cursornext_cursor from the previous call, for the next page
ToolDomain
requestsPurchase requests, items, approvals, deliveries, cost objects and history
preordersPre-orders, items, deliveries and approvals
rfqsQuotations, items, attendees and supplier responses
ordersPurchase orders, items, deliveries and dates
invoicesInvoices, items, approvals and attachments
contractsContracts, items, approvals, taxes and change history
serviceordersService orders
servicesheetsService sheets
trackingTransaction tracking (TrackingTransactions)
productsProduct catalog and supply options
suppliersSuppliers, groups and metrics
borgsOrganizations (borgs)
usersUsers
permissionsPermission groups
describeWith no arguments, lists domains and entities. With entity, shows fields, types, operators and joins

📘 Large entities

Orders, pre-orders, quotations, tracking and the request, order, contract and invoice items are large entities: they require from and to or an eq filter on an id field. Use describe to see which ones they are and each one's date field.

For details on the data exposed via OData, see the OData feed and Schemas.


Playground ​

Test the server with your Partner's portal Key and Secret: List tools shows the available tools and Call tool runs a real query.

Credenciais

Use a Key e o Secret de uma API Key do Partner's portal (credenciais).

A resposta aparecerá aqui ao listar tools ou chamar uma tool.