{"id":27726399,"url":"https://github.com/twn39/pgsql-mcp-server","last_synced_at":"2025-04-27T22:57:34.470Z","repository":{"id":287158580,"uuid":"963796785","full_name":"twn39/pgsql-mcp-server","owner":"twn39","description":"🔧 A powerful tool server based on the Model Context Protocol (MCP), enabling interaction with PostgreSQL databases via MCP calls.","archived":false,"fork":false,"pushed_at":"2025-04-24T06:01:22.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T06:16:42.096Z","etag":null,"topics":["ai","mcp","mcp-server","pgsql","postgresql","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twn39.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-10T08:14:51.000Z","updated_at":"2025-04-24T06:01:26.000Z","dependencies_parsed_at":"2025-04-10T09:46:50.832Z","dependency_job_id":null,"html_url":"https://github.com/twn39/pgsql-mcp-server","commit_stats":null,"previous_names":["twn39/pgsql-mcp-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twn39%2Fpgsql-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twn39%2Fpgsql-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twn39%2Fpgsql-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twn39%2Fpgsql-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twn39","download_url":"https://codeload.github.com/twn39/pgsql-mcp-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251219824,"owners_count":21554455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","mcp","mcp-server","pgsql","postgresql","python"],"created_at":"2025-04-27T22:57:34.020Z","updated_at":"2025-04-27T22:57:34.460Z","avatar_url":"https://github.com/twn39.png","language":"Python","funding_links":[],"categories":["🤖 AI/ML"],"sub_categories":[],"readme":"# PgSQL MCP Server\n\n[![PyPI - Version](https://img.shields.io/pypi/v/pgsql-mcp-server)](https://pypi.org/project/pgsql-mcp-server/)\n\n**A powerful tool server based on the Model Context Protocol (MCP), enabling interaction with PostgreSQL databases via MCP calls.**\n\n---\n\n## 🚀 Overview\n\n\nThis project is built on the `FastMCP` framework and leverages the `SQLAlchemy` and `asyncpg` libraries to deliver high-performance asynchronous database operations, ensuring efficiency and responsiveness when handling database requests.\n\n## ✨ Key Features\n\n*   **Asynchronous \u0026 Efficient:** Fully asynchronous implementation based on `asyncio`, utilizing `asyncpg` for a high-performance asynchronous PostgreSQL driver.\n*   **Transactional Safety:** DDL, DML, and DCL operations are executed within transactions with error handling and rollback mechanisms.\n*   **Easy Deployment:** Start the server with a simple command line interface.\n\n## 📦 Installation\n\nEnsure you have Python 3.8+ installed. Installation via `uvx` is recommended:\n\n```bash\nuvx pgsql-mcp-server --dsn postgresql://user:password@localhost:5432/db\n```\n\n## 🔍 Preview and Debugging\n\nYou can use the official MCP Inspector tool to visually inspect the tools provided by this server, view their parameters and descriptions, and perform test calls directly.\n\n```bash\nnpx @modelcontextprotocol/inspector uvx pgsql-mcp-server --dsn \"postgresql://user:password@host:port/database\"\n```\n\nThis will start a local web service. Open the provided URL in your browser to begin debugging.\n\n## 🤝 Contributing\n\nContributions are welcome! If you have suggestions for improvements, feature requests, or find any bugs, please feel free to:\n\n1.  Open an [Issue](https://github.com/twn39/pgsql-mcp-server/issues) to discuss.\n2.  Fork the repository and create your feature branch (`git checkout -b feature/AmazingFeature`).\n3.  Commit your changes (`git commit -m 'Add some AmazingFeature'`).\n4.  Push to the branch (`git push origin feature/AmazingFeature`).\n5.  Open a [Pull Request](https://github.com/twn39/pgsql-mcp-server/pulls).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwn39%2Fpgsql-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwn39%2Fpgsql-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwn39%2Fpgsql-mcp-server/lists"}