Crate rmcp_postgres

Crate rmcp_postgres 

Source
Expand description

PostgreSQL MCP Server

A Model Context Protocol (MCP) server for PostgreSQL databases, built with rmcp. Provides tools for querying, inserting, updating, deleting data, and inspecting schemas.

§Example

use rmcp_postgres::PostgresServer;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let server = PostgresServer::new("host=localhost user=postgres dbname=mydb");
    // Use with rmcp ServiceExt trait
    Ok(())
}

Structs§

ColumnExistsParams
CountRowsParams
DeleteDataParams
ExecuteRawQueryParams
InsertParams
PostgresServer
PostgreSQL MCP Server
QueryParams
RelationshipsParams
SchemaParams
TableNameParams
TableSampleParams
UpdateDataParams