{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_pawr279zyw5n","handle":"msrashed-postgresql-mcp-server","url":"https://wellknown.network/agents/msrashed-postgresql-mcp-server","links":{"self":"https://wellknown.network/agents/msrashed-postgresql-mcp-server/record.json","html":"https://wellknown.network/agents/msrashed-postgresql-mcp-server","markdown":"https://wellknown.network/agents/msrashed-postgresql-mcp-server/record.md","api":"https://wellknown.network/api/v1/agents/msrashed-postgresql-mcp-server","status":"https://wellknown.network/api/v1/agents/msrashed-postgresql-mcp-server/status","claim":"https://wellknown.network/agents/msrashed-postgresql-mcp-server/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/msrashed-postgresql-mcp-server/claim.json","badge":"https://wellknown.network/agents/msrashed-postgresql-mcp-server/badge.svg","openapi":"https://wellknown.network/openapi.json"},"ard":{"identifier":"urn:air::server:msrashed-postgresql-mcp-server","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"msrashed-postgresql-mcp-server","summary":"Read-only PostgreSQL MCP server for database inspection, querying, and performance analysis","description":"# PostgreSQL MCP Server\n\nA read-only Model Context Protocol (MCP) server for [PostgreSQL](https://www.postgresql.org/), enabling AI agents like software engineers to safely inspect databases, analyze performance, and query data without risking modifications.\n\n[![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/)\n[![MCP](https://img.shields.io/badge/MCP-1.24.0+-green.svg)](https://github.com/anthropics/mcp)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Features\n\n- **Read-Only Safety**: All operations are read-only. No INSERT, UPDATE, DELETE, DROP, or ALTER operations\n- **Comprehensive Discovery**: List databases, schemas, tables, views, columns, indexes, and constraints\n- **Query Execution**: Execute SELECT queries and EXPLAIN plans safely\n- **Performance Analysis**: Find missing indexes, unused indexes, bloated tables, and slow queries\n- **Monitoring Tools**: View connections, locks, replication lag, and cache hit ratios\n- **Type-Safe**: Full type hints for Python 3.12+\n- **Dual Interface**: Use as MCP server for AI agents or CLI tool for direct database access\n\n## Installation\n\n### Using uv (Recommended)\n\n```bash\n# Install from PyPI\nuv pip install msrashed-postgresql-mcp-server\n\n# Or install with pipx for CLI usage\npipx install msrashed-postgresql-mcp-server\n```\n\n### Using pip\n\n```bash\npip install msrashed-postgresql-mcp-server\n```\n\n## Quick Start\n\n### 1. Set Environment Variables\n\n```bash\n# Option 1: Full connection URI\nexport POSTGRES_URI=\"postgresql://user:password@localhost:5432/mydb\"\n\n# Option 2: Individual parameters\nexport POSTGRES_HOST=\"localhost\"\nexport POSTGRES_PORT=\"5432\"\nexport POSTGRES_DATABASE=\"mydb\"\nexport POSTGRES_USER=\"postgres\"\nexport POSTGRES_PASSWORD=\"secret\"\nexport POSTGRES_SSLMODE=\"prefer\"  # or disable, require, verify-full\n```\n\n### 2. Test Connection\n\n```bash\npostgresql-mcp-server check --uri postgresql://localhost/mydb\n```\n\n…","publisher":null,"homepage":"https://github.com/msalah-eg/postgresql-mcp-server","repository":"https://github.com/msalah-eg/postgresql-mcp-server","version":"0.1.0","license":"MIT","protocols":["mcp"],"tags":["ai","database","llm","mcp","model-context-protocol","postgres","postgresql","sql"],"pricing":null,"endpoints":[{"url":"pypi:msrashed-postgresql-mcp-server","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"data.database","name":"Databases","confidence":1,"provenance":"declared"}],"categories":["data"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"msrashed-postgresql-mcp-server","registry":"pypi","observedAt":"2026-09-10T07:21:37.996Z","publishedAt":"2026-01-11T02:44:45.081598Z","latestVersion":"0.1.0"}},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"msrashed-postgresql-mcp-server","url":"https://pypi.org/project/msrashed-postgresql-mcp-server/","firstSeenAt":"2026-09-10T07:20:30.102Z","fetchedAt":"2026-09-10T07:20:30.102Z","normalizedAt":"2026-09-10T07:20:30.102Z"}]},"firstSeenAt":"2026-09-10T07:20:30.102Z","updatedAt":"2026-09-10T07:21:37.996Z"}