home / mcp / tiendanube mcp server
Provides a Docker-enabled MCP server for Tiendanube/Nuvemshop with SSE and HTTP transports to manage products, orders, customers, and more.
Configuration
View docs{
"mcpServers": {
"alexandreproenca-nuvemshop-mcp-server": {
"url": "http://localhost:8080/sse",
"headers": {
"MCP_HOST": "0.0.0.0",
"MCP_PORT": "8080",
"LOG_LEVEL": "INFO",
"MCP_TRANSPORT": "sse",
"TIENDANUBE_BASE_URL": "https://api.tiendanube.com/v1",
"TIENDANUBE_STORE_ID": "YOUR_STORE_ID",
"TIENDANUBE_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN"
}
}
}
}You can run a Tiendanube MCP Server to synchronize and interact with Tiendanube/Nuvemshop data using modern transports like Server-Sent Events and HTTP. This server provides structured endpoints to manage products, orders, customers, categories, coupons, and store information, enabling real-time updates and efficient data operations from your MCP clients.
You will connect your MCP client to the server using one of the available transports. The default transport is SSE, accessible via a dedicated endpoint that streams data and responses in real time. If you prefer a more traditional HTTP-based request/response flow, you can switch to the streamable HTTP transport and communicate through the designated HTTP endpoint. Use the appropriate method names (endpoints) exposed by the server to list, create, update, or delete resources such as products, orders, customers, categories, and coupons. The server handles authentication with Tiendanube credentials and routes requests to the Tiendanube API resources.
Prerequisites you need before installation are Docker and Docker Compose. You also need Tiendanube API credentials, specifically an Access Token and a Store ID.
Step by step, you can set up the MCP server as follows:
mkdir tiendanube-mcp
cd tiendanube-mcp
# Create essential files for the server locally
# The main server code file (example): tiendanube_server.py
# Docker configuration files: Dockerfile, docker-compose.yml
# Dependency listing: requirements.txt
# Environment configuration: .env (based on provided template)Configuration and environment - Prepare an environment file that includes your Tiendanube credentials and server settings. Include values for TIENDANUBE_ACCESS_TOKEN, TIENDANUBE_STORE_ID, TIENDANUBE_BASE_URL, MCP_TRANSPORT, MCP_HOST, MCP_PORT, and LOG_LEVEL as required by your deployment.
Transport and endpoints - SSE transport endpoint: http://localhost:8080/sse - Streamable HTTP transport endpoint: http://localhost:8080/mcp - You can switch transports by adjusting MCP_TRANSPORT in the environment configuration.
Health check - Verify the server is running by querying the health endpoint: curl http://localhost:8080/health
Security notes - Do not commit the .env file to version control. Use separate tokens for development and production. Consider enabling HTTPS behind a reverse proxy. Apply rate limiting and configure CORS for public exposure.
Logging and maintenance - Logs are rotated and stored within Docker logs. Use docker-compose logs to view active output and diagnose issues.
Updating the server - Pull changes, rebuild images, and restart to apply updates. Use docker-compose down, docker-compose build --no-cache, and docker-compose up -d in sequence.
Troubleshooting common issues - If the server wonβt start, inspect logs with docker-compose logs tiendanube-mcp and validate environment variables with docker-compose config. If connectivity to Tiendanube fails, verify your credentials and store ID.
List and search products with filters such as stock, price, categories, and SKU.
Retrieve a product by ID.
Retrieve a product by SKU.
Create a new product with variants.
Update product information.
Delete a product.
Bulk update stock and prices for products.
List orders with filters.
Get order details.
Get value change history for an order.
Get edition changelog for an order.
Create a new order.
Update an order.
Close an order.
Reopen an order.
Cancel an order.
List or search customers.
Get customer details.
Create a new customer.
Update customer information.
Delete a customer.
List all categories.
Get category details.
Create a category.
Update a category.
Delete a category.
List all coupons.
Get coupon details.
Create a discount coupon.
Get store information.