MCP-Ollama
Provides tools for querying and interacting with a PostgreSQL database.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP-OllamaList the top 3 products by total sales this year"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn 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.Last updated62
- Flicense-qualityCmaintenanceAn MCP server that exposes relational databases (PostgreSQL/MySQL) to AI agents with natural language to SQL query support.Last updated18

pgEdge Postgres MCP Serverofficial
Alicense-qualityBmaintenanceEnables SQL queries against PostgreSQL databases through MCP-compatible clients and includes a natural language agent for forming SQL queries from natural language.Last updated209PostgreSQL- Alicense-qualityBmaintenanceEnables natural language interaction with PostgreSQL databases through MCP tools, with GitHub OAuth authentication and role-based access control.Last updatedMIT
Related MCP Connectors
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
GibsonAI MCP server: manage your databases with natural language
Local-first RAG engine with MCP server for AI agent integration.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/leomc06/MCP-OLLAMA'
If you have feedback or need assistance with the MCP directory API, please join our Discord server