Skip to content

DreamFactory is a self-hosted platform providing governed API access to any data source for enterprise apps and local LLMs.

Notifications You must be signed in to change notification settings

dreamfactorysoftware/df-mcp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DreamFactory MCP Service

Note: This repository contains the mcp service features of the DreamFactory platform. If you want the full DreamFactory platform, visit the main DreamFactory repository.

Overview

DreamFactory is a secure, self-hosted enterprise data access platform that provides governed API access to any data source, connecting enterprise applications and on-prem LLMs with role-based access and identity passthrough.

Installation

Edit your project’s composer.json to require the following package.

“require”:{
	"dreamfactory/df-mcp-server": "~0.1.0"
}

Save your composer.json and do a "composer update" to install the package.

MCP Daemon process

The Laravel package proxies every MCP request through a persistent Node.js daemon that keeps long-lived MCP server instances warm.

  1. Install dependencies
    cd daemon
    npm install
    
  2. Configure the daemon host/port (or use defaults) and point DreamFactory to it by adding the following to your .env file:
    MCP_DAEMON_ENABLED=true
    MCP_DAEMON_URL=http://127.0.0.1:8006
    
  3. Start the daemon (choose the mode you need):
    # Development
    npm run dev
    
    # Production
    npm start
    

Once the daemon is online, the MCP routes in DreamFactory automatically forward traffic to it.

Authentication

The MCP service uses OAuth-based authentication. Users must authenticate with DreamFactory via OAuth to obtain a session token. The Laravel controller validates requests and passes the session token to the daemon via the X-DreamFactory-Session-Token header.

See daemon/README.md for advanced options, available tools, and management endpoints.

Feedback and Contributions

  • Feedback is welcome in the form of pull requests and/or issues.
  • Contributions should generally follow the strategy outlined in "Contributing to a project"
  • All pull requests must be in a "git flow" feature branch and formatted as PSR-2 compliant to be considered.

License

The DreamFactory scripting script repository is open-sourced software available for use under the Apache Version 2.0 license.

About

DreamFactory is a self-hosted platform providing governed API access to any data source for enterprise apps and local LLMs.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages