PatchLabs
Checks apps built with Lovable, Supabase, Bolt or Replit for personal-data leaks. rls_check reads a public GitHub repo's Supabase migrations and lists row-level-security mistakes with the SQL fix; headers_check grades a live site's HTTPS, certificate, security headers and cookies. Free, no account or API key.
Hosted MCP Server
npx add-mcp 'https://api.patchlabs.dev/mcp/public'Installs into Claude Code, Codex, Cursor and more
Documentation
MCP server
Ask your AI assistant or coding agent to check an app for leaks. PatchLabs runs a remote MCP server, so Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code, Windsurf and other MCP clients can run the free RLS check and headers check, start full checks and re-check monitored apps.
In short: PatchLabs is a free remote MCP server for security checks of apps built with Lovable, Supabase, Bolt or Replit. Add https://api.patchlabs.dev/mcp/public to any MCP client: no account, no API key, no OAuth. rls_check reads a public GitHub repo’s supabase/migrations and lists row-level-security mistakes with the SQL to fix each one; headers_check grades a live site’s HTTPS, certificate, security headers and cookies. It is listed in the official MCP registry as dev.patchlabs/patchlabs. How it compares with other security MCP servers: security MCP servers compared.
Server URL, no sign-in (4 open tools)
https://api.patchlabs.dev/mcp/public
Server URL, optional API key (all 7 tools)
https://api.patchlabs.dev/mcp
Listed in the official MCP registry, in awesome-remote-mcp-servers and on Glama, which tests the server every hour and publishes its uptime and a tool-quality score.
Tools
| Tool | Arguments | What it does | Access |
|---|---|---|---|
rls_check | repo | The free static RLS check of a public repo’s migrations. Instant, no sign-up. | Read-only, no key |
headers_check | url | Grades a public site’s HTTPS, certificate, security headers and cookie flags from one load of its home page (PL-027 to PL-036, and PL-040 for third-party scripts). No sign-up. | Read-only, no key |
start_check | repo, email | Requests the full lab check. Returns a check ID and link; the owner still proves ownership by committing the verification file. | Creates a check, no key |
get_check | check_id | Status of a check; once finished, the findings, plain-English report and tested fix. Safe to poll. | Read-only, no key |
list_apps | none | The apps monitored in the key’s workspace, with their latest check. | Read-only, key |
list_checks | app_id (optional), limit | Past and running checks in the key’s workspace, newest first, each with the id to pass to get_check. | Read-only, key |
run_check | app_id | Queues a check for a monitored app now. Uses one of the plan’s monthly runs. | Creates a check, key |
Every tool carries MCP annotations: the five read-only tools set readOnlyHint, so clients can run them without asking each time; start_check and run_check create a check and are marked not read-only. No tool deletes or changes anything in your app, repo or database (destructiveHint: false).
Install
The first four tools work with no key. For a client that connects without any sign-in, such as a custom connector in Claude, use https://api.patchlabs.dev/mcp/public: it serves only those four tools. To use list_apps, list_checks and run_check, add a workspace API key as the X-API-Key header, as shown in each snippet.
Claude (web, desktop and mobile)
- Open Settings → Connectors and choose Add custom connector.
- Name it
PatchLabsand paste the URL below. Leave the OAuth fields empty: the server needs no sign-in. - In a chat, turn the connector on from the tools menu and ask: “Run a PatchLabs RLS check on github.com/you/your-app.”
https://api.patchlabs.dev/mcp/public
On Team and Enterprise plans an owner may need to add the connector for the organisation first.
ChatGPT
- Go to chatgpt.com/plugins, select +, then Add custom MCP server. (Older accounts show this under Settings → Apps with developer mode turned on.)
- Name it
PatchLabs, paste the URL below as the connection, and choose no authentication. - Review the warning, create it, and check that the four tools appear:
rls_check,headers_check,start_check,get_check.
https://api.patchlabs.dev/mcp/public
Account and workspace policies decide whether you can add custom MCP servers; on a Business or Enterprise workspace an admin may need to allow it.
Claude Code
claude mcp add --transport http patchlabs https://api.patchlabs.dev/mcp
With an API key for the app tools:
claude mcp add --transport http patchlabs https://api.patchlabs.dev/mcp \
--header "X-API-Key: pl_live_…"
Run claude mcp list to confirm it connected.
Or install the PatchLabs plugin: it adds this server plus a skill that explains findings in plain English and drafts the fix migration for you to approve.
Codex
codex mcp add patchlabs --url https://api.patchlabs.dev/mcp
Or add it to ~/.codex/config.toml (or .codex/config.toml in a trusted project). Leave out http_headers if you only need the open tools:
[mcp_servers.patchlabs]
url = "https://api.patchlabs.dev/mcp"
http_headers = { "X-API-Key" = "pl_live_…" }
Run codex mcp list to confirm it was added.
Cursor
Add this to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for every project):
{
"mcpServers": {
"patchlabs": {
"url": "https://api.patchlabs.dev/mcp",
"headers": { "X-API-Key": "pl_live_…" }
}
}
}
Leave out headers if you only need the open tools. Don’t commit a file that contains your key.
VS Code
Add this to .vscode/mcp.json. VS Code asks for the key the first time and stores it for you, so it never sits in the file:
{
"inputs": [
{ "type": "promptString", "id": "patchlabs-key", "description": "PatchLabs API key", "password": true }
],
"servers": {
"patchlabs": {
"type": "http",
"url": "https://api.patchlabs.dev/mcp",
"headers": { "X-API-Key": "${input:patchlabs-key}" }
}
}
}
Windsurf
Add this to ~/.codeium/windsurf/mcp_config.json (or open it from Windsurf’s MCP settings), then refresh the server list:
{
"mcpServers": {
"patchlabs": {
"serverUrl": "https://api.patchlabs.dev/mcp",
"headers": { "X-API-Key": "pl_live_…" }
}
}
}
Other clients
Any client that supports remote servers over Streamable HTTP works. Give it the URL above and, if it lets you set headers, X-API-Key. The server doesn’t use OAuth.
Editors change their configuration formats from time to time. If a snippet doesn’t connect, check your editor’s MCP docs for remote (HTTP) servers with custom headers.
Things to ask
- “Run a PatchLabs RLS check on github.com/you/your-app and explain each finding in plain English.”
- “Check the security headers of https://your-app.com with PatchLabs and tell me what to fix first.”
- “Start a full PatchLabs check of you/your-app and send the report to me@company.com.”
- “List my PatchLabs apps and re-run the check on the one that’s leaking.”
- “Get PatchLabs check 7c1e… and show me the fix migration.”
Your agent can’t skip verification. start_check creates the check, but it only runs after someone commits patchlabs-verify.txt to the repo. And when your agent shows you a fix, apply it as written: the proof covers the exact file.
Questions
Is the PatchLabs MCP server free?
Yes. The open tools (rls_check, headers_check, start_check and get_check) need no account, no API key and no OAuth. The full lab check is free for one app. Only list_apps, list_checks and run_check need a workspace API key.
Which URL do I use?
https://api.patchlabs.dev/mcp/public for any client that connects without sign-in, such as a custom connector in Claude or ChatGPT; it serves the four open tools. https://api.patchlabs.dev/mcp serves all seven tools and takes an optional X-API-Key header.
Can it check my Supabase row level security?
Yes, from your migrations. rls_check reads supabase/migrations in a public GitHub repo and lists tables with RLS off, policies that let anyone or any signed-in user read every row, always-true policies, exposed SECURITY DEFINER functions, public buckets and views that skip RLS, each with the SQL to fix it. It never connects to your live database, so changes made only in the Supabase dashboard are not seen; Supabase's own MCP server and Security Advisor read the live project.
Does it touch my live app or database?
No. rls_check reads public code. headers_check loads your public home page once, like any visitor. The full lab check rebuilds the database from your migrations in a disposable copy with fake rows, and only after the repo owner commits a one-line verification file.
Does it work with private repos?
Not yet. The open tools read public GitHub repos only; private repos need a GitHub App, which is coming. The open-source patchlabs CLI runs the same static checks locally on any repo.
Which clients does it work with?
Any MCP client that supports remote servers over Streamable HTTP: Claude (web, desktop and mobile custom connectors), Claude Code, ChatGPT custom MCP servers, Codex, Cursor, VS Code, Windsurf and others.
Protocol details
Transport
JSON-RPC 2.0 over Streamable HTTP: POST /mcp. Stateless, with plain JSON responses (no server-sent events). GET /mcp answers 405.
Versions
2026-07-28 (the current spec: no handshake, the version and client capabilities travel in each request’s _meta and the MCP-Protocol-Version, Mcp-Method and Mcp-Name headers), plus the handshake versions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05. An initialize for a version we don’t know is answered with 2025-11-25; a 2026-07-28-style request for an unknown version gets UnsupportedProtocolVersionError (-32022, HTTP 400) listing the versions above.
Methods
2026-07-28: server/discover, tools/list, tools/call; every result carries resultType and our serverInfo in _meta, and discover and list results carry ttlMs and cacheScope. Handshake versions: initialize, ping, tools/list, tools/call; batches are accepted and notifications get 202 with no body. No resources, prompts, subscriptions or tasks.
Errors
A failing tool returns a normal result with isError: true and the plain-English reason, such as an invalid key or a run limit.
Results
Tool results carry the JSON both as text and as structuredContent, and every tool declares an outputSchema for it.
curl -s https://api.patchlabs.dev/mcp -H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": "rls_check", "arguments": {"repo": "manra399/patchlabs-demo-app"}}}'
curl -s https://api.patchlabs.dev/mcp -H 'Content-Type: application/json' \
-H "X-API-Key: $PATCHLABS_API_KEY" \
-d '{"jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": {"name": "list_apps", "arguments": {}}}'
Try it
List the server’s tools, live, from your browser.
Needs JavaScript; use the curl example instead.
The same limits apply as for the API: the RLS check allows 20 requests an hour per network, and run_check uses the workspace’s monthly runs. See rate limits.
Updated 5 Dec 2026Something unclear or wrong? Tell the founder