mcp_db
MCP server for exploring metadata of corporate databases: table structures, relationships, dependencies, and export to UML diagrams.
README
mcp_db — MCP-сервер метаданных корпоративных БД
MCP-сервер для Cursor: структура таблиц, неявные связи (из JOIN/WHERE в процедурах, функциях, триггерах и VIEW), зависимости объектов, экспорт в PlantUML.
Статус
v0.1.0 — каркас, metadata store, HTTP MCP-сервер, SQL-анализатор, extractors MS SQL / PostgreSQL, индексация refresh.
Быстрый старт
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 | Описание |
|---|---|
list_sources |
Источники и время индексации |
search_objects |
Поиск объектов |
describe_object |
Колонки и определение |
get_object_usages |
Входящие/исходящие зависимости |
get_table_relationships |
Граф связей, PlantUML / Mermaid |
get_dependencies_tree |
Дерево зависимостей |
refresh_metadata |
Запуск индексации |
execute_query |
Выполнение SQL (если query_execution.enabled: true) |
Права учётной записи БД: docs/db-permissions.md.
Документация
| Документ | Содержание |
|---|---|
| docs/TZ.md | Техническое задание |
| docs/deployment.md | Развёртывание |
| docs/db-permissions.md | Права пользователя БД (MS SQL, PostgreSQL) |
Тесты
pytest
Docker
docker compose -f docker/docker-compose.yml up -d
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.