PolarDB PostgreSQL MCP Server
Environment Variables
- POLARDB_POSTGRESQL_HOST: Database host address
- POLARDB_POSTGRESQL_PORT: Database port
- POLARDB_POSTGRESQL_USER: Database user
- POLARDB_POSTGRESQL_PASSWORD: Database password
- POLARDB_POSTGRESQL_DBNAME: Database name
- POLARDB_POSTGRESQL_ENABLE_UPDATE: Enable update operation(default:false)
- POLARDB_POSTGRESQL_ENABLE_DELETE: Enable delete operation(default:false)
- POLARDB_POSTGRESQL_ENABLE_INSERT: Enable insert operation(default:false)
- POLARDB_POSTGRESQL_ENABLE_DDL: Enable ddl operation(default:false)
- SSE_BIND_HOST: The host address to bind for SSE mode
- SSE_BIND_PORT: The port to bind for SSE mode
- RUN_MODE: The run mode(sse|stdio),(default:sse)
Components
Tools
- execute_sql: execute sql
Resources
- polardb-postgresql://schemas: List all schemas for PolarDB PostgreSQL in the current database
Resource Templates
- polardb-postgresql://{schema}/tables: List all tables for a schema
- polardb-postgresql://{schema}/{table}/field: get the name,type and comment of the field in the table
- polardb-postgresql://{schema}/{table}/data: get data from the table,default limit 50 rows
Usage
Run with packages from PyPI
{
"mcpServers": {
"polardb-postgresql-mcp-server": {
"command": "uvx",
"args": [
"--from",
"polardb-postgresql-mcp-server",
"run_polardb_postgresql_mcp_server"
],
"env": {
"POLARDB_POSTGRESQL_HOST": "127.0.0.1",
"POLARDB_POSTGRESQL_PORT": "15001",
"POLARDB_POSTGRESQL_USER": "xxxx",
"POLARDB_POSTGRESQL_PASSWORD": "xxx",
"POLARDB_POSTGRESQL_DBNAME": "xxx",
"RUN_MODE": "stdio",
"POLARDB_POSTGRESQL_ENABLE_UPDATE": "false",
"POLARDB_POSTGRESQL_ENABLE_DELETE": "false",
"POLARDB_POSTGRESQL_ENABLE_INSERT": "false",
"POLARDB_POSTGRESQL_ENABLE_DDL": "false"
}
}
}
}
Metadata
Release files for polardb-postgresql-mcp-server 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| polardb_postgresql_mcp_server-1.1.0.tar.gz | 6.2 kB | Without provenance | Details for polardb_postgresql_mcp_server-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polardb_postgresql_mcp_server-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for polardb_postgresql_mcp_server-1.1.0-py3-none-any.whl |
Total release size: 12.6 kB
Release files / polardb_postgresql_mcp_server-1.1.0.tar.gz
| Download URL | polardb_postgresql_mcp_server-1.1.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9514cee7529b975ea426a262fec1d75a1f7e7d13a4cfc23f73c1b94383a43276
|
|
BLAKE2b-256 checksum How to use checksums |
d535461051764508434f11c9477cd5c7d350987c3b1df1fd77393ff7b1d473b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Release files / polardb_postgresql_mcp_server-1.1.0-py3-none-any.whl
| Download URL | polardb_postgresql_mcp_server-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9085f3fc211d11321c7d4276f382646f7d0c0ce32e4cb4d8b00f8bb7d6a75b99
|
|
BLAKE2b-256 checksum How to use checksums |
a9da367c179646d8646e8143c69825b99cabd932e8770f05cb4caaee7a0beda2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Security for polardb-postgresql-mcp-server 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.