Use LordBase MCP from VS Code, Cursor or Claude Code
Doha I. · Published · Lire en français

Use https://api.lordbase.com/e/v1/mcp/ as LordBase's Streamable HTTP endpoint. VS Code uses a servers object in .vscode/mcp.json; Cursor-compatible configurations use mcpServers. Start with read_workspaces, read_databases and read_backups, keep tokens out of Git and verify discovery before enabling management actions.
The endpoint is the same as for the web assistants: https://api.lordbase.com/e/v1/mcp/. The configuration format differs by client. These are configuration examples checked against client documentation, not a claim that every client version was exercised end to end.
Prepare a read-only token
In LordBase Settings, create a short-lived token with read_workspaces, read_databases and read_backups. Store it in your client's secret mechanism or a private local configuration excluded from Git. Your workspace role and LordBase plan still apply.
VS Code
VS Code uses servers and supports prompting for a secret in .vscode/mcp.json:
{
"inputs": [{"type":"promptString","id":"lordbase-token","description":"LordBase developer token","password":true}],
"servers": {
"lordbase": {
"type":"http",
"url":"https://api.lordbase.com/e/v1/mcp/",
"headers":{"Authorization":"Bearer ${input:lordbase-token}"}
}
}
}
Review server trust and available tools before use. Follow the VS Code MCP guide for your current version and organization policy.
Cursor-compatible configuration
In the client configuration documented for your version, a mcpServers object can connect the remote endpoint:
{
"mcpServers": {
"lordbase": {
"url":"https://api.lordbase.com/e/v1/mcp/",
"headers":{"Authorization":"Bearer YOUR_DEVELOPER_TOKEN"}
}
}
}
Replace the placeholder only in a private file. Do not commit a real token. Client naming, menu labels and supported authentication flows can change; check the documentation supplied with your installed version.
Claude Code
For an HTTP connection, Claude Code supports:
claude mcp add --transport http lordbase https://api.lordbase.com/e/v1/mcp/
Use the client's sign-in flow when offered; avoid putting secrets directly in shell history. See Claude Code's MCP documentation.
Verify before changing data
Ask to list workspaces, select one, list databases, then check health. The read-only MCP observations show actual protocol results from one connected account, including an analytics prerequisite that was missing.
If no tools appear, check the configuration key (servers versus mcpServers), URL and whether the client supports Streamable HTTP. For 401, check token expiry and revocation. For 403, check required scopes, membership and plan. read_databases supports browsing, but raw run_query needs write_databases; do not silently expand access to make a denied command work.
LordBase checks scopes and roles. Destructive annotations inform the client but do not impose the same confirmation behavior in every IDE. Passwords and connection strings stay out of MCP results.
