Skip to main content
Glama

connect_database

Establish a connection to the rekordbox database by specifying a directory path or enabling auto-detection. Retrieve connection status for accessing DJ tracks, playlists, and session history.

Instructions

Connect to the rekordbox database.

Args: database_path: Optional path to database directory. If not provided, auto-detection is used.

Returns: Connection status message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
database_pathNo

Implementation Reference

  • The handler function for the 'connect_database' tool. Decorated with @mcp.tool() for automatic registration in FastMCP. Initializes RekordboxDatabase instance and calls its connect method, handling errors and returning status.
    @mcp.tool() async def connect_database(database_path: Optional[str] = None) -> Dict[str, str]: """ Connect to the rekordbox database. Args: database_path: Optional path to database directory. If not provided, auto-detection is used. Returns: Connection status message """ global db try: db = RekordboxDatabase() path = Path(database_path) if database_path else None await db.connect(database_path=path) return { "status": "success", "message": f"Connected to rekordbox database at {db.database_path}", "total_tracks": str(await db.get_track_count()) } except Exception as e: logger.error(f"Failed to connect to database: {e}") return {"status": "error", "message": f"Failed to connect: {str(e)}"}

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/davehenke/rekordbox-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server