MCP Server Overview
Manage your Vantemo store with AI assistants via the Model Context Protocol.
MCP Server
The Vantemo MCP (Model Context Protocol) server allows AI assistants like Claude, ChatGPT, and Cursor to directly interact with your store's API. Instead of manually writing API calls or navigating the admin dashboard, you describe what you want in natural language and the AI executes it.
What is MCP?
The Model Context Protocol is an open standard created by Anthropic that enables AI assistants to use external tools. Think of it as a universal plugin system for AI — the MCP server exposes your store's capabilities as "tools" that the AI can call.
Architecture
┌─────────────┐ stdio ┌──────────────┐ HTTPS ┌──────────────┐
│ AI Client │ ◄────────────► │ MCP Server │ ◄───────────► │ Vantemo API │
│ (Claude) │ │ (local) │ │ (cloud) │
└─────────────┘ └──────────────┘ └──────────────┘The MCP server runs locally on your machine and communicates with the AI client via stdio. It authenticates to the Vantemo API using your secret API key.
How it Works
- Startup: The MCP server calls
GET /v1/api-key/meto introspect the API key and discover which shop it belongs to. - Tool Registration: 9 tool groups are registered with the AI client, each covering a domain (catalog, orders, analytics, etc.) as a read tool plus, for groups that can change data, a
_writetool for changes that are easy to undo and a_confirmtool for the rest. - Tool Calls: When the AI selects a tool, the MCP server resolves the action, checks scopes, calls the API, and returns results.
- Safety: Deletes, money, stock and live-shop changes are flagged so the client asks your approval on every call. Scope checks prevent unauthorized access. Responses are marked as untrusted data.
Installation
npx @vantemo/mcp --api-key vt_sk_live_YOUR_KEYOr configure it in your AI client's MCP settings:
{
"mcpServers": {
"vantemo": {
"command": "npx",
"args": ["@vantemo/mcp", "--api-key", "vt_sk_live_YOUR_KEY"]
}
}
}Dynamic Tool Groups (9 groups, not one tool per endpoint)
LLMs perform poorly when presented with 40+ tools. Instead of exposing one tool per
API endpoint, the MCP server organizes its 130 actions into 9 tool groups. Each
group is exposed as a read tool (catalog) and, for its write actions, up to two
more: catalog_write (changes that are easy to undo) and catalog_confirm
(changes that ask your approval first). All are meta-tools with an action
parameter that selects the specific operation.
| Tool Group | Description | Actions |
|---|---|---|
| catalog | Products, prices, categories, collections, tags, filters, brands, inventory | 42 |
| orders | Orders, abandoned carts, subscriptions | 7 |
| customers | Customer profiles, recent orders, notes | 4 |
| content | Blog, pages, page sections, publishing, menus and menu links, reviews, testimonials | 32 |
| marketing | Campaigns, coupons, email settings | 13 |
| analytics | Revenue, funnel, geographic, ad spend | 9 |
| store_config | Shop settings, back-in-stock default, providers, domains, themes | 7 |
| media | Media library, product gallery | 11 |
| shipping | Shipping rates per method, country, currency, carrier | 4 |
See the Tools Reference for the complete action list.
Security
- Local execution: The MCP server runs on your machine — your API key never leaves your device
- Scope enforcement: API key scopes are checked before every action, by the same rule as the REST admin API: read actions need
admin:read, every change needsadmin:write. PUBLISHABLE keys are refused - Human approval for risky changes: Deletes, prices, coupons, stock, shipping, order status, store-wide settings and live-shop changes run only through a
_confirmtool._confirmtools carry_meta["anthropic/requiresUserInteraction"], so Claude Code prompts you on every call; the AI cannot approve on your behalf. Changes that are easy to undo (new items, text edits, photos) run through a_writetool, which is not flagged and runs without a prompt when you allow the server's tools. Other clients should be set to ask before every*_confirmcall. See Approval tiers - MCP tool annotations: Read tools are annotated
readOnlyHint;_writeand_confirmtoolsdestructiveHint - Untrusted-content marking: Every API response and API error body is wrapped in a randomly tagged
<untrusted_content_…>block so text written by customers or visitors is treated as data, not instructions - Rate limiting: Each API key allows 60 requests per minute by default. On a rate-limit 429 the AI is told how many seconds to wait
- Audit logging: Every action is logged to stderr as structured JSON for compliance
- PII awareness:
admin:readreads every resource, customer PII (email, name, IP address, user agent) included; there is no narrower read scope. Keep that in mind when connecting AI assistants that may log or transmit data to third parties
CLI Options
npx @vantemo/mcp --api-key <key> [options]
Options:
--api-key <key> Vantemo API key (or VANTEMO_API_KEY env var)
--api-url <url> API base URL (default: https://api.vantemo.com)
--verbose Enable debug logging
--help Show helpNext Steps
- Tools Reference — Complete list of MCP tool groups and actions
- MCP Setup — Client-specific configuration
- Managing with AI — Practical use cases