Skip to main content
Glama
diegogfhjk

InventarioDB

by diegogfhjk

InventarioDB

Descripción

Este proyecto pone en marcha un pequeño servidor MCP (Model Context Protocol) que gestiona un inventario de productos usando SQLite.
Cada función decorada con @mcp.tool() expone una "herramienta" que puede ser invocada por un cliente MCP para crear, leer, actualizar o eliminar productos.

Related MCP server: Todo MCP Server

Características

  • Gestión completa de inventario (CRUD)

  • Base de datos SQLite para almacenamiento persistente

  • API RESTful a través de MCP

  • Fácil integración con clientes MCP

  • Validación de datos

  • Manejo de errores robusto

Requisitos

  • Python 3.7 o superior

  • SQLite (incluido en la biblioteca estándar de Python)

Instalación

  1. Clona o descarga este repositorio:

    git clone https://github.com/diegogfhjk/mcp.git
    cd mcp
  2. Instala Claude desktop: https://claude.ai/download

  3. Instala las dependencias:

    pip install uv
    uv add "mcp[cli]"
    uv run mcp install main.py

API de Herramientas MCP

Crear Producto

@mcp.tool()
def crear_producto(nombre: str, cantidad: int, precio: float) -> dict

Crea un nuevo producto en el inventario.

Obtener Producto

@mcp.tool()
def obtener_producto(id: int) -> dict

Obtiene la información de un producto específico.

Actualizar Producto

@mcp.tool()
def actualizar_producto(id: int, nombre: str = None, cantidad: int = None, precio: float = None) -> dict

Actualiza la información de un producto existente.

Eliminar Producto

@mcp.tool()
def eliminar_producto(id: int) -> bool

Elimina un producto del inventario.

Estructura del Proyecto

inventariodb/
├── server.py          # Servidor MCP principal
├── database.py        # Configuración y operaciones de base de datos
├── requirements.txt   # Dependencias del proyecto
└── README.md         # Este archivo
F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    B
    quality
    C
    maintenance
    A customer and product management MCP server using SQLite. It enables Claude Desktop users to manage client and product data through natural language interactions.
    9
    1
  • A
    license
    Not graded
    quality
    D
    maintenance
    A simple MCP server for managing todo items with SQLite database storage, supporting add, list, and remove operations.
    13
    6
    ISC
  • F
    license
    Not graded
    quality
    C
    maintenance
    An MCP server for managing product inventory with SQLite, enabling CRUD operations and statistical queries such as total value, out-of-stock items, and most expensive product.
  • F
    license
    Not graded
    quality
    B
    maintenance
    A Python-based MCP server that manages a product inventory using SQLite, allowing CRUD operations and analytic queries such as total value, out-of-stock products, and most expensive product.

View all related MCP servers

Related MCP Connectors

  • MCP server for managing Prisma Postgres.

  • A basic MCP server to operate on the Postman API.

  • An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/diegogfhjk/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server