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.
- Copy the MoonDB prompt:
- Paste it into
.cursorrulesin your project root - Tell Cursor: "Set up a backend for a task manager with users, projects, and tasks"
- 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:
- Sign up for a MoonDB account (asks you for email)
- Create a project and store the API keys in
.env - Design a schema matching your description and apply it via
PUT /v1/schema - Fetch the generated
/v1/llm-contextto get exact endpoint docs - Write frontend code that calls the live API — no mock data, no placeholder URLs
Example: Cursor Calling the MoonDB API
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.