Docs menu

Tools

MCP

Connect Claude, ChatGPT, Claude Code, Cursor or another MCP client to MDRN, choose the workspace and what it may change, including databases, and revoke it.

View as Markdown

Prompt for your coding agent
Set up MDRN (https://mdrn.io) for this project. MDRN runs the app and gives it hosting, storage (SQLite, Postgres and Objects), auth, mail and logs. Read https://mdrn.io/llms.txt first; every docs page is Markdown at https://mdrn.io/docs/<page>.md.

1. I need an MDRN account. If I don't have one, stop and ask me to sign up at https://console.mdrn.io. Build free, no card. $25 a month when you go live. A new account is in build mode: one project in its Sandbox environment, SQLite only, and an app only the workspace's members can open until I go live.
2. Install the CLI (Node.js 20 or later) and sign in. The browser opens; wait while I approve it.
   npm install -g @mdrnio/cli
   mdrn login
3. Connect MDRN's MCP server, so you can read builds, logs and usage. In Claude Code:
   claude mcp add --transport http mdrn https://mcp.mdrn.io/mcp
   In another client, add a remote MCP server named "mdrn" at https://mcp.mdrn.io/mcp (https://mdrn.io/docs/mcp.md). Its sign-in opens in the browser; wait while I approve it.
4. If this directory has no app yet, start from the template: mdrn init my-app && cd my-app. Then link the directory to a project and deploy:
   mdrn link
   mdrn deploy
   Tell me the address it ends with (Live: https://...). If the build fails, read the lines it prints and https://mdrn.io/docs/errors.md.
5. Call SQLite, Postgres, Objects and Mail only from the app's backend, with the SDK (npm install @mdrnio/sdk; Mdrn.fromEnv(env)). Never from browser code, and never put an MDRN credential in frontend code or in the repository.
6. Ask me before anything that changes what I pay (going live, a custom domain). If a build mode limit or a locked feature stops you, tell me instead of working around it.

Last updated

On this page