Devart MCP Server for PostgreSQL (ADO.NET)
自托管 MCP 服务器,通过 Devart dotConnect for PostgreSQL 为 AI 客户端提供具备架构感知能力的 PostgreSQL 读写访问。NuGet 上的免费 .NET 工具(Windows x64);需要 dotConnect 商业许可证(提供 30 天免费试用)。
文档
.NET 8.0 This package targets.NET 8.0. The package is compatible with this framework or higher.
{
"inputs": [
{
"type": "promptString",
"id": "server",
"description": "PostgreSQL host name or network address.",
"password": false,
"default": "localhost"
},
{
"type": "promptString",
"id": "port",
"description": "Port the PostgreSQL server listens on.",
"password": false,
"default": "5432"
},
{
"type": "promptString",
"id": "database",
"description": "Database to connect to.",
"password": false
},
{
"type": "promptString",
"id": "user",
"description": "PostgreSQL role to authenticate as.",
"password": false,
"default": "postgres"
},
{
"type": "promptString",
"id": "password",
"description": "Password for the role.",
"password": true
},
{
"type": "promptString",
"id": "license_key",
"description": "Devart dotConnect for PostgreSQL license key, from the Devart Customer Portal.",
"password": true
}
],
"servers": {
"Devart.Mcp.PostgreSql": {
"type": "stdio",
"command": "dnx",
"args": ["Devart.Mcp.PostgreSql@1.1.0", "--yes", "--", "run"],
"env": {
"DEVART_MCP_POSTGRESQL_CONNECTION": "Server=${input:server};Port=${input:port};Database=${input:database};User Id=${input:user};Password=${input:password};Unicode=True;License Key=${input:license_key};"
}
}
}
}
[!brand-info] Brand-info This package contains an MCP Server. The server can be used in VS Code by copying the generated JSON to your VS Code workspace's
.vscode/mcp.jsonsettings file.
dotnet tool install --global Devart.Mcp.PostgreSql --version 1.1.0
[!brand-info] Brand-info This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
if you are setting up this repo
dotnet tool install --local Devart.Mcp.PostgreSql --version 1.1.0
[!brand-info] Brand-info This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Devart.Mcp.PostgreSql&version=1.1.0
[!brand-warning] Brand-warning The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Devart.Mcp.PostgreSql --version 1.1.0
[!brand-warning] Brand-warning The NuGet Team does not provide support for this client. Please contact its maintainers for support.