Vtex

Finance and commerce

MCP server for VTEX, e-commerce, orders, products, inventory, shipping.

Your AI app calls the Vtex MCP server, which does the finance and commerce work and sends the result back to the chat.

About Vtex

Vtex is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for VTEX, e-commerce, orders, products, inventory, shipping.

Vtex runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-vtex@0.2.2 and talks to it over standard input and output. It needs VTEX_APP_TOKEN set before Vtex starts.

Vtex is listed in the official MCP registry as io.github.codespar/mcp-vtex, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-vtex
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-vtex

How to set up Vtex

  1. Install Node.js on the machine that runs your AI app, because Vtex starts with npx and downloads its package on first run.
  2. Create VTEX_APP_TOKEN for Vtex in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Vtex to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Vtex tools to confirm the connection.
  5. Run one read-only task with Vtex first, and keep your app asking before each tool call until the results look right.

Vtex compared with similar servers

  • Wise by codespar has fewer GitHub stars than Vtex (278 against 278); both are community servers, and both run locally.
  • Vindi by codespar has fewer GitHub stars than Vtex (278 against 278); both are community servers, and both run locally.
  • Wompi by codespar has fewer GitHub stars than Vtex (278 against 278); both are community servers, and both run locally.

Before you connect Vtex

  • Give Vtex its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Vtex tool call until you trust what it does with them.
  • Treat text that Vtex fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Vtex on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Vtex

How marketing and sales teams put Vtex to work, by company size. Pick the size closest to yours and start Vtex on one use case.

Small business

  • A small business can ask Vtex which products and customers drive margin, then plan promotions around them.
  • Owners can use Vtex to check refunds, failed payments and churn reasons without opening three dashboards.
  • Vtex runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Vtex to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Vtex to check spend against budget each week and move money to what's working.
  • Start Vtex on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Vtex read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Vtex to answer revenue questions by channel and region with figures finance signs off on.
  • Vtex is a community server, so have security review the code and pin a version before Vtex touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Vtex README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-vtex

MCP server for VTEX, e-commerce platform with catalog, orders, inventory, and promotions

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "vtex": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-vtex"],
      "env": {
        "VTEX_ACCOUNT_NAME": "your-account",
        "VTEX_APP_KEY": "your-app-key",
        "VTEX_APP_TOKEN": "your-app-token"
      }
    }
  }
}
Claude Code
claude mcp add vtex -- npx @codespar/mcp-vtex
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "vtex": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-vtex"],
      "env": {
        "VTEX_ACCOUNT_NAME": "your-account",
        "VTEX_APP_KEY": "your-app-key",
        "VTEX_APP_TOKEN": "your-app-token"
      }
    }
  }
}

Tools (33)

Tool Purpose
list_products List products from VTEX catalog
get_product Get product details by ID
create_product Create a new product in the VTEX catalog
update_product Update an existing product in the VTEX catalog
list_skus List SKUs for a product
create_sku Create a new SKU for a product
list_categories List all categories with pagination
create_category Create a new category in the catalog
get_catalog Get the catalog category tree
list_orders List orders with optional filters
get_order Get full OMS order details by ID
update_order_status Transition an order to the handling state (start fulfillment)
invoice_order Issue a fiscal invoice (nota fiscal) for an order
track_order_invoice Update tracking info for a previously issued invoice
cancel_order Cancel an order
list_customer_orders List order history for a customer (filtered by email)
get_sku_price Get pricing details for an SKU (base price, list price, markup, cost, fixed prices per trade policy)
update_sku_price Update base/list/cost price for an SKU
list_price_tables List all configured price tables (trade policies)
get_inventory Get inventory/stock for a SKU across warehouses
update_inventory Update inventory quantity for a SKU at a specific warehouse
get_shipping_rates Simulate shipping rates for items to a postal code
list_warehouses List all warehouses configured in the account
create_warehouse Register a new warehouse (fulfillment center)
create_promotion Create a promotion/discount in VTEX
list_coupons List all promotion coupons
create_coupon Create a promotion coupon code
list_subscriptions List customer subscriptions
create_subscription Create a recurring subscription for a customer (VTEX Subscriptions)
get_masterdata_document Get a document (customer profile, custom entity) from VTEX Master Data v2
search_masterdata Search documents in a Master Data entity
create_giftcard Create a gift card for a customer (GiftCard Hub)
get_giftcard Get gift card details by ID

Authentication

VTEX uses app key and app token headers for API authentication.

Sandbox / Testing

VTEX provides sandbox access via partner accounts. Contact VTEX for developer access.

Get your credentials
  1. Go to VTEX Developer Portal
  2. Access your VTEX admin or create a partner account
  3. Generate an app key and app token from License Manager
  4. Set the environment variables

Environment Variables

Variable Required Description
VTEX_ACCOUNT_NAME Yes VTEX account name
VTEX_APP_KEY Yes API app key
VTEX_APP_TOKEN Yes API app token
VTEX_ENVIRONMENT No Environment host slug (default vtexcommercestable)

Roadmap

v0.3 (planned)
  • Checkout / cart session management
  • Marketplace seller and offer management
  • Carrier (shipping policy) registration

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Questions about Vtex

What is the Vtex MCP server?

MCP server for VTEX, e-commerce, orders, products, inventory, shipping. Vtex is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Vtex MCP server?

Add Vtex to your AI app's MCP config with the command npx -y @codespar/mcp-vtex@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-vtex -- npx -y @codespar/mcp-vtex@0.2.2. To run Vtex this way you need Node.js installed.

Does Vtex need an API key?

Yes. Vtex expects VTEX_APP_TOKEN to be set. Create the key for Vtex in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Vtex an official MCP server?

No. Vtex is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Vtex access to company data.

What license is Vtex under?

Vtex is released under the MIT license, according to its GitHub repository. The license covers the code of Vtex; the service it connects to has its own terms.