Database MCP
Allows natural language interaction with MariaDB databases, enabling users to perform queries, explore database schemas, and visualize data.
Provides a natural language interface for MySQL databases, supporting schema exploration, data visualization, and instant query execution.
Enables querying and schema analysis of PostgreSQL databases through natural language commands and provides tools for data visualization.
Allows users to interact with SQLite databases using natural language, providing capabilities for schema browsing and data analysis.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Database MCPList the top 5 customers by total revenue this month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Database MCP - Natural Language Database Interface
A modern web application that lets you interact with SQL databases using natural language, powered by the Model Context Protocol (MCP).
Features
Natural Language Queries: Ask questions in plain English, get results instantly
Multi-Database Support: PostgreSQL, MySQL, MariaDB, MSSQL, SQLite
Rich Visualizations: Tables, charts, and formatted code blocks
Schema Explorer: Browse database structure with an intuitive sidebar
Dark & Light Modes: Modern design with light/dark theme support
Responsive Design: Works on desktop, tablet, and mobile
Related MCP server: SQLite MCP Server
Prerequisites
Node.js 18+
A database (PostgreSQL, MySQL, MSSQL, or SQLite)
LLM API key (Groq, OpenAI, or compatible endpoint)
Setup & Installation
1. Install Dependencies
npm install2. Configure Environment
Copy .env.example to .env and update with your credentials:
cp .env.example .envThen edit .env with:
LLM_API_URL: Your LLM API endpoint (e.g., Groq, OpenAI)LLM_API_KEY: Your API keyLLM_MODEL: Model name (e.g., mixtral-8x7b-32768)ENCRYPTION_KEY: A 32-character random key for production
3. Run Development Server
npm run devThe application will start at http://localhost:3000
Available Scripts
npm run dev # Development with hot reload
npm run build # Build TypeScript
npm start # Run production build
npm run demo:setup # Create demo database
npm run demo:run # Run with demo data
npm test # Run testsSupported Databases
Database | Status |
PostgreSQL | ✅ |
MySQL / MariaDB | ✅ |
SQL Server | ✅ |
SQLite | ✅ |
Architecture
Web UI → Chat → MCP Tools → Scanner → DatabaseKey Components:
Frontend (
public/): Interactive UI with theme supportServer (
src/server.ts): Express API and MCPTools (
src/mcp/): MCP protocol implementationProviders (
src/providers/): Database adaptersScanner (
src/scanner/): Database schema analysisEncryption (
src/utils/encryption.ts): Credential encryption
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Ask data questions in natural language. Get SQL, insights, and charts from your databases.
Ask questions in plain language, get answers from your business database. No SQL required.
Your Supabase account in natural language: run SQL, apply migrations, manage tables, storage, edge f
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables natural language data exploration and visualization for PostgreSQL databases. It allows users to convert questions into SQL queries and interact with data through a Streamlit web interface featuring automated chart generation.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with SQLite databases by executing read and write queries, listing tables, and inspecting schemas. It provides a secure, local interface for database management and data retrieval through the Model Context Protocol.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to query databases via natural language using the Model Context Protocol, with automatic schema discovery, SQL query execution, and read-only safety checks.-
- AlicenseNot gradedqualityDmaintenanceTranslates natural language to SQL/GraphQL queries and executes them, enabling AI agents to interact with databases through the Model Context Protocol.1Apache 2.0