coradb-mcp-server
v1.0.1MCP 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.
| Parameter | Type | Description |
|---|---|---|
database * | string | The database to open. |
host | string | CoraDB broker host. Default: localhost. |
password | string | Password of that user. Default: empty. |
port | integer | CoraDB broker port. Default: 33000. |
user | string | Database 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.
| Parameter | Type | Description |
|---|---|---|
database * | string | The database to open. |
format | string | text (default): CREATE-like summary. json: the CoraDB schema document. |
host | string | CoraDB broker host. Default: localhost. |
object | string | One table, view, vertex or edge table to describe (case-insensitive). |
password | string | Password of that user. Default: empty. |
port | integer | CoraDB broker port. Default: 33000. |
refresh | boolean | Read the catalog again instead of using the copy kept for a few minutes. |
user | string | Database 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.
| Parameter | Type | Description |
|---|---|---|
database * | string | The database to open. |
sql * | string | One or more SELECT statements separated by ;. |
host | string | CoraDB broker host. Default: localhost. |
maxRows | integer | Most rows to return per SELECT (default 200, at most 5000). totalRows still reports the full count. |
params | array | Values for the ? placeholders of a single statement, in order. |
password | string | Password of that user. Default: empty. |
port | integer | CoraDB broker port. Default: 33000. |
timeoutMs | integer | Time 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. |
user | string | Database 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.
| Parameter | Type | Description |
|---|---|---|
database * | string | The database to open. |
sql * | string | One or more statements separated by ;. |
dryRun | boolean | true: run everything, then roll it back (nothing is saved). Default false: commit when every statement succeeds. |
host | string | CoraDB broker host. Default: localhost. |
maxRows | integer | Most rows to return per SELECT (default 200, at most 5000). totalRows still reports the full count. |
params | array | Values for the ? placeholders of a single statement, in order. |
password | string | Password of that user. Default: empty. |
port | integer | CoraDB broker port. Default: 33000. |
timeoutMs | integer | Time 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. |
user | string | Database 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.
| Parameter | Type | Description |
|---|---|---|
database * | string | The database to open. |
sql * | string | One or more SELECT statements separated by ;. |
host | string | CoraDB broker host. Default: localhost. |
password | string | Password of that user. Default: empty. |
port | integer | CoraDB broker port. Default: 33000. |
user | string | Database user. Default: dba. |