coradb-mcp-server

v1.0.1
@coradb/coradb-mcp-server Checked 2 hours ago Published 11 days ago

MCP server for CoraDB: read the schema and run SELECTs and other statements, one login and one transaction per call.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

connection_info CoraDB connection info

Log in to a CoraDB database and report the login used (never the password), the engine version and this server's settings. Use it to check that a database is reachable with a given login.

ParameterTypeDescription
database *stringThe database to open.
hoststringCoraDB broker host. Default: localhost.
passwordstringPassword of that user. Default: empty.
portintegerCoraDB broker port. Default: 33000.
userstringDatabase user. Default: dba.

describe_schema Describe the CoraDB schema

The tables, views, vertex (node) tables and edge tables of a database with their columns, keys and indexes, read from the live catalog as the given user sees it. Give `object` for a single table. Read this before writing queries.

ParameterTypeDescription
database *stringThe database to open.
formatstringtext (default): CREATE-like summary. json: the CoraDB schema document.
hoststringCoraDB broker host. Default: localhost.
objectstringOne table, view, vertex or edge table to describe (case-insensitive).
passwordstringPassword of that user. Default: empty.
portintegerCoraDB broker port. Default: 33000.
refreshbooleanRead the catalog again instead of using the copy kept for a few minutes.
userstringDatabase user. Default: dba.

execute_select Run CoraDB SELECT statements

Run one SELECT, or several separated by ;, and return the columns (name, type, precision, scale) and rows exactly as the engine returns them. Works for relational SQL and graph queries (SELECT … FROM MATCH …). Each statement is compiled first and refused unless it is a SELECT; nothing is ever committed. Statements run in order and the first error stops the script.

ParameterTypeDescription
database *stringThe database to open.
sql *stringOne or more SELECT statements separated by ;.
hoststringCoraDB broker host. Default: localhost.
maxRowsintegerMost rows to return per SELECT (default 200, at most 5000). totalRows still reports the full count.
paramsarrayValues for the ? placeholders of a single statement, in order.
passwordstringPassword of that user. Default: empty.
portintegerCoraDB broker port. Default: 33000.
timeoutMsintegerTime limit for the whole call, in milliseconds (default 120000, at most 600000). When it runs out the running statement is cancelled on the server, the rest are skipped and everything is rolled back.
userstringDatabase user. Default: dba.

execute_sql Run CoraDB statements

Run any statements — INSERT, UPDATE, DELETE, MERGE, CREATE, ALTER, DROP, SELECT … — one or several separated by ;, in order, in one transaction. If every statement succeeds, the changes are committed; if any fails, nothing is saved. dryRun: true runs everything and then rolls it back, to see what would change. Returns the rows of each SELECT and the number of rows each other statement changed. COMMIT and ROLLBACK statements are refused: the call controls the transaction. Serial increments (AUTO_INCREMENT, NEXT_VALUE) are not undone by a rollback.

ParameterTypeDescription
database *stringThe database to open.
sql *stringOne or more statements separated by ;.
dryRunbooleantrue: run everything, then roll it back (nothing is saved). Default false: commit when every statement succeeds.
hoststringCoraDB broker host. Default: localhost.
maxRowsintegerMost rows to return per SELECT (default 200, at most 5000). totalRows still reports the full count.
paramsarrayValues for the ? placeholders of a single statement, in order.
passwordstringPassword of that user. Default: empty.
portintegerCoraDB broker port. Default: 33000.
timeoutMsintegerTime limit for the whole call, in milliseconds (default 120000, at most 600000). When it runs out the running statement is cancelled on the server, the rest are skipped and everything is rolled back.
userstringDatabase user. Default: dba.

explain_query Show a CoraDB query plan

The plan the CoraDB optimizer chooses for a SELECT (or for each SELECT of a script separated by ;), without running it.

ParameterTypeDescription
database *stringThe database to open.
sql *stringOne or more SELECT statements separated by ;.
hoststringCoraDB broker host. Default: localhost.
passwordstringPassword of that user. Default: empty.
portintegerCoraDB broker port. Default: 33000.
userstringDatabase user. Default: dba.