-
Notifications
You must be signed in to change notification settings - Fork 3
mcp start
Note: This feature is available in dbvr Pro only.
mcp start - start an MCP server for a database connection.
dbvr mcp start [-hV]
[-p=<dbPassword>]
[--project=<projectIdOrName>]
[-u=<dbUser>]
[-auth=<authParams>]...
[-ext=<providerParams>]...
[-prop=<connectionParams>]...
[[-net=<handlerParams>]...
[-net-save-pwd=<savePassword>]]
(-ds=<existDataSourceIdOrName> |
-con=<connectionSpec>)
Tip: You can also use global options with this command.
Starts an MCP server for a specific database connection. The server runs in the foreground and communicates over stdio - the AI tool launches it as a subprocess.
When the server is running, the AI tool gets access to these tools:
| Tool | What it does |
|---|---|
getDatasourceInfo |
Returns the database type, version, and connection details |
listCatalogNames |
Lists available catalogs (databases) |
listSchemaNames |
Lists schemas in the datasource or a specific catalog |
listTableNames |
Lists tables in the datasource, catalog, or schema |
getTableDetails |
Returns DDL for one or more tables - columns, constraints, indexes |
executeSQL |
Executes a SQL query and returns results |
Tip: To get a ready-to-paste config snippet for your AI tool, use
mcp configuration.
Use connection settings to specify which database this command runs against.
Connect in one of these ways:
- use an existing datasource with
-dsor--datasource - provide a full connection specification with
-con,-ds-spec,-connect, or--datasource-specification
Include credentials, network handlers, and driver-specific properties if required.
For details on all connection settings, see Connection options.
Start a server using an existing datasource:
dbvr mcp start -ds=my-postgres
Start a server with an inline connection:
dbvr mcp start -con="driver=postgres-jdbc|host=localhost|port=5432|database=mydb" \
-u=admin \
-p=secret
- Getting started
- Reference
- Commands
- Connection options
- Databases support
- Administration
- About dbvr