MCP Server Documentation
LotsStore MCP Server
Connect AI agents like Claude and Cursor to LotsStore using the Model Context Protocol
Quick Information
MCP Endpoint
https://api.lotsstore.app/mcpAvailable Tools
80 tools
Authentication
OAuth 2.1 with PKCE
Setup Instructions
Configure your MCP client to connect to LotsStore
Add this configuration to your Cursor settings:
{
"mcpServers": {
"lotsstore": {
"url": "https://api.lotsstore.app/mcp"
}
}
}Steps:
- Open Cursor Settings (Cmd/Ctrl + ,)
- Search for "MCP Servers"
- Click "Edit in settings.json"
- Add the configuration above
- Restart Cursor
- Cursor will automatically discover OAuth endpoints and handle authentication
Authentication
This server implements OAuth 2.1 with PKCE for secure authentication
OAuth 2.1 with PKCE (S256)
Most modern MCP clients will automatically discover and handle the OAuth flow. The server uses OAuth 2.1 with PKCE (S256) for secure authentication.
OAuth Discovery
https://api.lotsstore.app/.well-known/oauth-authorization-serverAuthorization Endpoint
https://api.lotsstore.app/api/oauth/authorizeToken Endpoint
https://api.lotsstore.app/api/oauth/tokenHow it works:
- Clients automatically discover OAuth endpoints
- Users are redirected to authenticate via browser
- Authorization code is exchanged for access token
- Bearer token is used for all MCP requests
Available Tools
80 MCP tools available for LotsStore. Use these tool names when calling the MCP server.
analytics
get_store_analyticsGet Store Analytics
Revenue, orders, average order value and the visit-to-order funnel for one store over a date range, with daily rows and the totals compared with the previous period of the same length. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
billing
create_checkoutChoose a LotsStore plan or add credits
Create a checkout link for a LotsStore plan: pass plan (starter, pro or business) and cycle (monthly or annual). Give the link to the person to pay in their browser; never ask for card details in chat. Someone who already has a plan gets the page to manage or change it instead. Without plan it returns the lotstech.com page where LotsTech Credits are bought; a store without a plan runs pay as you go from credits.
get_billingGet LotsStore billing
Show how the caller's stores are paid for: the plan (if any), whether today is covered by the plan or paid from LotsTech Credits, the credit balance, the pay-as-you-go rate per store, plans_available, the plans to choose from, and top_up_url (lotstech.com) for buying credits. Each store needs room on a plan or credits; an unfunded store keeps its storefront and data but pauses new orders and becomes read-only until funded.
customers
get_customerGet Customer
Gets one store customer, addresses, and store-scoped order summary after customer-group ownership checks. tax says whether the customer is tax exempt (certificate and expiry) and the business tax number they gave. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
list_customersList Customers
List a store's customers with search, creation date filters and paging. For customers added today, send created_after with today's date and the person's time_zone. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
update_customer_taxUpdate customer tax
Marks a customer with an account as tax exempt, with the exemption certificate number and an optional expiry date, or saves their business tax number (VAT number, GSTIN, ABN). Their orders charge no tax while they are signed in and the exemption is valid, and the invoice says "Tax exempt: certificate (number)". Owner or admin only.
discounts
create_promotionCreate Discount
Creates a discount code for one store: a percentage or a fixed amount off the whole order. Shoppers type it in the Discount code field in the cart or at checkout; one code per order. The code is stored in upper case and works only while its status is active. limit is how many orders can use it: an order counts from the moment it is placed, also while its payment is pending, and gives its use back if it is cancelled, or closes or is replaced without being paid; null means unlimited. Delivery prices, free delivery above an amount and minimum order amounts use the price after the code. Codes cannot be limited to products, dates or a minimum order. A fixed value is in major units (500 is ₹500.00).
delete_promotionDelete Discount
Deletes a store-owned discount code.
list_promotionsList Discounts
List a store's discount codes with status, value and used (orders holding the code, counted by LotsStore: paid or open orders, including unpaid orders still in their payment window). A fixed discount's value is in major units (500 is ₹500.00), a percentage is a percent; display_value on each code says it in words.
update_promotionUpdate Discount
Changes the status of a store-owned discount code.
domains
add_custom_domainAdd Custom Domain
Connect the person's own domain (for example shop.example.com) to a store. Returns one CNAME record pointing to customers.mylots.store for the owner to add at their DNS provider; HTTPS is set up automatically.
delete_custom_domainDelete Custom Domain
Removes a custom domain from a store and its storefront deployment.
list_custom_domainsList Custom Domains
Lists custom domains configured for a store.
verify_custom_domainVerify Custom Domain
Check a connected domain: reports whether DNS is in place, the security certificate is being issued, or the store is live on the domain.
inventory
list_inventoryList Inventory
List stock per product variant: in stock, reserved by open orders, incoming and available.
update_inventoryUpdate Inventory
Set the stock of a product variant.
orders
export_ordersExport orders
Export a store's orders as rows for a spreadsheet: one row per item, with the order number and date, status, customer, shipping address and phone, item, variant, SKU, quantity and price, order totals, payment, fulfilment, tracking and refunds. Order totals and refunds are on the first row of each order only, so adding up a column gives the real revenue. Store owners and admins only; every export is recorded in the store activity log. Default range is the last 30 days (at most 366 days and 50,000 orders per export). Expired, rejected and canceled orders are left out unless you name them in status. Returns up to 250 orders per call; pass next_cursor back as cursor to get the next page until it is null. Amount columns are in major units (599 is ₹599.00), not minor units.
get_checkout_orderGet Checkout Order
Gets a tenant-scoped checkout order request, payment attempts, and timeline. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
get_orderGet Order
Get one confirmed order: items, totals, customer, addresses, payment and fulfilment. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
list_checkout_ordersList Checkout Orders
Lists pre-fulfillment checkout order requests and their independent payment/acceptance states, newest first. For orders placed today, send created_after with today's date and the person's time_zone. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
list_ordersList Orders
List a store's confirmed orders with paging, status and creation date filters. For orders placed today, send created_after with today's date and the person's time_zone. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
operate_checkout_orderOperate Checkout Order
Moves a confirmed LotsStore order through its steps and records refunds made by hand. action: start_processing (from confirmed); fulfill, which packs the order (from confirmed or processing; input.packing_note, input.items); ship (from packed; input.tracking_number required, input.courier_name, input.tracking_url); deliver (from shipped); cancel (only before the order ships; cancelling an order paid online refunds it and is dashboard only); manual_refund (input.reference, input.amount_minor; records money returned outside LotsStore). Steps only move forward: a refused move answers 409 ORDER_STEP_NOT_ALLOWED with the reason, and the same idempotency_key again returns the order unchanged. A shipped order is also marked delivered automatically auto_deliver_after_days after shipping (store setting, default 7, 0 = off), or when the shopper presses "I received my order". The shopper gets an email at each step with a link to their order page. refund, refund_try_now and refund_balance are dashboard only. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
update_checkout_orderUpdate Checkout Order
Applies an audited payment verification or seller acceptance action. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
payments
connect_razorpayConnect Razorpay
Record the store's own Razorpay account after the owner connects it. Prefer start_payment_oauth, which gives the owner a Razorpay sign-in link.
connect_stripeConnect Stripe
Connect the store owner's own Stripe account. Returns the store's Payments page, where the owner pastes one Stripe restricted key, and the steps page for creating that key. Never ask for or accept a Stripe key in chat. Charges run on the owner's Stripe account and settle to their Stripe balance; LotsStore takes 0% of sales. Stripe works in the countries Stripe supports.
get_payment_settingsGet Payment Settings
Gets safe payment method and order acceptance settings for a store.
start_payment_oauthStart Payment Provider Connection
Start connecting the store's own Razorpay account: returns a Razorpay sign-in and consent link for the store owner to open in their browser. Payments settle straight to the merchant's Razorpay account.
start_razorpay_onboardingStart Razorpay Account Onboarding
Get a link for the store owner to open in their browser to sign in to Razorpay, or create a Razorpay account, and connect it to the store. For businesses registered in India. Money from online payments then settles to the owner's own Razorpay account.
update_payment_settingsUpdate Payment Settings
Turn checkout on or off, choose test or live mode, and set which payment methods the store offers (Stripe, Razorpay, UPI to a UPI ID, WhatsApp orders) and whether verified payments are accepted automatically. A Stripe key is pasted by the owner on the Payments page, never sent here from a chat.
products
add_productAdd Product
Add a product to a store with its variants (for example sizes or colours), prices in minor units of the store currency, stock, images and category. Products start as drafts unless status is published.
add_product_variantAdd Product Variant
Creates a variant with options, pricing, identifiers, dimensions, and inventory behavior on an owned product.
bulk_add_productsBulk Add Products
Add up to 100 products to a store in one call, each with the same fields as add_product.
create_categorycreate Category
Create a product category, optionally under a parent category.
create_collectioncreate Collection
Create a product collection, such as Summer or Best sellers.
delete_categorydelete Category
Delete a product category. Products in it are kept.
delete_collectiondelete Collection
Delete a product collection. Its products are kept.
delete_productDelete Product
Deletes a product and its derived Lots snapshot after validating store ownership.
delete_product_variantDelete Product Variant
Deletes a variant after validating store and product ownership.
get_productGet Product
Get one product with its variants, prices, stock settings, images and categories. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
list_categorieslist Categories
List a store's product categories, including parent and subcategories and their order.
list_collectionslist Collections
List a store's product collections.
list_productsList Products
List a store's products with search, status filter, creation date filters and paging. For products added today, send created_after with today's date and the person's time_zone. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
update_categoryupdate Category
Rename, move or reorder a product category.
update_collectionupdate Collection
Rename a product collection or change its handle.
update_productUpdate Product
Change a product: title, description, status, prices, variants, images, categories, SEO and more.
update_product_variantUpdate Product Variant
Updates a variant and its prices after validating store and product ownership.
reviews
list_product_reviewsList Product Reviews
Lists tenant-scoped product reviews for merchant moderation.
moderate_product_reviewModerate Product Review
Publishes or rejects a tenant-owned product review.
reply_product_reviewReply to Product Review
Adds or updates the merchant reply on a tenant-owned review.
settings
disconnect_whatsappDisconnect WhatsApp
Disconnect the store's own WhatsApp number from LotsStore, under the owner's instruction: shoppers stop getting order messages from it, and LotsStore stops receiving its message events. The number keeps working in WhatsApp (and in the WhatsApp Business app); nothing is deleted at Meta. Preview first: without confirm it changes nothing and answers what would stop. Show that to the owner; only after they agree, call again with confirm: true. Reconnecting needs the dashboard. Store owners and admins only.
get_whatsapp_connectionGet WhatsApp connection
The store's own WhatsApp number that sends order messages to shoppers (order confirmed, order shipped, UPI payment reminder), connected by the owner in the dashboard (Settings, WhatsApp; Meta's sign-in window, so it cannot be connected from here). Returns connected, the number and business name, whether it also runs in the WhatsApp Business app, the message language, each message's template status at Meta (approved, pending, rejected), what Meta reports about the account (payment method, daily messaging limit, quality) when it can be read, recent sending problems in plain words, and the counts of messages sent in the last 30 days. Never returns a token. Store owners and admins only.
shipping
get_shipping_settingsGet Shipping Settings
Get a store's shipping setup: business and origin address, fallback product weight, delivery date settings (processing days, order cut-off time, working days, automatic delivered after days, time zone), handling fee, zones (highest priority first) and delivery methods with their rates, price bands, limits and delivery days. delivery_settings has every setting with its default filled in. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
update_shipping_settingsUpdate Shipping Settings
Change a store's shipping setup. Send zones or methods as the full list the store keeps: any left out are removed (get_shipping_settings first). When an address matches more than one zone, only the zone with the highest priority is used; methods without a zone always apply. Method types: fixed, free, local_pickup (needs no delivery address at checkout) and rate_band, priced by a band table of weight (grams) or order value (minor units). The handling fee is added to paid delivery options only; delivery dates count processing days and the method's days as working days from the order cut-off time.
stores
archive_storeArchive a store
Archive a store: owner only, confirmed by typing the store name in confirm_name. The storefront goes offline and billing for the store stops; nothing is deleted. The owner can restore it for 30 days. Show the person what this does and get their go-ahead first.
create_storeCreate Store
Create a store with a free name.mylots.store address. Needs room on the person's LotsStore plan or LotsTech Credits (check get_billing). The country decides the store currency (for example US sells in USD, IN in INR) and cannot change later. The store starts as a draft; publish_store puts it live.
get_storeGet Store
Gets one LotsStore tenant, storefront settings, user role, and public URL.
list_store_activityList Store Activity
Lists recent merchant and commerce activity for an accessible store.
list_storesList Stores
Lists LotsStore tenants where the authenticated user is an active member.
publish_storePublish Store
Put a store's storefront live at its address so shoppers can browse and buy.
restore_storeRestore an archived store
Restore a store archived in the last 30 days: owner only. It needs room on the person's plan or LotsTech Credits; the storefront comes back online.
update_storeUpdate Store
Update a store's name, description, settings or status. Set status to archived to stop billing for the store and take its storefront offline (nothing is deleted); set it back to draft or active to restore it, which needs room on your plan or LotsTech Credits.
update_storefront_settingsUpdate Storefront Settings
Saves, publishes, or resets versioned storefront appearance, content, navigation, policies, and SEO settings.
support
grant_support_accessGrant Support Access
Let LotsTech support (support@lotstech.com) into one store for a limited time so they can look at a problem and fix it. Support joins as Admin and can never change billing, payments, the owner or the team. Without confirmed: true it changes nothing and returns the consent text; grant only after the person has read it and said yes. duration is 24h, 7d (default) or 30d. may_publish (default false) lets support publish fixes live. Granting again while access is on changes the end time. It opens a support case for the person.
list_support_accessList Support Access
Whether LotsTech support has access to this store, until when, and what support did there. available false means support access is not set up yet.
list_support_requestsList Support Requests
List the support requests the signed-in person has sent to the team that builds this product: number, type, title, status (In progress, Waiting for you, Done), last update, the team's latest reply and a link when one is available. Open requests by default; status all includes finished ones. Pass case_number (for example 1042) to see one request. Use it when the person asks about a problem they reported or whether the team has answered.
revoke_support_accessRevoke Support Access
End LotsTech support's access to this store now. Support leaves the team at once.
submit_support_requestSubmit Support Request
Send a bug report, feature request, feedback or support question to the team that builds this product. It sends exactly the title and details given. Passwords, API keys, tokens and other people's personal data do not belong in a request. Useful details: what was tried, what happened and what was expected; for a failed tool, tool_name, error_message and request_id. The request is filed under the email the person signed in with, and the team replies to that email. Returns the request number, its status, when to expect a reply and a link when one is available. The same error from the same tool within 24 hours is added to the person's open request instead of opening a new one.
taxes
create_tax_categoryCreate tax category
Adds a tax category, for example "Food (reduced)" or "Books (zero rate)". Set what it pays per country in update_tax_settings rates, then give products the category with set_product_tax_category.
get_tax_settingsGet Tax Settings
Gets the store's tax registrations, rates per country, region and US ZIP code, tax categories, price display, shipping tax and invoice settings, plus suggested standard rates (each with the date it was checked and its source) and notices when a suggestion you used has changed. Suggestions are never applied by themselves. stripe_tax says whether "Use Stripe Tax" is on, whether the store's Stripe connection can use it, and the fallback. business_buyers says whether checkout asks for a business tax number, whether the reverse charge is on and whether refunds get credit notes.
list_tax_categoriesList tax categories
Lists the store's tax categories (Standard and any others, such as food or books) with how many products use each.
preview_taxPreview tax
Shows the tax and total a shopper at an address would pay for given products, without placing an order. Works the tax out the same way checkout does: with the store's own registrations, rates, ZIP rates and tax categories, or with Stripe Tax when it is on. engine says which answered: lots (own rates), stripe_tax, or lots_fallback (Stripe Tax was unavailable and the store uses its own rates then). Nothing is saved. Amounts are in minor units (59900 is ₹599.00); every amount has a display_<name> value beside it: quote that value.
set_product_tax_categorySet product tax category
Gives a product, or one of its variants, a tax category by code. Send an empty code to go back to Standard (for a variant: the same as its product).
update_tax_categoryUpdate tax category
Changes a tax category's name, code, kind, home rate, HSN/SAC code or whether it is the default.
update_tax_settingsUpdate Tax Settings
Updates where the store is registered for tax, the rates it charges per country, region and US ZIP code, tax categories, whether prices include tax, shipping tax, rounding and invoice settings, the optional "Use Stripe Tax" switch with what happens when Stripe Tax is unavailable, and business buyers: an optional tax number field at checkout, the EU reverse charge and credit notes for refunds. Lists you send replace the saved list; leave a list out to keep it. Suggested rates are never saved unless you send them.
team
accept_store_invitationAccept a store invitation
Accept an invitation to a store's team with the token from the invitation link. The signed-in account's email must match the invitation.
add_store_memberInvite a store teammate
Invite a teammate to a store by email with a role (admin, manager, staff or viewer). They get an email with a link and have access only after they accept it, signed in with that email. Returns invite_url to share if the email does not arrive. Inviting someone again sends a fresh link.
leave_storeLeave a store
Leave a store's team. Anyone except the owner can leave; the owner archives the store instead. Rejoining needs a new invitation.
list_store_membersList Store Team Members
Lists a store's team: active members, pending invitations (with when they expire) and removed members.
remove_store_memberRemove Store Team Member
Deactivates a store team member without deleting audit history.
update_store_memberUpdate Store Team Member
Updates a store team member role or active status.
