# NeoSQL MCP

> NeoSQL MCP is an open-source MCP server for databases. Give Claude Code, Codex and other MCP hosts your database schema through NeoSQL Desktop. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Windows, CLI
- **Website:** https://neosql.unvus.com
- **Repository:** https://github.com/unvus/neosql-mcp
- **MCP Registry name:** io.github.unvus/neosql-mcp
- **Categories:** databases, developer tools
- **Listing updated:** 2026-11-14

## About

neosql-mcp is a thin stdio server that hands database work to a running NeoSQL Desktop app on the same machine. It talks to the app over a Unix socket on macOS or a named pipe on Windows, opens no TCP ports, and needs no database credentials in the host config. Connections and schemas you already set up in the desktop app are reused.

Through it an assistant can read live schema, create and modify tables so the changes land in both the ERD and the database, and generate code. Access follows the app's MCP Access Control settings. The README warns that execute-query can run DDL and generate-code can write files, so requested operations and access settings deserve a review.

It needs Node.js 20 or later and NeoSQL Desktop. Supported databases include PostgreSQL, Supabase, MySQL, MariaDB, Oracle, SQL Server, SQLite, H2 and Databricks.

## Features

- **Desktop-backed:** Delegates database and UI work to a running NeoSQL Desktop app.
- **Local-only channel:** Uses a Unix socket or named pipe and opens no TCP ports.
- **No credentials in host config:** Connections are configured once in the desktop app.
- **Schema and ERD sync:** Table changes made from chat apply to the ERD and the database.
- **Code generation:** Generates source code from table schemas.
- **Many databases:** Works with each DBMS the desktop app connects to.

## Good for

- Let an assistant read real table definitions before writing queries
- Create a table from chat and update the ERD
- Generate entity or data-access code from a schema
- Run a query in a scoped connection
- Keep one database setup for several MCP hosts

## Install

### Claude Code (Terminal)

```sh
claude mcp add neosql-mcp -- npx -y neosql-mcp
```

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `execute-query`: Run SQL, including DDL, through NeoSQL Desktop.
- `generate-code`: Generate source code from table schemas and write files.

## FAQ

### Do I need NeoSQL Desktop?

Yes. The package is not a standalone database server and depends on a running desktop app.

### Which operating systems?

macOS and Windows.

### Does it open network ports?

No. Communication stays on the local machine over a socket or pipe.

### Can it change my database?

execute-query can run DDL, so review requests and the desktop access settings.

### Is NeoSQL MCP free?

Yes. NeoSQL MCP is open source, so you can use and self-host it for free.

### How do I add NeoSQL MCP to Claude Code?

Run this command in your terminal: claude mcp add neosql-mcp -- npx -y neosql-mcp

### What are the best alternatives to NeoSQL MCP?

The closest alternatives to NeoSQL MCP are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/neosql-mcp
