mcp_psql_manager
Manage PostgreSQL databases securely with automated operations: quick queries, table descriptions, data insertions, updates, and deletions. Includes AES-256-CBC encryption, SQL injection protection, and input validation.
Instructions
🐘 PostgreSQL Manager - безопасные операции с базой данных: setup_profile, list_profiles, quick_query, show_tables, describe_table, sample_data, insert_data, update_data, delete_data, database_info. Шифрование AES-256-CBC, защита от SQL injection, валидация входных данных.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | Действие PostgreSQL | |
data | No | Данные для insert/update | |
database | No | Имя базы данных | |
host | No | Хост PostgreSQL | |
limit | No | Лимит записей | |
password | No | Пароль PostgreSQL | |
port | No | Порт PostgreSQL | |
profile_name | No | Имя профиля подключения (по умолчанию 'default') | |
sql | No | SQL запрос | |
table_name | No | Имя таблицы | |
username | No | Имя пользователя PostgreSQL | |
where | No | WHERE условие |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "Действие PostgreSQL",
"enum": [
"setup_profile",
"list_profiles",
"quick_query",
"show_tables",
"describe_table",
"sample_data",
"insert_data",
"update_data",
"delete_data",
"database_info"
],
"type": "string"
},
"data": {
"description": "Данные для insert/update",
"type": "object"
},
"database": {
"description": "Имя базы данных",
"type": "string"
},
"host": {
"description": "Хост PostgreSQL",
"type": "string"
},
"limit": {
"description": "Лимит записей",
"type": "integer"
},
"password": {
"description": "Пароль PostgreSQL",
"type": "string"
},
"port": {
"description": "Порт PostgreSQL",
"type": "integer"
},
"profile_name": {
"description": "Имя профиля подключения (по умолчанию 'default')",
"type": "string"
},
"sql": {
"description": "SQL запрос",
"type": "string"
},
"table_name": {
"description": "Имя таблицы",
"type": "string"
},
"username": {
"description": "Имя пользователя PostgreSQL",
"type": "string"
},
"where": {
"description": "WHERE условие",
"type": "string"
}
},
"required": [
"action"
],
"type": "object"
}