# data-api-builder [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/Azure/data-api-builder  
**GitHub Stars:** 1553  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/data-api-builder

## Description
Data API builder provides modern REST, GraphQL endpoints and MCP tools to your Azure Databases and on-prem stores.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Azure/data-api-builder), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
dotnet tool install microsoft.dataapibuilder -g
```

2. Start the server:

```sh
dab start
```

## Documentation

## What data-api-builder does

data-api-builder is an open-source data API engine that turns configured database objects into API-accessible entities. It supports MCP alongside REST and GraphQL, allowing the same data source to serve agent tools and application clients. The engine is designed as a no-code CRUD layer rather than a separate application-specific service.

Supported database types include Azure SQL, SQL Server, SQLDW, Azure Cosmos DB, PostgreSQL, and MySQL. Data API builder can be deployed on Azure, AWS, GCP, other cloud environments, or on-premises. Entity definitions can refer to tables, views, and stored procedures.

## How it works

At startup, the engine reads its JSON configuration and inspects the connected database for metadata. When a request arrives, it authorizes the request, translates the operation into a database query, sends it to the data source, and returns the result as JSON or through the relevant protocol interface.

The configuration controls which entities are exposed and how they appear through REST and GraphQL. Permissions are assigned by role and action, so access can be scoped to operations such as reading or modifying an entity. Endpoint paths, authentication, CORS, and development-mode behavior are also configured in the runtime section.

## Setup and configuration

The command-line interface requires .NET 8 or later. Install the cross-platform `dab` tool with:

```sh
dotnet tool install microsoft.dataapibuilder -g
```

Create a database connection and a `dab-config.json` file. The `dab init` command can generate an initial configuration with a selected database type, a connection string, and a host mode. Connection strings can reference process environment variables through `.env` files; keeping those files out of source control helps protect credentials.

Use `dab add` to register a table, view, or stored procedure as an entity and assign its permissions. Running `dab start` launches the service. In development mode it runs locally; production deployments run in a container. The default example exposes REST under `/api`, GraphQL under `/graphql`, and a health endpoint at `/health`. Development mode also enables Swagger and the GraphQL Nitro interface.

## Tools and capabilities

- Provides MCP tools for configured database access.
- Generates REST endpoints for configured entities.
- Generates GraphQL endpoints with configurable singular and plural entity names.
- Supports CRUD access to tables, views, and stored procedures.
- Applies role-based entity permissions and configured authentication.
- Runs as a local development process or a containerized service.

## Limitations and notes

The service depends on a valid JSON configuration file, and the CLI expects that file to be named `dab-config.json` in the working directory by default. Database credentials must be supplied through the connection configuration or referenced environment variables. The available data and operations depend on the configured entities, permissions, and capabilities of the selected database.

The example configuration uses development mode and permissive anonymous access for demonstration. Production deployments should define authentication and narrower permissions appropriate to the data. The project is licensed under MIT and is available at no charge.

_Full upstream README: https://allmcps.com/mcp/data-api-builder/readme_

