MCP API Engineering Lab
Allows retrieving database schema information from a PostgreSQL database using the information_schema, providing agents with structural context about tables and columns.
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., "@MCP API Engineering Lab Show me the database schema"
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 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_schemalist_api_contractsget_api_contractcreate_api_contractupdate_api_contractdelete_api_contract
Ejecutar
npm install
npm run build
npm startPara desarrollo:
npm run devBase 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.jsUsa la documentación de tu cliente MCP para el formato exacto de configuración.
Available Tools
6 toolscreate_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
Scored across 6 tools
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.
All tools follow a consistent verb_noun pattern (list_, get_, create_, update_, delete_), and get_database_schema fits the same style. No mixed conventions.
Six tools is well within the ideal range for a focused server. Each tool serves a clear purpose without unnecessary overlap or bloat.
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
Related MCP Connectors
Hosted MCP server for live public-data APIs and Skills for AI agents.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA 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 context50MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides tools for exploring large OpenAPI schemas without loading entire schemas into LLM context. Perfect for discovering and analyzing endpoints, data models, and API structure efficiently.914MIT
- AlicenseCqualityDmaintenanceMCP server that turns OpenAPI specs into tools and calls API15 npm5MIT
- FlicenseNot gradedqualityBmaintenanceA lightweight MCP server that connects a local AI model (Ollama) with custom CRUD tools for an in-memory database, enabling natural language database management.-