# DataNexa [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/MingoZacwu/DataNexa  
**GitHub Stars:** 28  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/datanexa

## Description
DataNexa is a local, read-only database MCP gateway for AI agents. It routes SQLite, MySQL, PostgreSQL, and any JDBC-compatible database through a single localhost endpoint, enforces read-only access via SQL AST validation with row, time, and connection limits, and keeps a local audit trail of every query.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/MingoZacwu/DataNexa), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/MingoZacwu/DataNexa.git
```

2. Run:

```sh
cd DataNexa
```

3. Configure:

```sh
corepack enable
```

4. Install:

```sh
corepack prepare pnpm@9 --activate
```

5. Install:

```sh
pnpm install --frozen-lockfile
```

6. Run:

```sh
pnpm run build:jdbc-sidecar
```

## Documentation

## What DataNexa does

DataNexa provides a local, read-only database gateway for MCP-compatible AI clients. It groups multiple database connections behind one local MCP service, so an agent can access enabled databases without a separate MCP configuration for each one.

Native connection support covers SQLite, MySQL, and PostgreSQL. JDBC support is available as a technical preview for additional database systems: the connection uses a JDBC URL and a driver installed from Maven. JDBC connections are subject to the same read-only controls and audit handling as the native connections.

The desktop application is built with Tauri, React, and Rust. Prebuilt installers and executables are available from the project's Releases page.

## How it works

After a database connection is configured and tested, the local MCP service can be started from the application. An MCP client is then configured with the connection details generated by DataNexa. The agent can use the enabled database tools through that local service.

Before a query runs, DataNexa validates its SQL syntax tree and blocks statements that are not considered read-only. It also applies maximum result-row, query-time, and connection-pool limits. Bearer token authentication can protect access to the MCP endpoint, with manual token rotation and automatic access-token circuit breaking available as controls.

Each data access produces a local audit record containing the SQL, execution time, called tool, and result status. Audit retention can be limited by a configured number of days, and SQL literals can be redacted.

## Setup and configuration

For normal use, download the package for the target operating system from Releases, launch the application, and complete these steps:

1. Create a database connection, preferably using a database-side read-only account.
2. Test the connection to verify credentials, network access, and permissions.
3. Start the local service from the MCP service page.
4. Copy the generated agent configuration into an MCP-compatible client.

Source builds require Git, Node.js 20 or newer, pnpm 9, Rust stable, and the system dependencies required by Tauri 2. JDBC sidecar builds additionally require Java SE 21 and Maven 3.9. Run `pnpm install --frozen-lockfile`, build the JDBC sidecar with `pnpm run build:jdbc-sidecar`, and start development with `pnpm run dev:app`. Portable binaries and installers can be built with the corresponding `pnpm` scripts. Builds produce native applications for the platform on which they run.

Database passwords are stored in the operating system credential store rather than ordinary configuration files. Connection export files contain plaintext database passwords and require restricted handling.

## Tools and capabilities

- Discover database tables and inspect field descriptions.
- Sample data from configured databases.
- Execute read-only SQL queries.
- Inspect query execution plans.
- Manage and test database connections.
- Enable or disable individual MCP tools.
- Import and export connection settings.
- Inspect local audit records and configure retention behavior.
- Apply row, execution-time, and connection-count limits.

## Limitations and notes

Read-only SQL validation reduces risk but is not an absolute security boundary. Use a dedicated least-privilege database account, restrict sensitive tables and fields at the database or network level, keep backups, and avoid treating DataNexa as the only security control. Bearer tokens should not be shared with untrusted applications.

JDBC support is a technical preview and requires a suitable driver and Java runtime. The packaged application does not include a Java runtime; the application can download a DataNexa-managed runtime or use an externally installed one when JDBC is needed.

The application is intended to run locally, and each operating-system build must be produced on its corresponding platform. DataNexa is an independent open-source project and is not an official product of the database vendors or MCP clients it can connect through.

_Full upstream README: https://allmcps.com/mcp/datanexa/readme_

