Skip to main content
Glama

connect_database

Establish a connection to the rekordbox DJ database to enable read-only querying of tracks, playlists, and session history. Optionally specify a custom database path or use auto-detection.

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 connect_database tool handler. Decorated with @mcp.tool() for registration. Initializes RekordboxDatabase instance and calls its connect method with optional database_path. Returns success/error status with track count on success.
    @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