MetaGraph-MCP
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., "@MetaGraph-MCPshow the lineage graph 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.
š MetaGraph-MCP
Autonomous Governance & Active Metadata Context Engine for Enterprise AI Agents
MetaGraph-MCP is a production-grade, active metadata ingestion and lineage engine built for enterprise AI context delivery. It parses SQL AST query execution logs into directed lineage graphs (DAGs), auto-documents datasets using autonomous LLM agents with PII detection, indexes semantic metadata into a standalone Qdrant Vector Database, and exposes governed context to AI agents via the Model Context Protocol (MCP).
šļø System Architecture
The system processes raw SQL and DDL metadata through an AST parser, enriches it with autonomous metadata and PII classification, stores semantic embeddings in Qdrant, and exposes governed context through MCP and REST APIs.
Cosine Similarity
$$ \operatorname{CosineSimilarity}(A,B)
\frac{\mathbf{A}\cdot\mathbf{B}} {|\mathbf{A}|,|\mathbf{B}|} $$
[ Raw SQL Logs / DDL Files ]
ā
ā¼
[ AST Parser Engine ]
ā
ā¼
[ Directed Lineage Graph (DAG) ]
ā
ā¼
[ Scribe Metadata Agent ]
ā
ā¼
[ PII Classifier & Confidence ]
ā
ā¼
[ Qdrant Vector DB ]
(RAG Embeddings)
ā
āāāāāāāā“āāāāāāā
ā¼ ā¼
[ Governed MCP ] [ Express REST API
Server & Swagger UI ]
ā ā
ā¼ ā¼
[ Claude Desktop / Cursor ] [ Enterprise AI Agents
& Humans ]Related MCP server: DataHub MCP Server
⨠Core Features
AST-Based Lineage Ingestion: Parses raw SQL query logs and DDL statements using
node-sql-parserto construct an in-memory Directed Acyclic Graph (DAG) mapping upstream/downstream dependencies.Autonomous Metadata Agent (Scribe): Leverages LLMs to generate column descriptions, flag sensitive PII data fields (
is_pii: true), and output confidence ratings (0.0 ā 1.0).Vector RAG Engine (Qdrant): Embeds table definitions and column descriptions using
text-embedding-004and stores them in a Qdrant vector collection for fast natural-language semantic catalog search.Governed MCP Server: Implements the official
@modelcontextprotocol/sdkoverstdiowith built-in RBAC rules, including PII redaction for non-ADMINagents.CLI & OpenAPI Tools: Includes a command-line interface (
atlan-context) for local SQL batch ingestion and interactive Swagger documentation at/docs.
š Directory Structure
atlan-context-mcp/
āāā .env.example
āāā Dockerfile
āāā docker-compose.yml
āāā package.json
āāā README.md
āāā src/
āāā config/
ā āāā env.js # Environment variables & configuration
āāā core/
ā āāā ast-parser.js # SQL AST parsing & dependency extraction
ā āāā lineage-dag.js # Directed Graph data structure
ā āāā metadata-store.js # Persistent metadata state storage
ā āāā vector-store.js # Qdrant Vector Store integration
āāā agents/
ā āāā scribe-agent.js # Autonomous documentation & PII classifier
āāā mcp/
ā āāā server.js # Model Context Protocol Stdio Server
ā āāā tools/
ā āāā get-lineage.js
ā āāā get-governed-schema.js
ā āāā search-metadata.js # Semantic vector search (RAG)
āāā server/
ā āāā app.js # Express REST API & Swagger UI (/docs)
āāā cli/
āāā index.js # CLI runner (`atlan-context ingest`)ā” Getting Started
1. Prerequisites
Node.js >= 20.x
Docker & Docker Compose
Google Gemini API Key
2. Environment Setup
Create a .env file in the root directory:
GEMINI_API_KEY=your_gemini_api_key_here
PORT=3000
QDRANT_URL=http://localhost:6333
DOTENV_CONFIG_QUIET=true3. Spin Up Infrastructure
Start the application and the Qdrant vector database container:
docker-compose up --build -d4. Ingest Sample Data via CLI
Register table schema definitions:
node src/cli/index.js schema raw_orders order_id customer_email amount
node src/cli/index.js schema stg_orders order_id user_id amountIngest raw SQL transform queries:
node src/cli/index.js ingest ./sample.sql5. Access Dashboards & Developer Documentation
Swagger API Documentation:
http://localhost:3000/docsREST Dashboard:
http://localhost:3000Qdrant Vector Dashboard:
http://localhost:6333/dashboard
š ļø MCP Protocol Integration
To connect this server to Claude Desktop or Cursor, add the following configuration to your MCP settings file (claude_desktop_config.json):
{
"mcpServers": {
"atlan-context": {
"command": "node",
"args": ["/path/to/atlan-context-mcp/src/mcp/server.js"],
"env": {
"GEMINI_API_KEY": "your_gemini_api_key_here",
"QDRANT_URL": "http://localhost:6333"
}
}
}
}Exposed MCP Tools
Tool Name | Parameters | Description |
|
| Returns upstream dependency DAG for a target data asset. |
|
| Returns table documentation with role-based PII masking. |
|
| Executes semantic vector RAG search over indexed metadata. |
š License
This project is licensed under the MIT License.
This 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
- AlicenseAqualityFmaintenanceEnables AI agents to discover, request access to, and query data products in Data Mesh Manager, enforcing governance policies while retrieving business data from platforms like Snowflake and Databricks.446MIT
- Alicense-qualityCmaintenanceEnables AI agents to search, explore data lineage, understand business context, and generate SQL queries across an organization's data ecosystem.Apache 2.0
- Alicense-qualityCmaintenanceEnables AI agents to query live schema, lineage, and query-context across data warehouses, dbt projects, orchestration systems, and BI tools via MCP tools.Apache 2.0
- Alicense-qualityBmaintenanceTurns warehouse/lakehouse tables into a governed entity-relationship knowledge graph exposed through MCP, enabling AI agents to answer multi-table business questions without hard-coded SQL or large schema prompts.Apache 2.0
Related MCP Connectors
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud
The grounded data layer for any LLM: governed SQL, metrics, lineage and catalog over your data.
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/midsane/MetaGraph-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server