← PostgreSQL MCP Server (Read-Write)
1.0.1npm · mcp-server-postgresql-rw · current release
Observed 2026-08-22T22:12:02.614Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2025-06-18.
{
"tools": {}
}| Tool | Category | Annotations | Risk |
|---|---|---|---|
delete执行 DELETE 语句,从表中删除数据。Input schema{
"type": "object",
"properties": {
"sql": {
"type": "string",
"description": "要执行的 DELETE SQL 语句"
}
},
"required": [
"sql"
]
} | — | — · — | — |
execute执行任意 SQL 语句(查询、DML 或 DDL)。这是一个通用工具,可以执行任何 SQL 操作。Input schema{
"type": "object",
"properties": {
"sql": {
"type": "string",
"description": "要执行的 SQL 语句"
}
},
"required": [
"sql"
]
} | — | — · — | — |
execute_ddl执行 DDL(数据定义语言)语句,包括 CREATE、ALTER、DROP 等操作。用于创建、修改或删除数据库对象(表、索引、视图等)。Input schema{
"type": "object",
"properties": {
"sql": {
"type": "string",
"description": "要执行的 DDL SQL 语句(CREATE、ALTER、DROP 等)"
}
},
"required": [
"sql"
]
} | — | — · — | — |
insert执行 INSERT 语句,向表中插入新数据。Input schema{
"type": "object",
"properties": {
"sql": {
"type": "string",
"description": "要执行的 INSERT SQL 语句"
}
},
"required": [
"sql"
]
} | — | — · — | — |
query执行 SELECT 查询语句,返回查询结果。用于读取数据。Input schema{
"type": "object",
"properties": {
"sql": {
"type": "string",
"description": "要执行的 SELECT SQL 查询语句"
}
},
"required": [
"sql"
]
} | — | — · — | — |
update执行 UPDATE 语句,更新表中的数据。Input schema{
"type": "object",
"properties": {
"sql": {
"type": "string",
"description": "要执行的 UPDATE SQL 语句"
}
},
"required": [
"sql"
]
} | — | — · — | — |