SHOPLINE MCP (Model Context Protocol)

The SHOPLINE Model Context Protocol (MCP) provides a set of tools that AI agents can use to interact with the SHOPLINE API and search our knowledge base (including documentation and support articles).

⚠️

By using the SHOPLINE MCP, you agree to the SHOPLINE API Terms.

MCP Features

The Model Context Protocol (MCP) is an open standard that enables AI applications to securely connect with external data sources and tools. By integrating the SHOPLINE MCP, you empower your AI agents with:

  • Built-in Knowledge Base: Instantly search and fetch both SHOPLINE Open API schemas, documentation and FAQs to resolve integration queries.
  • Secure Data Retrieval: Securely interact with SHOPLINE Open API endpoints to read real-time data.
  • Accelerated Code Generation: Leverage the AI's deep understanding of SHOPLINE's data structures to auto-generate accurate payloads and integration scripts.

MCP Tools

The SHOPLINE MCP exposes the following MCP tools. We recommend enabling human confirmation of tools and exercising caution when using the SHOPLINE MCP with other servers to avoid prompt injection attacks.

MCP ToolsDescriptionAPI Endpoints
shopline_get_ordersRetrieve store order lists and transaction history.Get Orders
shopline_get_customersFetch customer profiles and membership data.Get Customers
shopline_get_productsQuery the store's product catalog and item details.Get Products
shopline_get_products_stocksCheck real-time inventory levels for specific products.Get Product Stocks
shopline_get_promotionsFetch active discounts, free shipping rules, and promotional campaigns.Get Promotions
shopline_get_user_couponsFetch customers who have received coupons from a specific promotion.Get User Coupons With Cursor
shopline_create_user_couponCreate and assign a coupon to a specific customer.Send Coupon
shopline_add_customer_tagsAdd tags to an existing customer profile.Add Customer tags
shopline_create_promotionsCreate draft discounts, coupon campaigns, and free shipping promotions.Create Promotion
shopline_list_admin_open_api_endpointsDiscover all available SHOPLINE Open API endpoints.All Admin APIs
shopline_get_admin_open_api_endpointRetrieve detailed request and response schemas for a specific API endpoint.All Admin APIs
shopline_list_admin_open_api_docsBrowse the index of all SHOPLINE Open API documentations.Knowledge Base
shopline_fetch_admin_open_api_docFetch the complete content of a specific Open API document.Knowledge Base
shopline_list_developer_docsRetrieve a directory of general SHOPLINE Developer documentation.Knowledge Base
shopline_fetch_developer_docAccess the full text of a specific developer guide.Knowledge Base
shopline_search_faqsSearch SHOPLINE's official FAQ articles using keywords.Knowledge Base
shopline_fetch_faqRetrieve the full, step-by-step content of a specific FAQ article.Knowledge Base
switch_shopSwitch to a different merchant shop and reset the current MCP session.
Re-authentication is required after switching.
N/A

MCP Prompts (Guided Workflows)

MCP Prompts act as built-in standard operating procedures (SOPs). They teach your AI agent how to efficiently combine multiple tools to achieve complex goals without manual instruction.

MCP PromptsDescriptionGuided Workflow
shopline_search_admin_open_api_docsIntelligent search for Open API documentation.Teaches the Agent to combine shopline_list_admin_open_api_docs with shopline_fetch_admin_open_api_doc for schema context.
shopline_search_developer_docsExploration of developer guides.Instructs the Agent to use shopline_list_developer_docs and shopline_fetch_developer_doc for tutorials.

Connect to SHOPLINE MCP

Before configuring this MCP, please make sure Node.js is installed on your machine.

Open Claude Desktop → SettingsConnectorsAdd Custom Connector → Enter the server URL:

https://shopline-open.shopline.io/mcp/on-demand
📘

Security Guidelines

You are strictly responsible for all actions performed via MCP on your store. To protect your store data, follow these best practices:

  1. Enable MCP Access: Navigate to Admin → Settings → Permission & Security → Staff Members → API Auth and turn on MCP Access for the staff account that will use MCP.
  2. Apply Least Privilege: On the same page, select the permissions to grant MCP access. Note that AI can only access permissions that are both checked and currently supported by MCP — do not check permissions you do not want your AI to access.

⚠️ Beware of Prompt Injection: Processing unverified external content or connecting to untrusted servers may allow attackers to embed hidden instructions, tricking your AI into executing unauthorized SHOPLINE tools. Ensure your AI interacts only with trusted sources.


Testing Your MCP Setup

To test your connection, open a new chat in your AI client (e.g., Claude Desktop, Cursor) and try questions like:

- "Fetch the details for [order number] and tell me its status."
- "Check the current inventory stock for the [product name]."
- "How do I manage [specific resource] via the Open API?"
- "Show me a request payload example for [specific API / webhook]."
- "What are SHOPLINE's rules and procedures for [specific features]?"
- "How do I configure [specific store setting] in the SHOPLINE admin?"

The AI should now have access to your real-time SHOPLINE store data and official documentation through the MCP.


Did this page help you?