neosql-mcp

neosql-mcp

Enables MCP hosts to use NeoSQL Desktop tools for database management, including querying, table operations, and code generation, through a local stdio MCP server.

Category
Visit Server

README

neosql-mcp

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]

Prerequisites

  • Node.js 20 or later.
  • NeoSQL Desktop installed on the same machine.
  • An MCP host that can launch stdio servers, such as Claude Code or Codex.
  • A NeoSQL project with MCP-enabled database connections and schemas.

Quick Start

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 Host Configuration

Claude Code .mcp.json

{
  "mcpServers": {
    "neosql": {
      "command": "npx",
      "args": [
        "-y",
        "neosql-mcp",
        "--project=YOUR_PROJECT_ID",
        "--default-connection=YOUR_CONNECTION_ID",
        "--default-schema=YOUR_SCHEMA"
      ]
    }
  }
}

Codex config.toml

[mcp_servers.neosql]
command = "npx"
args = [
  "-y",
  "neosql-mcp",
  "--project=YOUR_PROJECT_ID",
  "--default-connection=YOUR_CONNECTION_ID",
  "--default-schema=YOUR_SCHEMA",
]

Development Profile

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.

CLI Options

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.

Context Resolution

NeoSQL tools resolve project, connection, and schema in this order:

  1. Explicit arguments on the tool call.
  2. The Node-local context store.
  3. Empty context.

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:

  • listTables
  • getTableDetails
  • executeQuery
  • createTables
  • modifyTables

generateCode currently accepts a per-call schema override.

Available Tools

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.

Transport

neosql-mcp talks to NeoSQL Desktop through a deterministic local endpoint:

  • macOS: path.join(os.tmpdir(), 'neosql-mcp' + suffix + '.sock')
  • Windows: \\.\pipe\neosql-mcp + suffix

The 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.

Troubleshooting

NeoSQL Desktop was not found

Install 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 running

Start 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 respond

The app may still be starting, blocked, or running with a different profile. Confirm that the MCP config profile matches the Desktop profile.

Context-sensitive tools fail

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 package

Check 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.

Development

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured