[package]
edition = "2024"
rust-version = "1.88"
name = "postgres-mcp-readonly"
version = "0.1.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Read-only MCP server for PostgreSQL and TimescaleDB"
readme = "README.md"
keywords = [
"mcp",
"postgres",
"timescaledb",
"read-only",
"ai",
]
categories = [
"database",
"command-line-utilities",
]
license = "MIT"
repository = "https://github.com/matpb/postgres-mcp-rs"
[lib]
name = "postgres_mcp"
path = "src/lib.rs"
[[bin]]
name = "postgres-mcp"
path = "src/main.rs"
[[test]]
name = "config"
path = "tests/config.rs"
[[test]]
name = "credential_exposure"
path = "tests/credential_exposure.rs"
[[test]]
name = "docs"
path = "tests/docs.rs"
[[test]]
name = "encode"
path = "tests/encode.rs"
[[test]]
name = "gate"
path = "tests/gate.rs"
[[test]]
name = "hardening"
path = "tests/hardening.rs"
[[test]]
name = "http_guard"
path = "tests/http_guard.rs"
[[test]]
name = "internal_sql"
path = "tests/internal_sql.rs"
[[test]]
name = "logs_tools"
path = "tests/logs_tools.rs"
[[test]]
name = "mask_differential"
path = "tests/mask_differential.rs"
[[test]]
name = "mcp_http"
path = "tests/mcp_http.rs"
[[test]]
name = "mcp_stdio"
path = "tests/mcp_stdio.rs"
[[test]]
name = "monitor_tools"
path = "tests/monitor_tools.rs"
[[test]]
name = "resources"
path = "tests/resources.rs"
[[test]]
name = "schema_tools"
path = "tests/schema_tools.rs"
[[test]]
name = "scrub"
path = "tests/scrub.rs"
[[test]]
name = "session"
path = "tests/session.rs"
[[test]]
name = "timescale_tools"
path = "tests/timescale_tools.rs"
[[test]]
name = "tls"
path = "tests/tls.rs"
[[test]]
name = "tls_real"
path = "tests/tls_real.rs"
[[test]]
name = "types_exact"
path = "tests/types_exact.rs"
[[test]]
name = "wire"
path = "tests/wire.rs"
[[test]]
name = "wire_fake"
path = "tests/wire_fake.rs"
[dependencies.axum]
version = "0.8"
[dependencies.bytes]
version = "1"
[dependencies.fallible-iterator]
version = "0.2"
[dependencies.http]
version = "1"
[dependencies.pg_query]
version = "18.1"
[dependencies.postgres-protocol]
version = "0.6.12"
[dependencies.prost]
version = "0.13"
features = ["no-recursion-limit"]
[dependencies.rmcp]
version = "3.11"
features = [
"server",
"macros",
"transport-io",
"transport-streamable-http-server",
]
[dependencies.rustls]
version = "0.23.46"
features = [
"ring",
"std",
"tls12",
"logging",
]
default-features = false
[dependencies.schemars]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = [
"preserve_order",
"arbitrary_precision",
]
[dependencies.sha2]
version = "0.10"
[dependencies.subtle]
version = "2"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-rustls]
version = "0.26"
features = [
"ring",
"tls12",
]
default-features = false
[dependencies.tokio-util]
version = "0.7"
[dependencies.tower]
version = "0.5"
features = [
"limit",
"timeout",
"util",
]
[dependencies.tower-http]
version = "0.7"
features = [
"cors",
"limit",
"trace",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
]
[dependencies.url]
version = "2"
[dependencies.webpki-roots]
version = "1"
[dev-dependencies.http-body-util]
version = "0.1"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.rcgen]
version = "0.14.10"
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 4
strip = true