# NeoSQL MCP [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/unvus/neosql-mcp  
**GitHub Stars:** 2  
**npm Downloads (last month):** 2659  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/neosql-mcp

## Description
Schemas, SQL, ERDs, and codegen for PostgreSQL, MySQL, Oracle, SQLite, and more via NeoSQL Desktop.

## Tools
Capabilities this server exposes over MCP:

- **ping** — Returns `pong` for a lightweight MCP health check.
- **get-mcp-session-id** — Diagnostic tool that returns the upstream session id used by this process.
- **list-projects** — Lists the projects you can open in Desktop. Works without an open project.
- **create-project** — Creates a local project with one design-only connection for a new design, after you approve it in Desktop.
- **list-connections** — Lists MCP-enabled NeoSQL connections and schemas for the current project.
- **get-context-help** — Explains active-project Default and explicit target usage.
- **list-tables** — Lists tables.
- **get-table-details** — Returns columns, keys, indexes, and related table metadata. NeoSQL virtual relations come in a separate `virtualRelations` list.
- **erd-create-tables** — Adds virtual tables to an ERD without changing the database.
- **erd-modify-tables** — Modifies virtual ERD table models without changing the database, including NeoSQL virtual relations (never DDL). Virtual relations need NeoSQL Desktop newer than 4.3.0; with an older app nothing is sent and the tool asks for an update.
- **execute-query** — Executes SQL, including DDL.
- **generate-code** — Generates and saves source files for specified tables using template packs configured in Project Settings. Requires template packs, required variables, and an output folder (Location). May overwrite existing files without an additional confirmation dialog.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "neosql-mcp": {
    "command": "npx",
    "args": ["-y","neosql-mcp"]
  }
}
```

## Documentation

## What NeoSQL MCP does

NeoSQL MCP connects an MCP host to NeoSQL Desktop rather than connecting directly to a database. Through the Desktop application, agents can work with projects, MCP-enabled connections, schemas, tables, and table metadata. Supported database systems include PostgreSQL, Supabase, MySQL, MariaDB, Oracle, SQL Server, SQLite, H2, and Databricks, with connection behavior handled by NeoSQL Desktop.

The server is useful when an agent needs to inspect an existing schema before writing code, run SQL against a configured connection, model ERD changes without touching the database, or generate files from database tables. It is not a standalone database server, database command-line client, or replacement for NeoSQL Desktop.

## How it works

The package runs as a local stdio MCP server, normally launched with `npx`. It delegates database and application operations to a running NeoSQL Desktop process using JSON-RPC over a local macOS Unix domain socket or Windows named pipe. This transport does not open a TCP port, and its endpoint cannot be changed through environment variables or configuration files.

Database credentials and connection settings remain configured in NeoSQL Desktop. Access is governed by Desktop’s MCP Access Control settings, while schema information and query results are returned to the MCP host. The server can list available projects and connections, use the selected Desktop project, or target a project with the `--project-id` option.

## Setup and configuration

Run the server without a global installation:

```bash
npx -y neosql-mcp
```

The host machine must run macOS or Windows, have Node.js 20 or later, and have NeoSQL Desktop installed. A Desktop project with MCP-enabled database connections and schemas is also required.

MCP hosts configure the command as a stdio server. The repository documents configurations for Claude Code, Codex, Gemini CLI, and Cursor. Claude Code and Claude Desktop Cowork can also load the package through the NeoSQL MCP plugin. When using a manual configuration, add `--project-id=<id>` to the command arguments to require a particular project; the value must be the project ID, not its display name.

## Tools and capabilities

Available operations include:

- Check connectivity with `ping` and inspect the upstream session ID with `get-mcp-session-id`.
- List projects, create a local design-only project, and inspect MCP-enabled connections and schemas.
- List tables and retrieve columns, keys, indexes, and related table metadata.
- Execute SQL, including DDL, through `execute-query`.
- Add or modify virtual ERD tables with `erd-create-tables` and `erd-modify-tables` without changing the database.
- Generate and save source files for selected tables using template packs, required variables, and an output location configured in Project Settings.
- Retrieve guidance about active-project defaults and explicit project targeting with `get-context-help`.

## Limitations and notes

NeoSQL Desktop must handle sign-in, project access, confirmations, and database connections. Unsaved Desktop changes can prevent project navigation. Project targeting requires a Desktop version that supports it; operations fail if the project changes during preparation or no longer matches the requested target.

`execute-query` can run DDL, and `generate-code` can write files. Generated files may overwrite existing files without another confirmation dialog, so review agent requests and Desktop access controls before enabling these operations. The local transport protects communication between the MCP process and Desktop, but the MCP host’s handling of returned schema data and query results remains outside that boundary.

_Full upstream README: https://allmcps.com/mcp/neosql-mcp/readme_

