How to security-scan a Lovable, Bolt or Cursor app from inside Claude or Cursor
By AI App Medic · Updated · Claude · Cursor · Security · Supabase
You can run the same free AI App Medic security scan from inside Claude or Cursor, without opening the website every time. Add the connector once, then say "scan my app" and the report comes back in the chat: a score, a grade, and findings with severity and fix steps.
The connector is at https://aiappmedic.com/mcp. It is read only, needs no account and no API key, and it calls the same scanner as the free scan page. It is built for apps shipped with Lovable, Bolt, Cursor, Replit or v0, especially those that use Supabase.
What you need
A public URL for the deployed app, for example https://my-app.lovable.app or your custom domain. The scan only talks to that live site. It cannot see localhost, private networks, or anything behind a login.
Set it up in Claude
- Open Settings, then Connectors.
- Choose Add custom connector.
- Paste
https://aiappmedic.com/mcpand save. Leave authentication off.
In a new chat, ask Claude to use the AI App Medic connector and to scan your URL. If the connector does not appear, start a fresh chat after adding it, or check that it is enabled for that chat.
Set it up in Cursor
Add this to ~/.cursor/mcp.json (for every project), or to .cursor/mcp.json inside one project:
{
"mcpServers": {
"aiappmedic": {
"url": "https://aiappmedic.com/mcp"
}
}
}
Reload Cursor, then ask it to scan your app in the chat. Other tools that accept a remote MCP server, including ChatGPT in developer mode, can use the same address.
Example prompts
Give the assistant the public URL. These work well:
- "Scan https://my-app.lovable.app and tell me what to fix first."
- "Is my app at https://my-app.lovable.app secure? Give me a quick health check."
- "Did I leak an API key or leave my Supabase database open on https://my-app.lovable.app?"
- "What does the supabase_open_tables finding mean, and how do I fix it in Supabase?"
- "What does a missing Content-Security-Policy header mean in a Vite app, and how do I add one?"
The first three run the scan. The last two ask for an explanation of a finding type, including the fix steps this scanner recommends for Lovable, Bolt and Supabase apps. You can ask for an explanation even if you have not just run a scan.
What the scan checks
It is a passive check of what any visitor can already see. In about 5 to 40 seconds it looks at:
- HTTPS and security headers such as HSTS, Content-Security-Policy, clickjacking protection and others. See how to add security headers.
- Exposed API keys in public JavaScript: OpenAI, Anthropic, Stripe, AWS, GitHub, SendGrid, Resend, a Supabase service role key, private key blocks and more. Values are always masked. See VITE_ variables and a service role key in the frontend.
- Supabase exposure. If a project URL and the public (anon) key appear in the code, it lists tables when that list is public, and it counts rows that anyone can read without logging in. It never downloads row data. See RLS that still leaves data public and the pre-launch security checklist.
- Public source maps, which can reveal original source code.
- SEO and performance basics: title, description, social preview, JavaScript-only pages, large bundles, slow first response, missing compression, and broken homepage links.
The report starts with a line like Score: 86/100 (grade B), then the findings, most serious first. Each finding has an id you can pass back when you ask what it means.
What stays hidden until you prove ownership
To keep the connector from being used to harvest someone else's secrets, these details stay hidden until the site owner verifies the domain:
- The type and masked value of an exposed key.
- Database table names and row counts.
- Source map URLs.
The score still counts those findings. The result tells you that something is hidden and how to unlock it. Add one of the following, then scan again:
- A meta tag in the homepage
<head>:<meta name="aiappmedic-verify" content="TOKEN">. On Lovable, Bolt and similar hosts, this is usually the easiest option. - A text file at
https://YOUR-DOMAIN/.well-known/aiappmedic.txtthat contains only the token. - A DNS TXT record on the domain with the value
aiappmedic-verify=TOKEN.
The token is unique to your hostname. The scan result prints the exact tag, file contents and DNS value to copy. After it is live, ask the assistant to scan again. More detail is in the scan policy and in what the connector fetches and keeps.
Limits and fair use
Scan apps you own or have permission to check, or a public site you are evaluating. The scan will not follow credentials in a URL, non-standard ports, or local and private addresses. Each network can start 5 new scans per hour, and one site can be scanned 3 times per hour, so the connector cannot be used to hammer other people's sites. If you hit the limit, wait and try again, or use the scan page.
The scan cannot see server code, private repositories, or anything behind a login. Some findings may be intentional. It reduces risk; it is not a guarantee of security.
FAQ
Does this work in ChatGPT as well?
Yes, if your ChatGPT account can add a custom MCP server (developer mode). Use the same address, https://aiappmedic.com/mcp, with no authentication. The setup screens differ, but the tools and the report are the same.
Will the scan log in or change my app?
No. It only loads what any visitor's browser can already load: the homepage, its JavaScript, robots.txt, sitemap.xml and the links on the homepage. It does not log in, submit forms, guess passwords or write to your database.
Why are some findings hidden?
Details about exposed keys, database table names, row counts and source map URLs are shown only after you prove you own the site. That way a scan cannot be used to collect someone else's secrets. The score still includes those findings. The result explains how to verify ownership.
Can I scan a public site I am evaluating, not only my own app?
Yes. The scan is a passive, public-only check, the same kind of request a browser makes. Sensitive details stay hidden until the site owner verifies ownership.
Is there a limit?
Yes. Each network can start 5 new scans per hour, and one site can be scanned 3 times per hour. Results are reused for a few minutes if you ask again. The web scan at /scan has its own hourly limit.
Related guides
- Security checklist for AI-built (vibe-coded) apps: 15 checks before you launch
- RLS is enabled but your Supabase data is still public: how to audit your policies
- Supabase service role key exposed in your frontend: what to do right now
- Exposed API keys in a Vite / React bundle: why VITE_ variables are public and how to fix it
- Missing security headers in your AI-built app: what they do and how to add them