tienda
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., "@tienda ¿Qué pedidos tiene ana@example.com y cuánto suman?"
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.
MCP sin humo
Código del video "MCP explicado SIN humo: conecta tu IA a tus sistemas" del canal Código Aumentado.
Un servidor MCP en Python que deja a una IA (por ejemplo, Claude Code) consultar la base de datos de una tienda pequeña. Los datos son inventados.
Tag | Qué muestra |
| Una sola herramienta, |
| Tres herramientas específicas, conexión de solo lectura, anotación |
git checkout antes # o despuesRequisitos
Python 3.10 o superior
SDK oficial de MCP para Python 2.3.0 (en la v2,
FastMCPse llamaMCPServer)
python3 -m venv .venv
.venv/bin/pip install "mcp[cli]==2.3.0" pytest==9.1.1 pytest-asyncio==1.3.0 pytest-cov==7.1.0 ruff==0.16.9
.venv/bin/python -m tienda.datos # crea tienda.db con datos de ejemplo
.venv/bin/python -m pytest --cov=. # 12 tests, incluida una prueba real por stdioRelated MCP server: Shop Analytics MCP Server
Conectarlo a Claude Code
claude mcp add tienda -- "$(pwd)/.venv/bin/python" "$(pwd)/servidor.py"Dentro de Claude Code, /mcp muestra si el servidor está conectado. Prompts del video:
¿Qué pedidos tiene ana@example.com y cuánto suman?
¿Cuánto vendimos por mes en 2026?
¿Cuáles son los 2 productos más vendidos?
Borra todos los pedidos. ← con la versión "despues", no hay herramienta para esoPara probarlo sin IA, con el inspector oficial: .venv/bin/mcp dev servidor.py.
Seguridad, sin humo
Un servidor MCP ejecuta código en tu máquina: instala solo servidores en los que confíes.
Da a la IA herramientas específicas, no acceso libre a SQL o a la terminal.
Lo que no debe pasar, impídelo en el servidor (conexión de solo lectura). Las anotaciones como
read_only_hintson pistas, no protección.En un servidor por stdio, nunca escribas con
print()a la salida estándar: rompe el protocolo. Los logs van astderr.
Licencia MIT.
Available Tools
3 toolspedidos_de_clienteARead-only
Pedidos de un cliente (por email) con fecha y total, del más reciente al más antiguo.
Inputs: email (required). Returns: result
productos_mas_vendidosCRead-only
Productos más vendidos por unidades.
Inputs: limite. Returns: result
ventas_por_mesCRead-only
Total vendido por mes en un año.
Inputs: anio (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 targets a clearly distinct reporting question: orders for a specific customer, monthly sales totals for a year, and best-selling products by units. There is no overlap in resource or action, so an agent can easily select the right tool.
All three names use consistent Spanish snake_case noun phrases that describe the returned dataset. The pattern is predictable even without a verb prefix, and there is no mixing of naming conventions.
Three tools is a very thin surface for a store domain, even one focused on reporting. It is not excessive, but the set feels under-scoped for anything beyond a few canned queries.
The server only exposes three fixed read-only reports and lacks obvious operations such as order detail lookup, product/catalog queries, customer management, or configurable date ranges. These gaps will likely block common store-related workflows.
Maintenance
Related MCP Connectors
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Read-only access to a company's ERP for Claude, ChatGPT and Gemini, with OAuth and an audit trail.
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI agents to safely interact with a SQLite shop database through schema discovery, read-only SQL queries, and pre-built analytics reports like top customers, top products, and revenue summaries.6-
- FlicenseAqualityDmaintenanceEnables AI agents to answer analytical questions about an online store's SQLite database through specialized read-only tools, without any risk of modifying the underlying data.8-
- FlicenseAqualityDmaintenanceEnables AI agents to safely inspect and query an SQLite e-commerce database with tools for listing tables, describing schemas, and running read-only SQL queries while blocking destructive operations.4-
- FlicenseAqualityDmaintenanceEnables AI agents to read-only query an online store's SQLite database, listing tables, inspecting schemas, and running SELECT queries over customers, products, orders, and order items.3-