DreamFactory is a self-hosted platform providing governed API access to any data source for enterprise apps and local LLMs.
Documentation ∙ Getting Started Guide ∙ Contribute ∙ Community Support
See how DreamFactory connects AI models, applications, databases, and file storage services through governed MCP and REST API endpoints.
**Quick Start:** 1. Install DreamFactory on [Linux](#installation), [Windows](#installation), [Docker](https://github.com/dreamfactorysoftware/df-docker), or [Kubernetes](https://github.com/dreamfactorysoftware/df-helm) 2. Connect a database (MySQL, PostgreSQL, SQL Server, MongoDB, etc.) 3. DreamFactory auto-generates a REST API with full OpenAPI documentation 4. Configure roles, API keys, and access controls 5. Call your APIs from any application, script, or AI model --- ## Key Features ### API Generation - **Automatic REST API creation** for SQL and NoSQL databases — no code required - **OpenAPI/Swagger documentation** generated automatically for every endpoint - **Stored procedure and function support** — expose database logic as API endpoints - **Related data retrieval** — fetch parent/child records in a single API call - **Server-side filtering, sorting, and pagination** built into every endpoint - **Bulk insert, update, and delete** operations for high-throughput data access ### Security and Access Control - **Role-based access control (RBAC)** — granular permissions per table, endpoint, and HTTP verb - **API key management** — issue, revoke, and rate-limit API keys per application - **SSO authentication** — SAML 2.0, OAuth 2.0, OpenID Connect, Azure AD, LDAP/Active Directory - **API rate limiting** — throttle requests per user, role, or service - **Audit logging** — track every API call with user, timestamp, and payload - **Data masking and field-level security** — control which columns are visible per role ### Extensibility - **Server-side scripting** — customize API behavior with PHP, Python, or Node.js at any endpoint - **Pre- and post-process event scripts** — transform requests and responses - **Custom service creation** — build and register your own API services - **Webhook and event broadcasting** — trigger external workflows on data changes ### MCP Server (Model Context Protocol) - **Built-in MCP server** for connecting AI models (ChatGPT, Claude, local LLMs) to your databases - **Governed AI data access** — AI queries go through DreamFactory's RBAC and audit logging - **Deterministic database queries** — AI uses structured API calls, not raw SQL generation - **Tool definitions** — expose database tables and stored procedures as MCP tools ### Administration - **Web-based admin console** — manage services, roles, users, and API keys from a browser - **Multi-tenant support** — host multiple isolated API environments on a single instance - **Database schema management** — create, modify, and manage tables via API or admin UI - **API usage dashboards** — monitor request volume, errors, and performance --- ## Supported Data Sources DreamFactory connects to a wide range of databases and services out of the box. ### SQL Databases | Database | Connector Package | Features | |---|---|---| | **MySQL / MariaDB** | [df-mysqldb](https://github.com/dreamfactorysoftware/df-mysqldb) | Full CRUD, stored procedures, views, relationships | | **PostgreSQL** | [df-sqldb](https://github.com/dreamfactorysoftware/df-sqldb) | Full CRUD, stored procedures, views, relationships | | **SQL Server** | [df-sqlsrv](https://github.com/dreamfactorysoftware/df-sqlsrv) | Full CRUD, stored procedures, views, relationships | | **Oracle** | [df-oracledb](https://github.com/dreamfactorysoftware/df-oracledb) | Full CRUD, stored procedures, views, relationships | | **SQLite** | [df-sqldb](https://github.com/dreamfactorysoftware/df-sqldb) | Full CRUD, views | | **IBM Db2** | [df-ibmdb2](https://github.com/dreamfactorysoftware/df-ibmdb2) | Full CRUD, stored procedures | | **SAP SQL Anywhere** | [df-sqlanywhere](https://github.com/dreamfactorysoftware/df-sqlanywhere) | Full CRUD, stored procedures | | **Firebird** | [df-firebird](https://github.com/dreamfactorysoftware/df-firebird) | Full CRUD, stored procedures | | **Snowflake** | [df-snowflake](https://github.com/dreamfactorysoftware/df-snowflake) | Full CRUD, views | | **Apache Spark / Databricks** | [df-spark](https://github.com/dreamfactorysoftware/df-spark) | Full CRUD, Spark SQL | ### NoSQL Databases | Database | Connector Package | |---|---| | **MongoDB** | [df-mongodb](https://github.com/dreamfactorysoftware/df-mongodb) | | **Apache Cassandra** | [df-cassandra](https://github.com/dreamfactorysoftware/df-cassandra) | | **Couchbase** | [df-couchbase](https://github.com/dreamfactorysoftware/df-couchbase) | | **CouchDB** | [df-couchdb](https://github.com/dreamfactorysoftware/df-couchdb) | ### File Storage and Other Services | Service | Description | |---|---| | **Local File Storage** | Manage files and folders via REST API | | **AWS S3** | Amazon S3 bucket operations | | **Azure Blob Storage** | Azure blob and container management | | **SFTP / FTP** | Remote file system access | | **Email (SMTP)** | Send emails via API | | **Push Notifications** | Apple and Google push notifications | | **SOAP Services** | Convert SOAP/WSDL services to REST | --- ## MCP Server for AI and LLM Integration DreamFactory includes a **built-in MCP (Model Context Protocol) server** that enables AI assistants and large language models to securely query your databases through governed API endpoints. ### Why Use DreamFactory as an MCP Server? - **No raw SQL generation** — AI models call structured API endpoints instead of generating unpredictable SQL queries - **Enterprise security** — Every AI query passes through DreamFactory's role-based access control and audit logging - **Works with any MCP client** — Compatible with Claude Desktop, ChatGPT, Cursor, Windsurf, and other MCP-enabled tools - **Stored procedure support** — Expose complex business logic as simple tool calls for AI models ### Getting Started with MCP ```bash # Install DreamFactory with MCP support using NPX npx @dreamfactory/create-df-mcp ``` Or configure your existing DreamFactory instance as an MCP server. See the [MCP Server documentation](https://docs.dreamfactory.com/AI/mcp-server) for setup instructions. --- ## Installation DreamFactory can be installed on Linux, Windows, Docker, or Kubernetes. ### Linux (Ubuntu, Debian, CentOS, RHEL, Fedora) Install DreamFactory and all dependencies in under 5 minutes using our automated installers: ```bash git clone https://github.com/dreamfactorysoftware/dreamfactory.git cd dreamfactory/installers sudo bash dfsetup.run ``` See the [Linux installers directory](https://github.com/dreamfactorysoftware/dreamfactory/tree/master/installers) for supported distributions. ### Windows Follow our step-by-step guide for installing DreamFactory on Windows with IIS or Apache: [Windows Installation Guide](https://docs.dreamfactory.com/getting-started/installing-dreamfactory/windows-installation) ### Docker The fastest way to get started. Spins up DreamFactory, MySQL, Redis, and a sample PostgreSQL database: ```bash git clone https://github.com/dreamfactorysoftware/df-docker.git cd df-docker docker compose up -d ``` See the [df-docker repository](https://github.com/dreamfactorysoftware/df-docker) for full instructions. ### Kubernetes (Helm) Deploy DreamFactory to your Kubernetes cluster using our official Helm chart: ```bash helm repo add dreamfactory https://dreamfactorysoftware.github.io/df-helm helm install dreamfactory dreamfactory/dreamfactory ``` See the [df-helm repository](https://github.com/dreamfactorysoftware/df-helm) for configuration options. ### NPX Quick Install Our Node-based installer sets up DreamFactory with optional MCP server and a PostgreSQL test database: ```bash npx @dreamfactory/create-df-mcp ``` See the [NPX installer on npm](https://www.npmjs.com/package/@dreamfactory/create-df-mcp) for details. --- ## Documentation | Resource | Description | |---|---| | [Getting Started Guide](https://guide.dreamfactory.com/) | Step-by-step walkthrough for new users | | [Platform Documentation](https://docs.dreamfactory.com) | Full reference documentation | | [API Reference (Wiki)](https://wiki.dreamfactory.com) | API endpoint reference and examples | | [MCP Server Docs](https://docs.dreamfactory.com/AI/mcp-server) | Setting up DreamFactory as an MCP server for AI | | [Blog](https://blog.dreamfactory.com/) | Tutorials, use cases, and product updates | --- ## Community and Support |
|