What is the difference between the query and uploadCsv tools?
`query` executes read-only SQL queries within a READ ONLY transaction; `uploadCsv` executes read and write queries within a READ AND WRITE transaction.
@Pratye
基本信息
A Model Context Protocol server that provides read and write access to PostgreSQL databases. This server enables LLMs to inspect database schemas and execute read and write queries.
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"postgres": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/postgres",
"postgresql://host.docker.internal:5432/mydb"
]
}
}
}Execute read-only SQL queries against the connected database
Upload and process a CSV file into database tables
MEC Postgres is a Model Context Protocol (MCP) server that provides read and write access to PostgreSQL databases. It enables LLMs to inspect database schemas and execute SQL queries.
Use with Claude Desktop by adding the server configuration to the mcpServers section of claude_desktop_config.json. The server runs via Docker and connects to a PostgreSQL database using a connection URL (e.g., postgresql://user:password@host:port/db-name). Replace the database name and credentials as needed.
`query` executes read-only SQL queries within a READ ONLY transaction; `uploadCsv` executes read and write queries within a READ AND WRITE transaction.
Use a PostgreSQL connection URL (e.g., `postgresql://user:password@host:port/db-name`) when running the Docker container.
Yes, username and password can be included in the PostgreSQL connection URL.
The server is distributed as a Docker image; Docker is required to run it.
A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.

Safety-first stdio MCP server with 38 tools for operating Docker-based local-ydb environments locally or over SSH.
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.

Local database MCP server: your agent sees a migration's impact before it runs, for PostgreSQL, MySQL, SQL Server and SQLite, with no database credentials.
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
评论