MCP setup
Connect an AI assistant
MCP (Model Context Protocol) lets an assistant such as Claude work with your business: look up orders, check stock, and with your permission change them. It gets only the tools your credential’s scopes allow.
Before you start
Create a credential in the enterprise portal under API & MCP (AI) and tick only the scopes you want the assistant to have. Start with read-only scopes, or with a sandbox credential, until you trust it. MCP must be switched on for your business; if it is not, the server answers MCP_NOT_ENABLED.
- 1Claude · Cursor · VS CodeMCP client
- 2POST /mcpBearer key.secret
- 3tools/listonly your scopes
- 4tools/call → RESTsame rules, same audit

The endpoint
One URL, Streamable HTTP, stateless: every request carries your credential and nothing is kept between requests. Only POST is used; GET returns 405.
https://www.naamaa.in/api/v1/ext/naamaa/mcpSign in with the same credential as the API, in either form:
Authorization: Bearer KEY_ID.SECRET
# or
X-Api-Key: KEY_ID
X-Api-Secret: SECRETConnect a client
Replace KEY_ID and SECRET with your credential. These clients accept custom headers.
claude mcp add --transport http naamaa https://www.naamaa.in/api/v1/ext/naamaa/mcp \
--header "Authorization: Bearer KEY_ID.SECRET"MCP Inspector
Run the command, choose the transport Streamable HTTP, paste the endpoint, add the header Authorization: Bearer KEY_ID.SECRET, and connect. List the tools to see what your credential gets.
Use the endpoint with Streamable HTTP and send the Authorization header. A plain request shows what happens on the wire:
The tools
One tool per route your credential’s scopes allow. A tool you cannot use is not listed at all.
| Tool | REST route | Scope | Description (English, as the assistant sees it) |
|---|---|---|---|
get_business | GET /me | — | The business this credential belongs to, and the scopes it holds. |
list_products | GET /products | catalog:read | List products and services (status ALL, ACTIVE or INACTIVE). |
get_product | GET /products/{id} | catalog:read | One product with its variants. |
update_price | PATCH /products/{id}/price | catalog:write | Changes the price customers pay (mrp, basePrice = offer price). |
set_product_status | PATCH /products/{id}/status | catalog:write | Shows (ACTIVE) or hides (INACTIVE) the product on your storefront. |
list_stock | GET /inventory | inventory:read | Stock of every tracked product. |
set_stock | PUT /inventory/{id} | inventory:write | Sets the stock to exactly this number. |
list_orders | GET /orders | orders:read | List orders, filter by status and dates. |
get_order | GET /orders/{id} | orders:read | One order. |
change_order_status | POST /orders/{id}/status | orders:write | Moves the order to this status and notifies the customer. |
cancel_order | POST /orders/{id}/cancel | orders:cancel | Cancels the order (destructive). |
sales_summary | GET /reports/summary | reports:read | Orders and revenue for a date range. |
browse_storefront | GET /storefront/products | storefront:read | What a customer sees: live items at the price charged. |
check_availability | GET /storefront/products/{id}/availability | storefront:read | Slots, stay dates or stock for a product. |
list_slots | GET /storefront/products/{id}/slots | storefront:read | Bookable slots of a service on a date. |
check_delivery | GET /storefront/delivery-check | storefront:read | Whether the business delivers to a pincode or point. |
send_customer_code | POST /customers/otp/send | bookings:create | Sends a one-time code to the customer (OTP-first businesses). |
verify_customer_code | POST /customers/otp/verify | bookings:create | Verifies the code and returns a customer proof. |
place_customer_order | POST /checkout | bookings:create | Places an order for this customer; they get a payment link. |
send_payment_link | POST /orders/{id}/payment-link | payments:create | Creates and sends the payment link for an order you placed. |
get_payment_status | GET /orders/{id}/payment | payments:create | Awaiting, paid, failed or expired. |
Tools are thin wrappers over the REST API, so they follow the same rules, limits and audit trail. Cancelling an order appears only when the platform allows orders:cancel for your business type and your credential holds it. Refunds, deletions and settlements are not available.
Safe use
Every tool that changes data says in its description what it will change, so the assistant should ask you before using it. Tool names and descriptions are English; the assistant answers you in your own language.
Coming: Sign in with Naamaa
Hosted assistants such as claude.ai and ChatGPT on the web cannot send custom headers, so they cannot use a key and secret. A “Sign in with Naamaa” connection, where you approve with your usual phone code, is planned as a later phase. Until then use one of the clients above.