MCPdir β€” MCP Server Directory
πŸ‡¬πŸ‡§ πŸ‡ͺπŸ‡Έ

DreamFactory MCP

by DreamFactory

Securely query MS SQL, MySQL, PostgreSQL and more through RBAC-controlled REST APIs

database Node.js Intermediate Self-hostable
⭐ 100 stars πŸ“… Updated: 1mo ago

Description

MCP server for DreamFactory, a platform that automatically generates secure REST APIs from any database. Instead of connecting directly to databases, this server routes all queries through DreamFactory's RBAC (Role-Based Access Control) layer, ensuring that AI assistants only access data they are authorized to see. Supports MS SQL Server, MySQL, PostgreSQL, Oracle, MongoDB, and many other database backends through a unified API interface. DreamFactory handles authentication, rate limiting, and audit logging β€” so you get enterprise-grade security without building custom middleware. Ideal for teams that need to give AI access to production databases without exposing raw connection strings.

βœ… Best for

Enterprise teams that need to give AI assistants secure, audited access to multiple databases without exposing raw credentials

⏭️ Skip if

You have a single database and are comfortable with direct SQL connections

πŸ’‘ Use cases

  • Querying multiple database backends through a single secure API layer
  • Giving AI assistants controlled access to production data with RBAC
  • Exploring and managing records across different database types from one interface
  • Building data pipelines that respect role-based permissions automatically

πŸ‘ Pros

  • βœ“ RBAC-controlled access β€” AI only sees what its role allows, not raw database access
  • βœ“ Multi-database support (SQL Server, MySQL, PostgreSQL, Oracle, MongoDB) via unified API
  • βœ“ No raw database credentials exposed to the AI assistant
  • βœ“ DreamFactory handles authentication, rate limiting, and audit logging out of the box

πŸ‘Ž Cons

  • βœ— Requires a running DreamFactory instance as middleware between AI and databases
  • βœ— Additional latency from routing queries through the API layer
  • βœ— DreamFactory itself needs configuration and maintenance

πŸ”§ Exposed tools (5 tools)

ToolCategoryDescription
list_tablesdiscoveryList all tables available in a database service
describe_schemadiscoveryGet the schema definition and column details for a table
list_servicesdiscoveryList all database services configured in DreamFactory
query_databasequeryExecute a query against a database through the DreamFactory API
manage_recordswriteCreate, update, or delete records in a table

⚑ Installation

Prerequisites:

  • β€’ Node.js v18+
  • β€’ DreamFactory API key and instance URL
  • β€’ API key required

Check Claude Code documentation to configure this MCP server.

πŸ’‘ Tips & tricks

Set up your DreamFactory instance first and configure database connections through its admin panel. Use list_services to see all available database backends, then list_tables to explore each one. The RBAC layer means you should configure an appropriate API role for the AI assistant β€” avoid using admin-level API keys.

πŸ”„ Alternatives

Quick info

Author
DreamFactory
License
Apache-2.0
Runtime
Node.js 18+
Transport
stdio
Category
database
Difficulty
Intermediate
Self-hostable
βœ…
Auth
β€”
Docker
β€”
Version
latest
Updated
Feb 28, 2026

Client compatibility

  • βœ… Claude Code
  • βœ… Cursor
  • βœ… VS Code Copilot
  • ❓ Gemini CLI
  • βœ… Windsurf
  • βœ… Cline
  • ❓ JetBrains AI
  • ❓ Warp

Platforms

🍎 macOS 🐧 Linux πŸͺŸ Windows