AI assistants

MCP server

Malla runs a remote Model Context Protocol server, so AI assistants like Claude, Cursor and ChatGPT can work with your store: "what sold best this week?", "create a 10 % code for Ana", "which orders are waiting to ship?".

URL https://api.malla.fun/mcp
Transport Streamable HTTP
Auth Authorization: Bearer mk_live_... (a normal API key)

Connect

Use one key per assistant, so you can revoke it on its own.

claude mcp add --transport http malla https://api.malla.fun/mcp \
--header "Authorization: Bearer mk_live_..."

For Cursor, put it in ~/.cursor/mcp.json (or .cursor/mcp.json in a project) with MALLA_API_KEY in your environment. Claude Desktop and other clients that only speak stdio connect through mcp-remote (needs Node.js). To explore the tools, run npx @modelcontextprotocol/inspector with transport "Streamable HTTP", the URL above and the header.

Tools and permissions

The assistant sees only the tools your key's scopes allow: a key with orders:read can look up orders but not cancel them. Tools that change data are marked so clients ask before running them, and destructive ones (cancel, delete, refund) are flagged as such.

Add an X-Timezone: America/El_Salvador header so "today" means your day (default UTC).

Limits

  • The same 300 requests per minute per key as the REST API.
  • Clients must let you set a header. OAuth sign-in (needed by some hosted "custom connectors") isn't available yet.
  • Tools only: no resources or prompts.