MySQL MCP server for departmental budgets

MySQL MCP server for departmental budgets

mcp-server-presupuesto-mysql1•byw2pwinlinux

An MCP server that exposes departmental budget data stored in MySQL, allowing budget records to be queried, searched, and updated with new requests.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Returns full budget information for a department by its code, including initial budget, requested amount, available balance, and paid amount.
  • •Registers a new budget request for a department, updating the requested amount and recalculating the available balance within a transaction.
  • •Searches departments by partial name and returns multiple matching departments with their full information.
  • •Handles database and query errors and performs automatic rollback when a transaction fails.

BEST FOR

  • •Looking up a department's complete budget status by its department code.
  • •Recording new budget requests and keeping department balances up to date.
  • •Finding departments by partial name when multiple matches are expected.

ABOUT MCP-SERVER-PRESUPUESTO-MYSQL1

MySQL MCP server for departmental budgets is cataloged as an MCP server attributed to w2pwinlinux. An MCP server that exposes departmental budget data stored in MySQL, allowing budget records to be queried, searched, and updated with new requests. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MySQL MCP server for departmental budgets are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

¿Qué tabla de base de datos utiliza el servidor?

The server uses a main table named departamentos with fields for code, name, initial budget, requested amount, balance, and paid amount.

¿Cómo protege el servidor la integridad de las transacciones?

Budget request updates recalculate the available balance and are handled with safe transactions, using commit and rollback with automatic rollback on errors.

上游原版 README

在 GitHub 查看同一版本原文

README.md · ba8f1fd7392a · 采集于 2026-11-13 12:44:34 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MySQL MCP Server v2

Este servidor MCP (Message Control Protocol) proporciona una interfaz para gestionar y consultar información de presupuestos departamentales a través de una base de datos MySQL.

Características

  • Conexión segura a base de datos MySQL
  • Gestión de presupuestos departamentales
  • Consultas por código de departamento
  • Búsqueda por nombre de departamento
  • Registro de solicitudes de presupuesto
  • Manejo robusto de errores y conexiones

Requisitos

  • Python 3.6 o superior
  • MySQL Server (XAMPP o similar)
  • Paquetes Python requeridos:
    • mcp
    • mysql-connector-python

Instalación

  1. Clonar el repositorio
  2. Instalar las dependencias:
pip install mcp mysql-connector-python

Configuración

El servidor está configurado para conectarse a una base de datos MySQL con los siguientes parámetros por defecto:

db_config = {
    'host': 'localhost',
    'port': 3306,
    'user': 'reporte',
    'password': 'reporte',
    'database': '_REPORTE',
    'raise_on_warnings': True
}

Ajusta estos parámetros según tu configuración de base de datos.

Funcionalidades

1. Consulta de Estado Completo

get_estado_completo(codigo: int)

Retorna la información completa de un departamento por su código, incluyendo:

  • Código
  • Nombre
  • Presupuesto inicial
  • Monto solicitado
  • Saldo disponible
  • Monto pagado

2. Registro de Solicitudes

registrar_solicitud(codigo: int, monto: float)

Registra una nueva solicitud de presupuesto para un departamento:

  • Actualiza el monto solicitado
  • Recalcula el saldo disponible
  • Maneja transacciones de forma segura

3. Búsqueda por Nombre

buscar_por_nombre(nombre: str)

Busca departamentos por nombre:

  • Búsqueda parcial (usando LIKE)
  • Retorna múltiples resultados
  • Incluye información completa de cada departamento encontrado

Pruebas

El proyecto incluye scripts de prueba para verificar la funcionalidad:

  • test_buscar_nombre.py: Prueba la funcionalidad de búsqueda por nombre
  • Ejecuta las pruebas con:
python test_buscar_nombre.py

Manejo de Errores

El servidor implementa un manejo robusto de errores:

  • Errores de conexión a la base de datos
  • Errores de consulta
  • Validación de datos
  • Rollback automático en caso de errores en transacciones

Estructura de la Base de Datos

La tabla principal departamentos contiene los siguientes campos:

  • codigo (int): Identificador único del departamento
  • nombre (varchar): Nombre del departamento
  • inicial (decimal): Presupuesto inicial
  • solicitado (decimal): Monto solicitado
  • saldo (decimal): Saldo disponible
  • pagado (decimal): Monto pagado

Ejecución

Para iniciar el servidor:

python mysql_mcp_server_v2.py

Notas de Seguridad

  • Las credenciales de la base de datos están hardcodeadas en el código. En un entorno de producción, se recomienda usar variables de entorno o un archivo de configuración seguro.
  • Se implementa manejo de conexiones seguro usando el patrón context manager.
  • Las transacciones se manejan con commit/rollback apropiados.

Contribución

  1. Fork el repositorio
  2. Crea una rama para tu feature (git checkout -b feature/AmazingFeature)
  3. Commit tus cambios (git commit -m 'Add some AmazingFeature')
  4. Push a la rama (git push origin feature/AmazingFeature)
  5. Abre un Pull Request

Licencia

Este proyecto está bajo la Licencia MIT. Ver el archivo LICENSE para más detalles.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MySQL MCP server for departmental budgets from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-presupuesto-mysql1)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage