CLI ToolsMay 12, 2026·2 min read

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.

Agent ready

This asset can be read and installed directly by agents

TokRepo exposes a universal CLI command, install contract, metadata JSON, adapter-aware plan, and raw content links so agents can judge fit, risk, and next actions.

Native · 94/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Cli
Install
Manual
Trust
Trust: Established
Entrypoint
dotnet tool install microsoft.dataapibuilder -g
Universal CLI install command
npx tokrepo install cdd2d18c-7e16-5ccc-9914-d82f210c6463
Intro

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 & Thanks

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

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets