Agent Framework
THC Store India publishes a REST API, an MCP (Model Context Protocol) server, and a chat endpoint that any LLM — Claude, ChatGPT, Cursor, or your own agent — can call. Anonymous read access works out of the box. Authenticated tools (cart, checkout, account) require a Personal Access Token.
Model Context Protocol. Best for Claude Desktop, Cursor, and other MCP-aware clients.
https://mcp.thcstore.in/mcpA managed conversational front-door (PAT-gated). Good when you want THC Store to handle tool routing for you.
https://chat.thcstore.in/chatSign in to your THC Store account and visit Connected AI to mint a Personal Access Token (PAT). Use it as a Bearer token on REST or MCP. Each PAT can be scoped to specific tools (e.g. cart:write, orders:read).
Anonymous (tier-0) reads — product search, blog, doctor list, pincode resolve — work with no PAT and are IP rate-limited.
Coming in v2.1: OAuth device-code flow. Your agent will be able to ask the user to authorise scopes from a phone in 60 seconds — no manual PAT paste needed.
curl -X POST https://agent-api.thcstore.in/v1/public/searchProducts \
-H 'Content-Type: application/json' \
-d '{"args":{"query":"ashwagandha","limit":3}}'curl -X POST https://agent-api.thcstore.in/v1/tools/addToCart \
-H 'Authorization: Bearer thc_pat_xxx' \
-H 'Content-Type: application/json' \
-d '{"args":{"productId":1,"quantity":1}}'{
"mcpServers": {
"thc-store": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.thcstore.in/mcp"]
}
}
}{
"mcpServers": {
"thc-store": {
"url": "https://mcp.thcstore.in/mcp"
}
}
}OpenAPI URL: https://agent-api.thcstore.in/v1/openapi.json
Auth: Bearer token (Personal Access Token from /account/connected-ai)Live from https://agent-api.thcstore.in/v1/openapi.json — refreshes hourly.
/v1/tools/getAddressesgetAddresses/v1/tools/getLoyaltyPointsgetLoyaltyPoints/v1/tools/getWalletBalancegetWalletBalance/v1/auth/session/{sessionId}/pollPoll an OAuth session for the redeemed PAT/v1/auth/session/startStart an OAuth session (auth-link / device-code)/v1/tools/public.checkStockpublic.checkStock/v1/tools/public.getBlogPostpublic.getBlogPost/v1/tools/public.getBrandProfilepublic.getBrandProfile/v1/tools/public.getCategoriespublic.getCategories/v1/tools/public.getDoctorProfilepublic.getDoctorProfile/v1/tools/public.getDosageGuidepublic.getDosageGuide/v1/tools/public.getProductpublic.getProduct/v1/tools/public.getProductClaimpublic.getProductClaim/v1/tools/public.getStateCitypublic.getStateCity/v1/tools/public.listBrandspublic.listBrands/v1/tools/public.listDoctorspublic.listDoctors/v1/tools/public.listServiceablePincodespublic.listServiceablePincodes/v1/tools/public.resolvePincodepublic.resolvePincode/v1/tools/public.searchBlogpublic.searchBlog/v1/tools/public.searchProductspublic.searchProducts/v1/tools/whoamiwhoami/v1/tools/getCartgetCart/v1/tools/getCartTotalsgetCartTotals/v1/tools/addToCartaddToCart/v1/tools/applyCouponapplyCoupon/v1/tools/clearCartclearCart/v1/tools/removeFromCartremoveFromCart/v1/tools/updateQuantityupdateQuantity/v1/tools/checkStockcheckStock/v1/tools/getCategoriesgetCategories/v1/tools/getProductgetProduct/v1/tools/getRxRequiredForgetRxRequiredFor/v1/tools/searchProductssearchProducts/v1/tools/getDoctorAvailabilitygetDoctorAvailability/v1/tools/getDoctorProfilegetDoctorProfile/v1/tools/joinAppointmentVideojoinAppointmentVideo/v1/tools/listDoctorslistDoctors/v1/tools/listMyAppointmentslistMyAppointments/v1/tools/confirmStagedConsultationconfirmStagedConsultation/v1/tools/stageConsultationstageConsultation/v1/tools/cancelAppointmentcancelAppointment/v1/tools/getOrdergetOrder/v1/tools/getOrderTrackinggetOrderTracking/v1/tools/listOrderslistOrders/v1/tools/cancelStagedOrdercancelStagedOrder/v1/tools/confirmStagedOrderconfirmStagedOrder/v1/tools/stageOrderstageOrder/v1/tools/listMyPrescriptionslistMyPrescriptions/v1/tools/linkPrescriptionToOrderlinkPrescriptionToOrder/v1/tools/requestPrescriptionUploadrequestPrescriptionUpload/v1/tools/submitPrescriptionsubmitPrescription/v1/tools/getPersonalizedRecommendationsgetPersonalizedRecommendations