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.
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:
- Explicit arguments on the tool call.
- The Node-local context store.
- 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:
listTablesgetTableDetailsexecuteQuerycreateTablesmodifyTables
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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。