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-sps 1.0.1
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_sps-1.0.1.tar.gz | 13.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_postgres_sps-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.9 kB
Release files / mcp_postgres_sps-1.0.1.tar.gz
| Download URL | mcp_postgres_sps-1.0.1.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1150a5482859d887b4e2a7dd968292ab5e7f2f4f844a640d6d4938689123f233
|
|
BLAKE2b-256 checksum How to use checksums |
5dbdadac6eb25914cc52b4aa7c1492c1949774e6d537cecd50a3108188a62794
|
| 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_sps-1.0.1-py3-none-any.whl
| Download URL | mcp_postgres_sps-1.0.1-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd99a93dfb7a1c3f70ab7b8d7b1a8d32e6e8cc200c6778d3ba9f455e78165f7f
|
|
BLAKE2b-256 checksum How to use checksums |
231842ef274c526579bfdfc4e6cc687329f448545453aa3cabc2f10c0a8598ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|