The Daydream MCP connector routes your AI agent's tool calls to Daydream's own MCP server through Scalekit. Each user connects their own Daydream access token once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 6 tools.
- Tools
- 6
- What they doRead · write · destructive
- 3 · 1 · 23 read1 write2 destructive
- Users sign in with
- Access token
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the Daydream MCP connection
In AgentKit > Connections, create a Daydream MCP connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'daydreammcp'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Daydream MCP:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'daydreammcp_get_songs_left',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "daydreammcp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Daydream MCP:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="daydreammcp_get_songs_left",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user opens the link once and enters their Daydream MCP server credentials there. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_tooldaydreammcp_get_songWhere a song made with create_song stands: its place in line, or, once done, each version's MP3 and WAV links and its five stems' FLAC links (a few seconds after the mix), and any part being made again with redo_stem.Read-onlyCheck a song
Where a song made with create_song stands: its place in line, or, once done, each version's MP3 and WAV links and its five stems' FLAC links (a few seconds after the mix), and any part being made again with redo_stem. A sound effect (kind "sfx") has no stems.
Inputs
idstringrequired- The song's id from create_song.
daydreammcp_get_songs_leftHow many songs the person has made this month and how many they can make (no limit on some accounts), and when the count starts again.Read-onlySongs left
How many songs the person has made this month and how many they can make (no limit on some accounts), and when the count starts again.
Inputs
This tool takes no inputs.
daydreammcp_list_songsThe songs on the person's Daydream account, newest first: each one's id, words, length, tempo and how many versions.Read-onlyYour songs
The songs on the person's Daydream account, newest first: each one's id, words, length, tempo and how many versions. Use get_song with an id to play one.
Inputs
limitinteger- How many (default 10).
daydreammcp_create_songMake an original instrumental song from a description: genre, mood, instruments, tempo, what it's for.WriteMake a song
Make an original instrumental song from a description: genre, mood, instruments, tempo, what it's for. Returns it queued; the player in the chat shows it rendering and plays it when it's done (about a minute), with MP3 and WAV downloads and its five stems (drums, bass, guitar, keys, other) as FLAC. Where there's no player, get_song gives those links once it's done. Artist names are not allowed and are removed from prompts before generation: describe the sound instead. Royalty-free, for commercial games and videos. It makes sound effects too, with nothing to switch: a description with no music in it ("heavy rain on a tin roof", "a sword clashing against a metal shield") comes back as a sound effect, one take up to 30 seconds with MP3 and WAV and no stems, and its kind is "sfx".
Inputs
promptstringrequired- The music in words, e.g. "a calm village theme with flute and harp", or a sound with no music in it for a sound effect, e.g. "footsteps on gravel".
bpminteger- Tempo; left out, it's chosen from the prompt.
durationnumber- Length in seconds (default 120).
keystring- A note with sharps and major or minor, like "C major" or "F# minor".
loopboolean- A seamless loop, for a game level or a background.
seedinteger- Makes the same song again from the same words and settings; left out, a new one each time.
variationsinteger- How many versions of it to make (default 1). Two count as one song.one of
12
daydreammcp_redo_stemMake one stem of a finished song again (new drums, say), with the other four exactly as they are; the mix becomes the new part with the rest.DestructiveRedo one part
Make one stem of a finished song again (new drums, say), with the other four exactly as they are; the mix becomes the new part with the rest. Counts as one song. Takes about a minute; the player shows it. undo_stem puts the old part back.
Inputs
idstringrequired- The song's id.
stemstringrequired- The part to make again.one of
drumsbassguitarkeysother versioninteger- Which version of the song (default 1).one of
12
daydreammcp_undo_stemPut a song's version back to how it was before its last redo_stem: the old part plays again, and the mix with it.DestructiveUndo the last redo
Put a song's version back to how it was before its last redo_stem: the old part plays again, and the mix with it. Costs nothing. Only the last redo can be undone.
Inputs
idstringrequired- The song's id.
versioninteger- Which version of the song (default 1).one of
12
No tools match.