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)
- In Settings → Connectors, click Add custom connector.
- Enter
https://odata.mercadoe.rocks/mcpand save. - 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
claude mcp add --transport http --scope user me-odata https://odata.mercadoe.rocks/mcpThen 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:
{
"mcpServers": {
"me-odata": {
"url": "https://odata.mercadoe.rocks/mcp"
}
}
}On the first call the client opens the sign-in page.
Authentication
| Sign in with | Queries as |
|---|---|
| ME | Your user, with its permissions |
| Key + Secret | The 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:
| Parameter | Description |
|---|---|
entity | Entity in the domain (default: the main one, e.g. Orders) |
filters | List of { "field", "op", "value" }, combined with "and". Operators: eq, gt, ge, lt, le and contains (text) |
from / to | Period on the entity's date field (YYYY-MM-DD or ISO UTC). from is inclusive, to exclusive; a bare date covers the whole day |
fields | Fields returned in each row |
limit | Maximum rows, from 1 to 500 (default 50) |
cursor | next_cursor from the previous call, for the next page |
| Tool | Domain |
|---|---|
requests | Purchase requests, items, approvals, deliveries, cost objects and history |
preorders | Pre-orders, items, deliveries and approvals |
rfqs | Quotations, items, attendees and supplier responses |
orders | Purchase orders, items, deliveries and dates |
invoices | Invoices, items, approvals and attachments |
contracts | Contracts, items, approvals, taxes and change history |
serviceorders | Service orders |
servicesheets | Service sheets |
tracking | Transaction tracking (TrackingTransactions) |
products | Product catalog and supply options |
suppliers | Suppliers, groups and metrics |
borgs | Organizations (borgs) |
users | Users |
permissions | Permission groups |
describe | With 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
fromandtoor aneqfilter on an id field. Usedescribeto 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.