# MCP Postgres SPS
Agente inteligente que responde perguntas em linguagem natural sobre o banco PostgreSQL usando Django e LangChain.
## 🔧 Instalação
```bash
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
Raw data
{
"_id": null,
"home_page": "https://github.com/leokaique7/mcp_postgres_sps",
"name": "mcp-postgres-sps",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Leonardo Sousa",
"author_email": "leokaique7@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/5d/bd/adac6eb25914cc52b4aa7c1492c1949774e6d537cecd50a3108188a62794/mcp_postgres_sps-1.0.1.tar.gz",
"platform": null,
"description": "# MCP Postgres SPS\r\n\r\nAgente inteligente que responde perguntas em linguagem natural sobre o banco PostgreSQL usando Django e LangChain.\r\n\r\n## \u00f0\u0178\u201d\u00a7 Instala\u00c3\u00a7\u00c3\u00a3o\r\n\r\n```bash\r\ngit clone https://seurepo.com/mcp_postgres_sps.git\r\ncd mcp_postgres_sps\r\ndocker build -t mcp-postgres .\r\ndocker run -p 8000:8000 mcp-postgres\r\n```\r\n\r\nComo usar\r\nFa\u00c3\u00a7a requisi\u00c3\u00a7\u00c3\u00b5es POST para:\r\n\r\ncss\r\nCopiar\r\nEditar\r\nPOST /consulta\r\n\r\nBody:\r\n{\r\n\"pergunta\": \"quantos pedidos tivemos no m\u00c3\u00aas de julho?\",\r\n\"slug\": \"empresa_xyz\"\r\n}\r\n\r\nmcp_postgres_sps/\r\n\u00e2\u201d\u0153\u00e2\u201d\u20ac\u00e2\u201d\u20ac mcp_postgres_sps/\r\n\u00e2\u201d\u201a \u00e2\u201d\u0153\u00e2\u201d\u20ac\u00e2\u201d\u20ac **init**.py\r\n\u00e2\u201d\u201a \u00e2\u201d\u0153\u00e2\u201d\u20ac\u00e2\u201d\u20ac consulta_tool.py\r\n\u00e2\u201d\u201a \u00e2\u201d\u0153\u00e2\u201d\u20ac\u00e2\u201d\u20ac filtros_naturais.py\r\n\u00e2\u201d\u201a \u00e2\u201d\u0153\u00e2\u201d\u20ac\u00e2\u201d\u20ac model_registry.py\r\n\u00e2\u201d\u201a \u00e2\u201d\u0153\u00e2\u201d\u20ac\u00e2\u201d\u20ac model_tool_factory.py\r\n\u00e2\u201d\u201a \u00e2\u201d\u0153\u00e2\u201d\u20ac\u00e2\u201d\u20ac relacionamento_registry.py\r\n\u00e2\u201d\u201a \u00e2\u201d\u201d\u00e2\u201d\u20ac\u00e2\u201d\u20ac server.py\r\n\u00e2\u201d\u0153\u00e2\u201d\u20ac\u00e2\u201d\u20ac main.py\r\n\u00e2\u201d\u0153\u00e2\u201d\u20ac\u00e2\u201d\u20ac Dockerfile\r\n\u00e2\u201d\u0153\u00e2\u201d\u20ac\u00e2\u201d\u20ac requirements.txt\r\n\u00e2\u201d\u0153\u00e2\u201d\u20ac\u00e2\u201d\u20ac README.md\r\n\r\n#\\x00 \\x00m\\x00c\\x00p\\x00_\\x00p\\x00o\\x00s\\x00t\\x00g\\x00r\\x00e\\x00s\\x00\r\n\\x00\r\n\\x00\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Uma Ferramenta de Consulta de Bases de Dados PostgreSQL usando Linguagem Natural",
"version": "1.0.1",
"project_urls": {
"Homepage": "https://github.com/leokaique7/mcp_postgres_sps"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "231842ef274c526579bfdfc4e6cc687329f448545453aa3cabc2f10c0a8598ae",
"md5": "55e399a534334f53fc5f46d34f39f965",
"sha256": "cd99a93dfb7a1c3f70ab7b8d7b1a8d32e6e8cc200c6778d3ba9f455e78165f7f"
},
"downloads": -1,
"filename": "mcp_postgres_sps-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "55e399a534334f53fc5f46d34f39f965",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 14222,
"upload_time": "2025-07-30T13:31:36",
"upload_time_iso_8601": "2025-07-30T13:31:36.232317Z",
"url": "https://files.pythonhosted.org/packages/23/18/42ef274c526579bfdfc4e6cc687329f448545453aa3cabc2f10c0a8598ae/mcp_postgres_sps-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5dbdadac6eb25914cc52b4aa7c1492c1949774e6d537cecd50a3108188a62794",
"md5": "121eb935945d0271328b773896176d80",
"sha256": "1150a5482859d887b4e2a7dd968292ab5e7f2f4f844a640d6d4938689123f233"
},
"downloads": -1,
"filename": "mcp_postgres_sps-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "121eb935945d0271328b773896176d80",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 13697,
"upload_time": "2025-07-30T13:31:37",
"upload_time_iso_8601": "2025-07-30T13:31:37.808211Z",
"url": "https://files.pythonhosted.org/packages/5d/bd/adac6eb25914cc52b4aa7c1492c1949774e6d537cecd50a3108188a62794/mcp_postgres_sps-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-30 13:31:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "leokaique7",
"github_project": "mcp_postgres_sps",
"github_not_found": true,
"lcname": "mcp-postgres-sps"
}