Skip to main content
Glama
MCP API Engineering Lab

MCP API Engineering Lab

by joseant1215

MCP API Engineering Lab

Servidor MCP público y genérico para demostrar cómo un agente puede recibir contexto desde una base de datos y contratos OpenAPI.

Creado desde cero para el portafolio. No contiene código, endpoints, reglas, esquemas ni credenciales de clientes.

Stack

  • TypeScript

  • MCP TypeScript SDK v2

  • Zod

  • PostgreSQL (pg)

  • OpenAPI YAML

Related MCP server: openapi-mcp-proxy

Architecture

flowchart LR
    DB[(PostgreSQL)] --> MCP[MCP Server]
    OpenAPI[OpenAPI contracts] --> MCP
    MCP --> Agent[MCP-capable AI client]
    Agent --> Code[Code / API tasks]

Tools

  • get_database_schema

  • list_api_contracts

  • get_api_contract

  • create_api_contract

  • update_api_contract

  • delete_api_contract

Ejecutar

npm install
npm run build
npm start

Para desarrollo:

npm run dev

Base de datos

Si defines DATABASE_URL, el tool get_database_schema consulta information_schema.

Si no está definida, devuelve data/sample-schema.sql, para poder demostrar el servidor sin infraestructura externa.

OpenAPI

Los contratos viven en contracts/.

El MCP puede leer, crear, actualizar y eliminar contratos locales. template.yaml está protegido.

Cliente MCP

Configura este proyecto como servidor stdio con:

node /ruta/al/repositorio/dist/index.js

Usa la documentación de tu cliente MCP para el formato exacto de configuración.

Available Tools

6 tools
create_api_contractB

Create a new minimal OpenAPI 3.1 contract in the local contracts folder.

Inputs: name (required), title (required), version.

delete_api_contractA

Delete a local OpenAPI contract. The base template is protected.

Inputs: name (required).

get_api_contractB

Read an OpenAPI contract from the local contracts folder.

Inputs: name (required).

get_database_schemaA

Read a PostgreSQL schema from DATABASE_URL. Falls back to a local sample schema when no database is configured.

Inputs: table.

list_api_contractsA

List local OpenAPI YAML contracts available in the lab.

Inputs: no named parameters.

update_api_contractB

Update the title or version of an existing local OpenAPI contract.

Inputs: name (required), title, version.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: get_database_schema retrieves schema, while the other five perform CRUD on API contracts. List, get, create, update, and delete are unambiguous.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (list_, get_, create_, update_, delete_), and get_database_schema fits the same style. No mixed conventions.

    Tool Count5/5

    Six tools is well within the ideal range for a focused server. Each tool serves a clear purpose without unnecessary overlap or bloat.

    Completeness4/5

    The CRUD lifecycle for API contracts is fully covered (list, get, create, update, delete). However, update only modifies title/version, not arbitrary fields, and a validation tool is absent—minor gaps for full contract management.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A MCP server that exposes OpenAPI schema information to LLMs like Claude. This server allows an LLM to explore and understand large OpenAPI schemas through a set of specialized tools, without needing to load the whole schema into the context
      50
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      A lightweight MCP server that connects a local AI model (Ollama) with custom CRUD tools for an in-memory database, enabling natural language database management.
      -