DataNexa logo

DataNexa

Local read-only MCP gateway for SQLite, MySQL, PostgreSQL, and JDBC databases with query controls and audit records.

Install DataNexa

Run the project’s own setup commands, in order.

Setup steps from the project

DataNexa installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/MingoZacwu/DataNexa.git
    
  2. 2. Run
    cd DataNexa
    
  3. 3. Configure
    corepack enable
    
  4. 4. Install
    corepack prepare pnpm@9 --activate
    
  5. 5. Install
    pnpm install --frozen-lockfile
    
  6. 6. Run
    pnpm run build:jdbc-sidecar
    

Overview

DataNexa is a local MCP gateway that gives AI agents one controlled endpoint for SQLite, MySQL, PostgreSQL, and JDBC-compatible databases. It exposes schema discovery, field descriptions, data sampling, read-only SQL, and query-plan tools while checking SQL syntax trees and enforcing row, time, and connection limits. Bearer token authentication, emergency disabling, tool controls, credential storage, and local audit records support a more controlled database access workflow. Use it when several databases need to be available through one MCP configuration or when agent queries require local oversight.

Use cases

  • Route several database connections through one MCP configuration
  • Inspect schemas and sample records with an AI agent
  • Run bounded read-only SQL analysis
  • Review agent database activity through local audit records
  • Connect preview-supported databases through JDBC

Key features

  • SQLite, MySQL, and PostgreSQL connections
  • Technical-preview JDBC connectivity
  • SQL AST read-only validation
  • Row, query-time, and connection limits
  • Bearer token authentication and token controls
  • Local query auditing with retention and literal redaction

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

8/8 checks healthy over the last 31d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars28Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.

How DataNexa works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about DataNexa

DataNexa is an MCP server that connects AI agents to local SQLite, MySQL, PostgreSQL, and JDBC-compatible databases through one controlled endpoint. Its main tools discover tables and fields, sample data, run read-only SQL, and inspect query plans, with query limits, authentication, and local audit records.

Download the package for your operating system from the project's Releases page, create and test a database connection, start the local MCP service, and add the copied client configuration. Source builds require Node.js 20+, pnpm 9, Rust stable, and Tauri system dependencies.

DataNexa natively supports SQLite, MySQL, and PostgreSQL. JDBC support is available as a technical preview for additional databases when you provide a Maven-installed JDBC driver and JDBC URL.

DataNexa enforces read-only access by validating SQL syntax trees before execution and blocking non-read-only statements. You should still use a least-privilege database account and additional database, network, and backup controls because this policy is not an absolute security boundary.

Yes, DataNexa provides a local MCP service and generated client configuration for MCP-compatible applications. The setup flow starts the service in the desktop application, after which you add its configuration to the client you use.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDataNexa AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/datanexa?style=directory)](https://allmcps.com/mcp/datanexa)
HTML Embed
<a href="https://allmcps.com/mcp/datanexa"><img src="https://allmcps.com/api/badge/datanexa?style=directory" alt="DataNexa on AllMCPs" /></a>