MCP RifaExpress Backend MCP Server

$npm install && npm run build && npm start
README.md

MCP Server para interactuar con el backend de RifaExpress (PostgreSQL + API REST).

MCP RifaExpress Backend

MCP Server para interactuar con el backend de RifaExpress (PostgreSQL + API REST).

Variables de Entorno

Crea un archivo .env en la raíz del proyecto:

# PostgreSQL Connection
DB_HOST=localhost
DB_PORT=5432
DB_NAME=rifaexpress
DB_USER=postgres
DB_PASSWORD=tu_password

# API REST (opcional)
API_URL=http://localhost:3000/api
API_TOKEN=tu_jwt_token

Instalación

npm install
npm run build

Uso

npm start

Tools Disponibles

Base de Datos

  • rifaexpress_query_db - Ejecutar queries SELECT en PostgreSQL
  • rifaexpress_inspect_table - Ver schema de una tabla
  • rifaexpress_list_tables - Listar todas las tablas

Entidades

  • rifaexpress_get_companies - Obtener companies con filtros
  • rifaexpress_get_users - Obtener users con filtros
  • rifaexpress_get_plans - Obtener plans
  • rifaexpress_get_subscriptions - Obtener subscriptions (cuando exista la tabla)

Utilidades

  • rifaexpress_health_check - Verificar conexión a BD y API

Tools (8)

rifaexpress_query_dbEjecutar queries SELECT en PostgreSQL
rifaexpress_inspect_tableVer schema de una tabla
rifaexpress_list_tablesListar todas las tablas
rifaexpress_get_companiesObtener companies con filtros
rifaexpress_get_usersObtener users con filtros
rifaexpress_get_plansObtener plans
rifaexpress_get_subscriptionsObtener subscriptions (cuando exista la tabla)
rifaexpress_health_checkVerificar conexión a BD y API

Environment Variables

DB_HOSTrequiredPostgreSQL Connection host
DB_PORTrequiredPostgreSQL Connection port
DB_NAMErequiredPostgreSQL database name
DB_USERrequiredPostgreSQL user
DB_PASSWORDrequiredPostgreSQL password
API_URLAPI REST URL (optional)
API_TOKENAPI JWT token (optional)

Configuration

claude_desktop_config.json
{"mcpServers":{"rifaexpress":{"command":"npm","args":["start"]}}}

Try it

List all tables in the RifaExpress database using rifaexpress_list_tables.
Get all companies using rifaexpress_get_companies.
Inspect the schema of the users table with rifaexpress_inspect_table.
Execute this query: SELECT * FROM plans using rifaexpress_query_db.
Perform a health check with rifaexpress_health_check.

Frequently Asked Questions

How do I install MCP RifaExpress Backend?

Install MCP RifaExpress Backend by running: npm install && npm run build && npm start

What MCP clients work with MCP RifaExpress Backend?

MCP RifaExpress Backend works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use MCP RifaExpress Backend with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free