Skip to main content
Glama
CSOAI-ORG

Universal Database MCP Server

by CSOAI-ORG

Universeller Datenbank-MCP-Server

Von MEOK AI Labs | meok.ai

Verbinden Sie KI-Agenten mit jeder beliebigen SQL-Datenbank. Fragen Sie Daten ab, erkunden Sie Schemata, fügen Sie Zeilen ein und exportieren Sie Ergebnisse als CSV. Unterstützt SQLite (integriert), PostgreSQL und MySQL über eine einzige, einheitliche Schnittstelle.

Tools

Tool

Beschreibung

query_sql

Führt jede SQL-Abfrage mit Sicherheitsvalidierung aus

list_tables

Listet alle Tabellen in einer Datenbank auf

describe_table

Ruft Spaltennamen, Typen, Nullability und Zeilenanzahl ab

insert_row

Fügt eine Zeile mithilfe eines einfachen Schlüssel-Wert-Dictionaries ein

export_to_csv

Führt ein SELECT aus und speichert die Ergebnisse als CSV

Installation

# Core (SQLite support included)
pip install mcp

# PostgreSQL support
pip install psycopg2-binary

# MySQL support
pip install mysql-connector-python

Verwendung

Server starten

python server.py

Claude Desktop Konfiguration

{
  "mcpServers": {
    "database": {
      "command": "python",
      "args": ["/path/to/database-universal-mcp/server.py"]
    }
  }
}

Verbindungszeichenfolgen-Formate

Datenbank

Format

SQLite (Datei)

sqlite:///path/to/db.sqlite oder einfach /path/to/file.db

PostgreSQL

postgresql://user:pass@localhost:5432/mydb

MySQL

mysql://user:pass@localhost:3306/mydb

Beispielaufrufe

Tabellen in einer SQLite-Datenbank auflisten:

Tool: list_tables
Input: {"connection_string": "/Users/me/data/app.db"}
Output: {"tables": ["users", "orders", "products"], "count": 3, "db_type": "sqlite"}

Eine Tabelle beschreiben:

Tool: describe_table
Input: {"connection_string": "/Users/me/data/app.db", "table_name": "users"}
Output: {"columns": [{"name": "id", "type": "INTEGER", "primary_key": true}, {"name": "email", "type": "TEXT", "nullable": false}], "row_count": 1523}

Daten abfragen:

Tool: query_sql
Input: {"connection_string": "postgresql://admin:secret@localhost/myapp", "sql": "SELECT name, email FROM users WHERE created_at > '2026-01-01' LIMIT 10"}
Output: {"columns": ["name", "email"], "rows": [{"name": "Alice", "email": "alice@example.com"}, ...], "row_count": 10}

Eine Zeile einfügen:

Tool: insert_row
Input: {"connection_string": "/tmp/test.db", "table_name": "notes", "data": {"title": "Meeting notes", "body": "Discussed Q2 roadmap", "created_at": "2026-04-13"}}
Output: {"message": "Inserted 1 row into notes"}

Als CSV exportieren:

Tool: export_to_csv
Input: {"connection_string": "/Users/me/data/app.db", "sql": "SELECT * FROM orders WHERE total > 100"}
Output: {"output": "/tmp/export_20260413_143022.csv", "rows_exported": 47}

Sicherheit

  • Gefährliche Abfragen blockiert: DROP TABLE, TRUNCATE, DELETE ohne WHERE, GRANT/REVOKE werden abgelehnt

  • Schreibschutz: INSERT/UPDATE/DELETE erfordern explizit allow_write=True

  • Zeilenlimit: Die kostenlose Stufe gibt maximal 1000 Zeilen pro Abfrage zurück

  • Keine gespeicherten Anmeldedaten: Verbindungszeichenfolgen werden pro Aufruf verwendet und niemals dauerhaft gespeichert

Preisgestaltung

Stufe

Limit

Preis

Kostenlos

30 Aufrufe/Tag, max. 1000 Zeilen

$0

Pro

Unbegrenzt + Verbindungspooling + Batch-Operationen

$12/Monat

Enterprise

Benutzerdefiniert + Audit-Logging + VPC-Unterstützung

Kontaktieren Sie uns

Lizenz

MIT

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CSOAI-ORG/database-universal-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server