Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/lovablelabs/mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/lovablelabs/mcp/db)<a href="https://agentmods.dev/commands/lovablelabs/mcp/db"><img src="https://agentmods.dev/badge/commands/lovablelabs/mcp/db/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/lovablelabs/mcp/db"><img src="https://agentmods.dev/badge/commands/lovablelabs/mcp/db.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00013 | $0.00298 |
| Opus 5.5 | $0.00005 | $0.00119 |
| Sonnet 5.5 | $0.00003 | $0.00060 |
| Haiku 4.5 | $0.00001 | $0.00030 |
Grade A, and why
db scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Work with a Lovable project's database. Input: $ARGUMENTS
- Resolve the
project_id. If the user gave a name, calllist_projectswith the workspace id, show up to five matches with dates, and confirm one. - Call
get_database_status. If no database exists and the user wants one, confirm and callenable_database(takes 30 to 60 seconds; one time per project). - If the user supplied SQL, run it with
query_database.query_databasehas full read, write and schema permissions. Show the user the exact SQL and get explicit confirmation before running anything that writes data or alters schema.- Before a write, read the target columns' nullability and defaults from
information_schema.columns, and allowed values from enums and CHECK constraints in thepublicschema. - A database nobody has opened lately can take a moment to wake. If a query does not answer, wait about 30 seconds and try once more; if it still does not, say so and suggest opening the app or the editor.
- Connection details (connection string, API URL) are not exposed by the Lovable MCP server. Point the user to the Cloud tab in the Lovable editor (
editor_urlfromget_project).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 18d ago Changed · +2 lines 861ca544b682
- 3mo ago First seen · 13 lines · 13 tokens per session scan A 5be8a27f8d14
db is a command published in the GitHub repository lovablelabs/mcp (16 stars, last pushed 18d ago), licensed Apache-2.0. It adds 13 tokens to every session and 298 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
db compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dblovablelabs/mcp | Command | 16 | 18d ago | Apache-2.0 | A | 13 | Claude Code |
| psql-queryoliver-kriska/claude-elixir-phoenix | Command | 580 | today | MIT | A | 16 | Claude Code |
| db-healthfmflurry/harness-manifesto | Command | 172 | 16d ago | MIT | A | 36 | Claude Code |
| dbtextura-agency/next16-claude-starter | Command | 160 | 1mo ago | Unlicense | A | 11 | Claude Code |
| chadi-dbchadixearth/graphyloop | Command | 3 | 1mo ago | MIT | A | 22 | Claude Code |
| rls-plankensaurus/cursor-kenji | Command | 9 | 2mo ago | MIT | A | 16 | Claude Code |
| checklistgithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |