Back to Home
joaoGabriel55 icon

MCP-SQL-Server

by joaoGabriel55

Overview

This server provides a natural language interface to query an SQLite database using a local large language model (Ollama) to convert questions into SQL queries, accessible via a chat-based web application.

Installation

Run Command
cd server && npm run start

Security Notes

CRITICAL: The server directly executes SQL queries generated by the Ollama LLM based on user input. This poses a significant SQL injection risk, as a malicious or improperly prompted LLM could generate harmful SQL commands (e.g., DROP TABLE, data manipulation) that would be executed against the database. There are no explicit sanitization or validation layers for the generated SQL before execution. The Ollama host and model are hardcoded, and the server runs on a fixed port. No hardcoded API keys or external secrets were found, but the direct execution of LLM-generated SQL makes it unsafe for environments with untrusted input.

Similar Servers

Stats

Interest Score9
Security Score2
Cost ClassHigh
Avg Tokens650
Stars1
Forks0
Last Update2025-12-17

Tags

AI ChatbotSQL Query GeneratorSQLite DatabaseOllama LLMReact Frontend