MCP Postgres SPS
Agente inteligente que responde perguntas em linguagem natural sobre o banco PostgreSQL usando Django e LangChain.
🔧 Instalação
git clone https://seurepo.com/mcp_postgres_sps.git
cd mcp_postgres_sps
docker build -t mcp-postgres .
docker run -p 8000:8000 mcp-postgres
Como usar Faça requisições POST para:
css Copiar Editar POST /consulta
Body: { "pergunta": "quantos pedidos tivemos no mês de julho?", "slug": "empresa_xyz" }
mcp_postgres_sps/ ├── mcp_postgres_sps/ │ ├── init.py │ ├── consulta_tool.py │ ├── filtros_naturais.py │ ├── model_registry.py │ ├── model_tool_factory.py │ ├── relacionamento_registry.py │ └── server.py ├── main.py ├── Dockerfile ├── requirements.txt ├── README.md
#\x00 \x00m\x00c\x00p\x00_\x00p\x00o\x00s\x00t\x00g\x00r\x00e\x00s\x00 \x00 \x00
Metadata
Release files for mcp-postgres 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_postgres-1.0.2.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_postgres-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.1 kB
Release files / mcp_postgres-1.0.2.tar.gz
| Download URL | mcp_postgres-1.0.2.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
579f446d827a403c4a8451b4ebca0b460128189c8b7e0292f986dbcbf8953017
|
|
BLAKE2b-256 checksum How to use checksums |
7a068af0c402f5f879969cb111338859a6c6d0b2ff90c82aba67b36713742276
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / mcp_postgres-1.0.2-py3-none-any.whl
| Download URL | mcp_postgres-1.0.2-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6b80a1a2b1eced6decdae6507a5766ebc406e4fde5f2740d15a6d21455acde7
|
|
BLAKE2b-256 checksum How to use checksums |
4571fa137a02bc54ca788d5e77d3a9fad8c540f226298c9858532e14ab1eccec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|