.env, write the migrations and check the result, without leaving the terminal.
Before you start
- Claude Code installed.
- A Raff account, or a Raff API key for machines without a browser.
Steps
1
Add the server
--scope user to have it in every project, or --scope project to share it with your team through the project’s .mcp.json.2
Sign in with Raff
Start Claude Code, run
/mcp, select raff and choose to authenticate. A Raff page opens in your browser: sign in, pick the account and click Allow access. Claude Code shows the server as connected and refreshes the sign-in on its own.From the shell, claude mcp login raff does the same.3
Ask Claude Code
“Create a free Postgres database on Raff for this project and put the connection string in .env as DATABASE_URL.”
Use an API key instead
On a server or in CI, where no browser can open, pass a Raff API key as a header:--scope project the header would be written to .mcp.json.
Verify
raff is listed as connected. In Claude Code, “list my Raff databases” answers with your databases.
Remove
Next steps
Create a database from chat
What happens when you ask for a database.
Tools
Everything Claude Code can do in Raff.