mapeg-postgres-mcp

v2.0.0
mapeg-postgres-mcp Checked 8 hours ago Published 2 months ago

PostgreSQL MCP server for Model Context Protocol

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

execute_sql SQL çalıştır

Execute a SQL statement. SELECTs get a LIMIT if they have none; writes are confirmed with the user first, and refused outright in read-only mode.

ParameterTypeDescription
sql *stringSQL statement to execute.
limitintegerRow limit added to a SELECT that has no LIMIT.

natural_language_query Doğal dil sorgusu

Answer a handful of fixed questions about the database (tables, users, schemas, database info) without writing SQL. Anything else: use execute_sql.

ParameterTypeDescription
query *stringQuestion in Turkish or English.

describe_table Tabloyu tanımla

Get a table's columns, row count and on-disk size.

ParameterTypeDescription
table_name *stringTable as 'schema.table', or just the table name.

smart_query Şema bağlamı getir

Return the public schema's tables and columns as context for answering a question. It does not write or run SQL — read the context, then use execute_sql.

ParameterTypeDescription
question *stringYour question about the data.

explain_query Sorgu planını göster

Show a query's execution plan with EXPLAIN. With analyze=true the query is actually run, so do not analyze a statement that writes.

ParameterTypeDescription
sql *stringSQL query to explain.
analyzebooleanRun the query to get real timings. False gives the planner's estimate without touching any data.
buffersbooleanInclude buffer usage. Only meaningful with analyze=true.
formatstringPlan output format.

get_query_history Sorgu geçmişi

Recent queries run against this database from this workspace, with timings, statuses and errors.

ParameterTypeDescription
limitintegerHow many entries to return.
statusOnly successes, or only failures.
tool_namestringOnly entries from this tool, e.g. 'execute_sql'.