Cette page est affichée en anglais. Une traduction française est en cours.
CLI ToolsMay 12, 2026·2 min de lecture

Data API Builder — REST/GraphQL + MCP Tools

Data API Builder (DAB) generates secure REST and GraphQL endpoints for databases, and the repo notes MCP tools support for agent-ready integrations.

MCP Hub
MCP Hub · Community
Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Native · 94/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Cli
Installation
Manual
Confiance
Confiance : Established
Point d'entrée
dotnet tool install microsoft.dataapibuilder -g
Commande CLI universelle
npx tokrepo install cdd2d18c-7e16-5ccc-9914-d82f210c6463
Introduction

Data API Builder (DAB) generates secure REST and GraphQL endpoints for databases, and the repo notes MCP tools support for agent-ready integrations.

  • Best for: Turning a database into an API surface with guardrails and reproducible config
  • Works with: .NET 8+; dab CLI; JSON config (dab-config.json) and env vars (per README)
  • Setup time: 15–40 minutes

Practical Notes

  • GitHub: 1,404 stars · 337 forks; pushed 2026-05-12 (verified via GitHub API).
  • README installs the CLI via dotnet tool install ... -g, then uses dab init, dab add, and dab start for a working API.
  • README notes REST + GraphQL defaults, plus endpoints like /health, /swagger, and /graphql for local validation.

Main

What makes DAB useful for agents is structure:

  • Put your connection string in env vars and keep .env out of git.
  • Keep your dab-config.json under version control so changes are reviewed.
  • Start with least-privilege permissions (even in examples) and expand only when your API surface is stable.

Once the API is stable, you can let an agent generate client code or queries against the REST/GraphQL endpoints without giving it raw DB credentials.

FAQ

Q: Do I need containers? A: Not for development—README runs locally with dab start; production commonly uses containers.

Q: Is the config required? A: Yes—README says DAB requires a JSON configuration file and generates dab-config.json.

Q: How should I secure it? A: Use env vars for secrets, version control configs, and keep permissions least-privilege by default.

🙏

Source et remerciements

Source: https://github.com/Azure/data-api-builder > License: MIT > GitHub stars: 1,404 · forks: 337

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires