MCP-Ollama
Provides tools for querying and interacting with a PostgreSQL database.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Ollama
Arquitetura
Usuário
↓
Interface web
↓
Backend agente
↓
Ollama
↓
Cliente MCP
↓
Servidor MCP
↓
PostgreSQLO usuário envia uma pergunta pela interface.
O backend valida a pergunta.
O Ollama escolhe uma tool.
O cliente MCP chama o servidor MCP.
O servidor consulta o PostgreSQL.
O backend formata o resultado.
A interface apresenta a resposta.
Related MCP server: mcp-db-server
Como executar
Requisitos:
Node.js 20 ou superior;
npm;
Docker e Docker Compose;
Ollama;
modelo
qwen2.5:3bno Ollama.
Na raiz do projeto, crie e configure o arquivo de ambiente:
cp .env.example .env
nano .envInstale as dependências:
npm installInicie o PostgreSQL:
docker compose up -dInicie o Ollama e baixe o modelo, caso ainda não esteja instalado localmente:
sudo systemctl start ollama
ollama pull qwen2.5:3bInicie o backend agente:
npm run start:agentO backend inicia o MCP Server automaticamente por STDIO e também disponibiliza a interface web. Acesse:
http://127.0.0.1:3100Como encerrar
No terminal do backend, pressione:
Ctrl+CIsso também encerra o MCP Server iniciado pelo backend.
Pare o Ollama:
sudo systemctl stop ollamaPare o PostgreSQL sem excluir dados ou volumes:
docker compose stopThis server cannot be deployed
Maintenance
Related MCP Connectors
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Hosted PostgreSQL MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn interactive chat interface that combines Ollama's LLM capabilities with PostgreSQL database access through the Model Context Protocol (MCP). Ask questions about your data in natural language and get AI-powered responses backed by real SQL queries.62MIT
- FlicenseNot gradedqualityAmaintenanceAn MCP server that exposes relational databases (PostgreSQL/MySQL) to AI agents with natural language to SQL query support.19-

pgEdge Postgres MCP Serverofficial
AlicenseNot gradedqualityAmaintenanceEnables SQL queries against PostgreSQL databases through MCP-compatible clients and includes a natural language agent for forming SQL queries from natural language.243PostgreSQL- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with PostgreSQL databases through MCP tools, with GitHub OAuth authentication and role-based access control.MIT