mcp_db
Enables retrieval of database metadata (tables, columns, relationships, dependencies) from PostgreSQL databases, supporting search, object description, and dependency analysis.
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_dbshow me the relationships for the orders table"
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_db — MCP-сервер метаданных корпоративных БД
MCP-сервер для Cursor: структура таблиц, неявные связи (из JOIN/WHERE в процедурах, функциях, триггерах и VIEW), зависимости объектов, экспорт в PlantUML.
Статус
v0.1.0 — каркас, metadata store, HTTP MCP-сервер, SQL-анализатор, extractors MS SQL / PostgreSQL, индексация refresh.
Related MCP server: onec-meta-mcp
Быстрый старт
cd MCP_DB
python -m venv .venv311
.venv311\Scripts\activate
pip install -e ".[dev]"
copy config\config.example.yaml config\config.yaml
# задать GBD_USER, GBD_PASSWORD и т.д.
python -m mcp_db refresh --verbose
python -m mcp_db serveСервер: http://0.0.0.0:8765/mcp (Streamable HTTP). Health: http://localhost:8765/health.
MCP Tools
Tool | Описание |
| Источники и время индексации |
| Поиск объектов |
| Колонки и определение |
| Входящие/исходящие зависимости |
| Граф связей, PlantUML / Mermaid |
| Дерево зависимостей |
| Запуск индексации |
| Выполнение SQL (если |
Права учётной записи БД: docs/db-permissions.md.
Документация
Документ | Содержание |
Техническое задание | |
Развёртывание | |
Права пользователя БД (MS SQL, PostgreSQL) |
Тесты
pytestDocker
docker compose -f docker/docker-compose.yml up -dThis 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.
Latest Blog Posts
- 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/ayuriiuni-prog/MCP_DB'
If you have feedback or need assistance with the MCP directory API, please join our Discord server