loading…
Search for a command to run...
loading…
Enables MCP hosts to use NeoSQL Desktop tools for database management, including querying, table operations, and code generation, through a local stdio MCP serv
Enables MCP hosts to use NeoSQL Desktop tools for database management, including querying, table operations, and code generation, through a local stdio MCP server.
neosql-mcp is a local stdio MCP server that lets MCP hosts use NeoSQL Desktop
tools through npx.
It is not a standalone database server, database CLI, or replacement for NeoSQL Desktop. The package runs inside the MCP host process tree, exposes NeoSQL tools over standard MCP stdio, and delegates database/UI work to a running NeoSQL Desktop app through JSON-RPC over HTTP on a macOS Unix Domain Socket or Windows Named Pipe.
[MCP host] -- stdio MCP --> [neosql-mcp]
-- JSON-RPC over HTTP on UDS/Named Pipe --> [NeoSQL Desktop]
No global install is required. Configure your MCP host to run the package with npx.
npx -y neosql-mcp \
--project=YOUR_PROJECT_ID \
--default-connection=YOUR_CONNECTION_ID \
--default-schema=YOUR_SCHEMA
The process is a stdio MCP server, so running the command directly in a terminal may look like it is waiting for input. That is expected.
.mcp.json{
"mcpServers": {
"neosql": {
"command": "npx",
"args": [
"-y",
"neosql-mcp",
"--project=YOUR_PROJECT_ID",
"--default-connection=YOUR_CONNECTION_ID",
"--default-schema=YOUR_SCHEMA"
]
}
}
}
config.toml[mcp_servers.neosql]
command = "npx"
args = [
"-y",
"neosql-mcp",
"--project=YOUR_PROJECT_ID",
"--default-connection=YOUR_CONNECTION_ID",
"--default-schema=YOUR_SCHEMA",
]
prod is the default profile and does not need to be passed explicitly. Use a
non-production profile only when NeoSQL Desktop is also running with the same profile.
{
"mcpServers": {
"neosql-dev": {
"command": "npx",
"args": ["-y", "neosql-mcp", "--profile=dev"]
}
}
}
Supported profiles are prod, dev, local, and stage.
| Option | Description |
|---|---|
| `--profile=<prod | dev |
--project=<value> |
Sets the default NeoSQL project id for tool calls. |
--default-connection=<value> |
Sets the default connection id. Values are kept as strings. |
--default-schema=<value> |
Sets the default schema name. |
Use the --key=value form in MCP host config. Space-separated forms such as
--project value are intentionally not supported.
NeoSQL tools resolve project, connection, and schema in this order:
The context store is initialized from CLI options and can later be changed with the process only by restarting the MCP server with different CLI options.
Tools that accept per-call connectionId and schema overrides:
listTablesgetTableDetailsexecuteQuerycreateTablesmodifyTablesgenerateCode currently accepts a per-call schema override.
| Tool | Purpose |
|---|---|
ping |
Returns pong for a lightweight MCP health check. |
listConnections |
Lists MCP-enabled NeoSQL connections and schemas for the current project. |
getContextHelp |
Explains how to find and configure NeoSQL context values. |
listTables |
Lists tables for the selected connection/schema. |
getTableDetails |
Returns columns, keys, indexes, and related table metadata. |
executeQuery |
Executes non-DDL SQL using the selected context. |
createTables |
Requests table creation through NeoSQL Desktop. |
modifyTables |
Requests table modification through NeoSQL Desktop. |
generateCode |
Generates code from selected database tables. |
getMcpSessionId |
Diagnostic tool that returns the upstream session id used by this process. |
neosql-mcp talks to NeoSQL Desktop through a deterministic local endpoint:
path.join(os.tmpdir(), 'neosql-mcp' + suffix + '.sock')\\.\pipe\neosql-mcp + suffixThe suffix is empty for prod and -dev, -local, or -stage for non-production
profiles.
The package does not discover TCP ports, read endpoint config files, or use environment variables to override the upstream endpoint.
NeoSQL Desktop was not foundInstall NeoSQL Desktop first. On macOS, neosql-mcp currently checks the standard
/Applications and ~/Applications locations. On Windows, it checks the per-user
NSIS uninstall registry entry under HKCU.
NeoSQL Desktop is not runningStart NeoSQL Desktop, wait for it to finish loading, and run the tool again. When
possible, neosql-mcp requests OS-level app activation before returning this state.
NeoSQL Desktop did not respondThe app may still be starting, blocked, or running with a different profile. Confirm that the MCP config profile matches the Desktop profile.
Run listConnections or getContextHelp, then check that --project,
--default-connection, and --default-schema match an MCP-enabled connection/schema.
npx cannot find or run the packageCheck that the MCP host can access npx, that Node.js is 20 or later, and that each CLI
option is a separate item in the MCP host args array.
npm ci
npm run build
npm test
For local MCP host testing, build and link the binary:
npm run build
npm link
neosql-mcp --profile=dev
Run in your terminal:
claude mcp add neosql-mcp -- npx