Shopify Liquid MCP Server
Provides instant access to complete Shopify Liquid templating documentation, including 30 tags, 101 filters, and 67 objects for theme development. Offers offline-first search and retrieval of Liquid syntax, parameters, and examples.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Shopify Liquid MCP Server how do I use the forloop object in a collection loop?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Shopify Liquid MCP Server
๐ Fast, local, offline-first MCP server for Shopify Liquid documentation with 198 comprehensive docs including all tags, filters, and objects.
A specialized Model Context Protocol (MCP) server that provides instant access to complete Shopify Liquid documentation for AI assistants like Claude, Cursor, and other MCP-compatible tools.
๐ฏ Why This MCP Server?
vs. Official Shopify MCP
While Shopify provides an official MCP server that covers all Shopify APIs, this server is specifically optimized for Liquid template development:
Feature | Official Shopify MCP | This (Liquid MCP) |
Focus | All Shopify APIs (Admin, Storefront, Functions, etc.) | Liquid templating only |
Storage | Remote (queries shopify.dev) | Local (no network needed) |
Speed | Network-dependent | Instant (<1ms) |
Offline | โ Requires internet | โ Fully offline |
Customization | Fixed documentation | Add your own docs |
Coverage | General API docs | 198 Liquid-specific docs |
Runtime | Node.js | Python |
Use Cases
Use Official Shopify MCP for:
Admin API/GraphQL development
App development with Shopify APIs
Functions and POS extensions
Real-time schema validation
Use This Liquid MCP for:
Theme development with Liquid
Liquid template debugging
Offline development
Faster Liquid reference lookups
Project-specific Liquid snippets
Use Both! They complement each other perfectly - official MCP for APIs, this for Liquid.
Related MCP server: DocsetMCP
โจ Features
๐ Lightning Fast - Local SQLite FTS5 search (<1ms response time)
๐ Complete Coverage - 30 tags, 101 filters, 67 objects (198 total docs)
๐ Offline First - No network requests, works anywhere
๐ณ Docker Ready - One command deployment
๐จ IDE Integration - Works with VS Code, Cursor, Claude Desktop, Zed
๐ง Customizable - Add your own project-specific Liquid docs
๐ Rich Documentation - Full syntax, parameters, examples for everything
๐ Smart Search - Full-text search with snippet highlighting
๐ฆ Installation
Option 1: Using pip (Recommended)
pip install git+https://github.com/florinel-chis/shopify-liquid-mcp.gitOption 2: Using Docker
# Pull the image
docker pull florinel-chis/shopify-liquid-mcp:latest
# Or build locally
docker build -t shopify-liquid-mcp .
docker run -it shopify-liquid-mcpOption 3: Using docker-compose
docker-compose up -dOption 4: From Source
git clone https://github.com/florinel-chis/shopify-liquid-mcp.git
cd shopify-liquid-mcp
pip install -e .๐ฎ Usage
With VS Code
Using Docker
Create or edit .vscode/settings.json:
{
"mcp.servers": {
"shopify-liquid": {
"type": "docker",
"image": "shopify-liquid-mcp:latest",
"transport": "stdio"
}
}
}Using Local Installation
Create .mcp.json in your project root:
{
"mcpServers": {
"shopify-liquid": {
"type": "stdio",
"command": "shopify-liquid-mcp"
}
}
}Or add to VS Code settings:
{
"mcp.servers": {
"shopify-liquid": {
"command": "shopify-liquid-mcp",
"args": [],
"transport": "stdio"
}
}
}With Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Using Docker
{
"mcpServers": {
"shopify-liquid": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "shopify-liquid-mcp:latest"]
}
}
}Using Local Installation
{
"mcpServers": {
"shopify-liquid": {
"command": "shopify-liquid-mcp"
}
}
}With Cursor
Add to Cursor's MCP configuration (Settings > Features > MCP Servers):
{
"mcpServers": {
"shopify-liquid": {
"command": "shopify-liquid-mcp"
}
}
}Or with Docker:
{
"mcpServers": {
"shopify-liquid": {
"command": "docker",
"args": ["run", "-i", "--rm", "shopify-liquid-mcp:latest"]
}
}
}With Zed Editor
Create .zed/settings.json:
{
"context_servers": {
"shopify-liquid": {
"command": "shopify-liquid-mcp"
}
}
}With Continue.dev
Edit ~/.continue/config.json:
{
"mcpServers": [
{
"name": "shopify-liquid",
"command": "shopify-liquid-mcp"
}
]
}๐ ๏ธ Available Tools
Once configured, your AI assistant has access to 7 specialized tools:
1. search_liquid_docs(queries: List[str])
Full-text search across all Shopify Liquid documentation.
Example:
AI: I'll search for "for loop" in the documentation...2. get_liquid_tag(tag_name: str)
Get complete documentation for a specific tag.
Example:
AI: Let me get the documentation for the 'for' tag...3. get_liquid_filter(filter_name: str)
Get complete documentation for a specific filter.
Example:
AI: I'll look up the 'upcase' filter documentation...4. get_liquid_object(object_name: str)
Get complete documentation for a specific object.
Example:
AI: Let me check the 'product' object properties...5. list_liquid_tags()
List all 30 available tags organized by category.
6. list_liquid_filters()
List all 101 available filters organized by category.
7. list_liquid_objects()
List all 67 available objects organized by category.
๐ฌ Example Queries
Try asking your AI assistant:
Getting Documentation:
"Show me documentation for the for loop tag"
"How does the money filter work in Liquid?"
"What properties are available on the product object?"
Searching:
"Search for documentation about cart functionality"
"Find all filters related to dates"
"What objects can I use for collections?"
Listing:
"List all Shopify Liquid tags"
"Show me all available string filters"
"What iteration tags are available?"
Building:
"Help me display products in a grid"
"How do I format dates in Liquid?"
"Show me how to work with the cart"
๐ Documentation Coverage
Complete Reference
30 Liquid Tags
Control flow:
if,unless,case,elseIteration:
for,break,continue,cycle,tablerow,paginateVariables:
assign,capture,increment,decrement,echoTheme:
layout,section,sections,render,include,content_forHTML/Assets:
form,style,stylesheet,javascriptSyntax:
comment,raw,liquid,doc
101 Liquid Filters
String (24):
upcase,downcase,capitalize,append,prepend, etc.Array (13):
join,sort,reverse,map,where,size, etc.Math (11):
plus,minus,times,divided_by,modulo, etc.Money (4):
money,money_with_currency, etc.Image (5):
image_url,image_tag, etc.Color (9):
color_darken,color_lighten, etc.And more...
67 Liquid Objects
Store:
shop,settings,theme,brandProducts:
product,variant,collection,collectionsCart:
cart,line_item,checkoutCustomer:
customer,address,companyContent:
page,blog,article,commentMedia:
image,video,media,modelAnd more...
๐ณ Docker Usage
Quick Start
# Build the image
docker build -t shopify-liquid-mcp .
# Run the server
docker run -it --rm shopify-liquid-mcp
# Run with persistent data
docker run -it --rm -v mcp-data:/data shopify-liquid-mcpUsing docker-compose
# Start the server
docker-compose up -d
# View logs
docker-compose logs -f
# Stop the server
docker-compose down
# Shell access
docker-compose exec shopify-liquid-mcp bashCustom Documentation
Add your project-specific Liquid docs:
# Create custom docs directory
mkdir custom-docs
# Add your .md files
cp my-snippets.md custom-docs/
# Mount in docker-compose.yml
volumes:
- ./custom-docs:/docs/custom:ro๐ง Development
Running Tests
# Run all tests
pytest
# Run specific test
pytest tests/test_ingest.py
# Run with coverage
pytest --cov=shopify_liquid_mcpManual Testing
# Test the server
python test_server.py
# Test indexing
python -m shopify_liquid_mcp.ingest
# Check database
sqlite3 ~/.mcp/shopify-liquid-docs/database.db "SELECT COUNT(*) FROM liquid_docs;"Reindexing Documentation
# Force reindex
python -m shopify_liquid_mcp.ingest --force
# Custom database location
SHOPIFY_LIQUID_DB_PATH=/custom/path/db.sqlite python -m shopify_liquid_mcp.ingest๐ Documentation
๐ค Contributing
Contributions welcome! Please read our Contributing Guide.
Quick Start
# Fork and clone
git clone https://github.com/florinel-chis/shopify-liquid-mcp.git
cd shopify-liquid-mcp
# Create virtual environment
python -m venv venv
source venv/bin/activate # or `venv\Scripts\activate` on Windows
# Install for development
pip install -e ".[dev]"
# Run tests
pytest
# Make changes and submit PR๐ License
MIT License - see LICENSE file for details.
๐ Acknowledgments
Inspired by Gemini API Docs MCP
Built with FastMCP
Documentation from Shopify Liquid API
MCP Protocol by Anthropic
๐ Related Projects
Official Shopify Dev MCP - For Shopify API development
FastMCP - MCP server framework
Model Context Protocol - MCP specification
๐ Support
๐ Issues
๐ฌ Discussions
๐ง Email
โญ Star History
Made with โค๏ธ for the Shopify theme development community
Available Tools
7 toolsget_liquid_filterA
Get documentation for a specific Shopify Liquid filter.
Args: filter_name: Name of the filter (e.g., 'upcase', 'date', 'money')
Returns: Complete filter documentation
Inputs: filter_name (required). Returns: result
get_liquid_objectB
Get documentation for a specific Shopify Liquid object.
Args: object_name: Name of the object (e.g., 'product', 'cart', 'shop')
Returns: Complete object documentation
Inputs: object_name (required). Returns: result
get_liquid_tagA
Get documentation for a specific Shopify Liquid tag.
Args: tag_name: Name of the tag (e.g., 'if', 'for', 'assign')
Returns: Complete tag documentation
Inputs: tag_name (required). Returns: result
list_liquid_filtersA
List all available Shopify Liquid filters.
Returns: List of all filter names with titles organized by category
Inputs: no named parameters. Returns: result
list_liquid_objectsB
List all available Shopify Liquid objects.
Returns: List of all object names with titles organized by category
Inputs: no named parameters. Returns: result
list_liquid_tagsA
List all available Shopify Liquid tags.
Returns: List of all tag names with titles
Inputs: no named parameters. Returns: result
search_liquid_docsB
Search Shopify Liquid documentation using full-text search.
Args: queries: List of search terms (maximum 3)
Returns: Formatted search results with snippets
Inputs: queries (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose with no ambiguity: three 'get' tools retrieve specific documentation for filters, objects, and tags respectively; three 'list' tools enumerate all available items in those categories; and one 'search' tool performs full-text queries. The boundaries between tools are well-defined, preventing misselection.
Tool names follow a highly consistent verb_noun pattern throughout: all start with 'get_', 'list_', or 'search_' followed by 'liquid_' and the specific resource type (filter, object, tag, docs). There are no deviations in style or convention, making the set predictable and readable.
With 7 tools, the count is well-scoped for the server's purpose of providing Shopify Liquid documentation. It covers key operations (retrieve specific items, list all items, search) across the main documentation categories (filters, objects, tags), with each tool earning its place without redundancy or bloat.
The tool surface is complete for the domain of Shopify Liquid documentation lookup. It offers full CRUD-like coverage: 'list' tools for discovery, 'get' tools for detailed retrieval, and a 'search' tool for flexible queries. There are no obvious gaps or dead ends, enabling agents to handle all typical documentation needs effectively.
Maintenance
Related MCP Connectors
Provide your AI coding tools with token-efficient access to up-to-date technical documentation forโฆ
Shopify store analysis and product-catalog extraction as agent tools.
Live product search for AI agents across Shopify merchants and major retailers.
Tailor Platform for AI assistants: search, list and read the platform documentation.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides instant, offline access to comprehensive PrestaShop development documentation including 647+ hooks, module guides, component architecture, APIs, and theme development resources for AI assistants.79MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with instant access to local Dash documentation docsets and cheatsheets, enabling offline documentation searches across 165+ programming languages, frameworks, and developer tools directly within conversations.10MIT
- AlicenseCqualityBmaintenanceEnables searching, fetching, and customizing Mechanic tasks and documentation for Shopify automation. Provides offline access to bundled task library and docs with tools for task code, docs content, and similar task suggestions.627 npmMIT
- AlicenseAqualityCmaintenanceConnects Shopify's Liquid profiler to AI assistants to diagnose slow themes, providing performance reports and recommendations without editing the live theme.1687 npmMIT