AI_SYNC MCP Server
Connects GPT-4 to a merchant store API, allowing AI to query and update store data for a specific merchant, including listing stores, searching for relevant stores, and adding new stores with descriptions and tags.
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., "@AI_SYNC MCP Server show me all stores for Tnc_Store"
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.
AI_SYNC Tooling with OpenAI + MCP
This project connects GPT-4 to a backend merchant store API using the Model Context Protocol (MCP). It allows querying and updating store data under a specific merchant class.
⚠️ Note: The server is currently hardcoded to work with the
Tnc_Storemerchant ID. Only data under this class is accessible to the AI.
⚙️ Setup Instructions
1. Clone the Repository
git clone https://github.com/your-org/ai_sync
cd ai_sync2. Create a .env File
Inside the project root, create a .env file containing your OpenAI API key:
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx3. Set Up the Python Environment with uv
If you haven’t installed uv, do so with:
curl -Ls https://astral.sh/uv/install.sh | shThen set up and activate the virtual environment:
uv venv .venv
source .venv/bin/activateThis will automatically install dependencies based on the uv.lock file.
4. Start the Merchant API Server
Ensure the backend server (AI_SYNC) is running locally on:
http://localhost:4001Required POST endpoints:
/MerchantStore/findAllStores/MerchantStore/findStore/MerchantStore/addNewStore
5. Run the Tooling System
To launch the client and tool server together:
uv run client.py server.pyserver.pyprovides tool definitions via MCPclient.pyconnects to GPT-4 and routes user queries
Related MCP server: Shopify MCP Server
💬 Example Queries
Query: Show me all the stores for this merchant
Query: I want to add a new store, CGV Cinemas - Vincom Nguyễn Chí Thanh, Hà Nội, with keywords: CGV, rạp chiếu phim, Hà Nội, Vincom, giải trí⚠️ For multiline input, paste it as a single line. Shift+Enter will submit prematurely in most terminals.
📁 Basic Project Structure
ai_sync/
├── client.py # MCP + OpenAI chat client
├── server.py # Tool server using FastMCP
├── .env # OpenAI API key
├── uv.lock # Dependency lock file (used by uv)✅ Available Tools
Tool Name | Description |
| List all stores for |
| Natural language search for relevant stores |
| Add a store with full description and tags |
🔒 Notes
Only data for
Tnc_Storeis accessibleRequires OpenAI GPT-4 (
gpt-4o) and a functioning backend APIRuns entirely locally using standard input/output
Available Tools
3 toolsaddNewStoreC
Add a new store to the merchant's database.
Args:
merchantID: The merchant to which the store belongs (e.g., "tnc").
name: Full name of the store.
keywords: List of keywords describing the store.
fullOriginContent: Full description of the store.
fullTextSearch: Preprocessed text for search indexing.
Inputs: name (required), keywords (required), fullOriginContent (required), fullTextSearch (required). Returns: result
findAllStoresC
Find all stores under a merchantID class Args: merchantID: string
Inputs: no named parameters. Returns: result
findStoreB
Search for relevant stores under a merchant using a natural language query.
Args:
merchantID: The merchant class to search under (e.g., "Tnc").
queryText: A natural language description of the desired product or store.
Inputs: queryText (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 3 tools
Each tool has a clearly distinct purpose: addNewStore creates a new store, findAllStores retrieves all stores for a merchant, and findStore searches stores with a natural language query. There is no overlap in functionality, and the descriptions make the distinctions explicit.
The naming is inconsistent: addNewStore uses camelCase with a verb-noun pattern, findAllStores uses camelCase with a verb-noun pattern, and findStore uses camelCase but lacks a noun (it should be findStores or similar). While all are camelCase, the lack of a consistent noun in findStore and the mix of 'New' in addNewStore versus no qualifiers in others shows poor pattern adherence.
With only 3 tools, the count feels thin for a store management domain, as it lacks update and delete operations. However, it covers basic create, list, and search functions, which is borderline but workable for minimal CRUD.
The tool set is significantly incomplete for store management. It includes add, find all, and search, but misses essential operations like update_store, delete_store, and get_store_by_id. This creates gaps that could lead to agent failures when full lifecycle management is needed.
Maintenance
Related MCP Connectors
Connect AI to store orders, products and inventory with scoped access and human approvals.
Manage your NanoCart store from any AI agent: products, orders, coupons, subscribers, reports.
Monetize and manage your Tip4Serv store directly from your LLM.
Manage your Savanto store from your AI: catalog, content, prompts, and analytics, by chat.
Related MCP Servers
AlicenseBqualityDmaintenanceConnects AI assistants to the TailorKit API, enabling them to manage customizable product templates for e-commerce platforms through natural language conversations.44 npm6MIT- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to access and manage Shopify store data including products, orders, inventory, and analytics through the Model Context Protocol. It allows users to query store performance and customer details using natural language.-
- AlicenseNot gradedqualityCmaintenanceConnects Claude, ChatGPT, Cursor, or any MCP client to a Shopify store, enabling read-only access to themes, Liquid files, catalogue data, and store configuration through 122 tools.2Apache 2.0
- AlicenseNot gradedqualityAmaintenanceConnects AI assistants to WordPress/WooCommerce sites through the WordPress REST API, allowing management of products, orders, customers, shipping, taxes, discounts, reports, and store configuration via JSON-RPC 2.0.MIT