# Devart MCP Server for PostgreSQL (ADO.NET)

> Devart MCP Server for PostgreSQL (ADO.NET) is an open-source MCP server for databases. Schema-aware read/write access to PostgreSQL through Devart dotConnect ADO.NET data provider. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/devart-ai-connectivity/devart-mcp-server-postgresql
- **MCP Registry name:** com.devart/mcp-postgresql
- **Categories:** databases
- **Listing updated:** 2026-11-13

## About

Schema-aware read/write access to PostgreSQL through Devart dotConnect ADO.NET data provider.

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-postgresql --env DEVART_MCP_POSTGRESQL_CONNECTION='<DEVART_MCP_POSTGRESQL_CONNECTION>' -- dnx Devart.Mcp.PostgreSql --yes
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-postgresql": {
      "command": "dnx",
      "args": [
        "Devart.Mcp.PostgreSql",
        "--yes"
      ],
      "env": {
        "DEVART_MCP_POSTGRESQL_CONNECTION": "<DEVART_MCP_POSTGRESQL_CONNECTION>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-postgresql": {
      "command": "dnx",
      "args": [
        "Devart.Mcp.PostgreSql",
        "--yes"
      ],
      "env": {
        "DEVART_MCP_POSTGRESQL_CONNECTION": "<DEVART_MCP_POSTGRESQL_CONNECTION>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-postgresql": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Devart.Mcp.PostgreSql",
        "--yes"
      ],
      "env": {
        "DEVART_MCP_POSTGRESQL_CONNECTION": "<DEVART_MCP_POSTGRESQL_CONNECTION>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-postgresql": {
      "command": "dnx",
      "args": [
        "Devart.Mcp.PostgreSql",
        "--yes"
      ],
      "env": {
        "DEVART_MCP_POSTGRESQL_CONNECTION": "<DEVART_MCP_POSTGRESQL_CONNECTION>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-postgresql": {
      "command": "dnx",
      "args": [
        "Devart.Mcp.PostgreSql",
        "--yes"
      ],
      "env": {
        "DEVART_MCP_POSTGRESQL_CONNECTION": "<DEVART_MCP_POSTGRESQL_CONNECTION>"
      }
    }
  }
}
```

## FAQ

### Is Devart MCP Server for PostgreSQL (ADO.NET) free?

Yes. Devart MCP Server for PostgreSQL (ADO.NET) is open source, so you can use and self-host it for free.

### How do I add Devart MCP Server for PostgreSQL (ADO.NET) to Claude Code?

Run this command in your terminal: claude mcp add mcp-postgresql --env DEVART_MCP_POSTGRESQL_CONNECTION='<DEVART_MCP_POSTGRESQL_CONNECTION>' -- dnx Devart.Mcp.PostgreSql --yes

### What are the best alternatives to Devart MCP Server for PostgreSQL (ADO.NET)?

The closest alternatives to Devart MCP Server for PostgreSQL (ADO.NET) are Midplane, PlatypusDB, Lorebase, Sovaria and model2data studio.

## Alternatives

- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [PlatypusDB](https://ai-powered.com/mcp/platypusdb): PlatypusDB is an open-source MCP server for databases.
- [Lorebase](https://ai-powered.com/mcp/lorebase): Lorebase is an open-source MCP server for knowledge and memory.
- [Sovaria](https://ai-powered.com/mcp/sovaria): Sovaria is a freemium MCP server for databases.
- [model2data studio](https://ai-powered.com/mcp/model2data-studio): model2data studio is a freemium MCP server for databases.
- [semlayer](https://ai-powered.com/mcp/semlayer): semlayer is a free MCP server for databases.
- [bricksentry](https://ai-powered.com/mcp/bricksentry): bricksentry is an open-source MCP server for databases.
- [MCP Toolbox for Databases](https://ai-powered.com/mcp/mcp-toolbox-for-databases-2): MCP Toolbox for Databases is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/devart-mcp-server-for-postgresql-ado-net
