# Cursor on your database, with a safety net.

> Connect Cursor’s agent to Postgres, Supabase, Neon or D1 through Osevel: its own key, every change recorded, risky ones held for your approval.

Source: https://osevel.com/integrations/cursor/

Connect Cursor’s agent to your Postgres, Supabase, Neon or Cloudflare D1 database through OsBase. It gets its own key and access level; risky changes wait for you, and any change can be undone. OsBox can give it the rest of your MCP servers too, pinned, with their keys in OsVault.

## Good to know

- **A configuration that stays out of git.** Osevel prints the entry for your user-level ~/.cursor/mcp.json, not the project’s file, so the token never lands in a repository.
- **Risky changes wait.** Structure changes, deletes without a filter and writes over 100 rows wait for a person by default.
- **Undo one change or a session.** Every row Cursor changes is kept before and after, so you can undo one change or everything it did in a session.
- **It cannot approve itself.** Approvals come from a person: in your terminal, or in the dashboard with your passkey.

## Set it up

```sh
# 1. give Cursor its own key (prints the ~/.cursor/mcp.json entry)
osevel agent add cursor-main --ide cursor --access write
# 2. see what waits for you
osevel approvals
# 3. undo a change
osevel undo 5
```

Pre-release (0.2). Install: `npm i -g @osevel/cli` (the command is `osevel`).

More: [The agents guide](https://osevel.com/docs/guides/agents/)
