The Backend That Cursor Already Knows How to Use

Cursor is the AI-first code editor that writes code for you. MoonDB is the backend that Cursor can provision without help. Paste one prompt into your .cursorrules, and Cursor generates a complete backend — database schema, REST API, auth, file storage — in a single conversation.

How It Works

MoonDB publishes a ready-made prompt that teaches Cursor how to use the MoonDB API. Drop it into your project's .cursorrules file. From that point on, every time you ask Cursor to "add a backend" or "set up a database," it knows exactly what to do.

  1. Copy the MoonDB prompt:
  2. Paste it into .cursorrules in your project root
  3. Tell Cursor: "Set up a backend for a task manager with users, projects, and tasks"
  4. Cursor calls the MoonDB API — creates the project, sets the schema, wires up the frontend

What Cursor Generates

With the MoonDB prompt in context, Cursor will:

Example: Cursor Calling the MoonDB API

.cursorrules
// Cursor reads .cursorrules, then runs: // 1. Create the project POST https://api.moondb.ai/v1/projects X-API-Key: mk_... { "name": "task-manager" } // 2. Set the schema PUT https://api.moondb.ai/p/{project_id}/v1/schema X-Admin-Key: sk_... { "tables": { "users": { "auth_table": true, "columns": { "display_name": "string" } }, "tasks": { "columns": { "title": "string required", "done": "bool default false", "user_id": "ref users required" }, "access": { "read": "owner", "create": "auth", "update": "owner", "delete": "owner" }, "owner_field": "user_id" } } } // 3. REST API is live. Cursor writes fetch() calls. GET https://api.moondb.ai/p/{project_id}/api/tasks?sort=created_at.desc

Why MoonDB + Cursor

Other backends require Cursor to generate SQL migrations, configure ORMs, set up auth middleware, and deploy infrastructure. With MoonDB, Cursor skips all of that. The API is designed so an AI agent can go from zero to a working backend in three calls — and every error response includes a suggestion field that tells Cursor exactly how to fix it.

No deploy step. No config files. No ORM. Just JSON schema in, REST API out.

Get started with Cursor

Copy the prompt, paste into .cursorrules, and build.

Start building
Copied! Now paste it into your AI agent