📡 MCP Radar

alikarami76/keygraph

Schema map for data analyst and text-to-SQL agents: join paths, keys, grain and status codes served to LLM agents over MCP, CLI --json or markdown, plus an offline explorer. MySQL, PostgreSQL, SQLite,

⭐ 3 stars
⑂ 0 forks
Python
momentum ▲ 6.0
created 2026-11-03
on radar since 2026-11-06
ai-agentsclaude-codeclickhousedata-analyst-agentdata-catalogdatabaseer-diagramforeign-keysjoin-pathllmllm-agentsmcpmcp-servermodel-context-protocolmysqlpostgresqlschema-contextschema-inferencesqltext-to-sql
View on GitHub ↗Homepage ↗

About keygraph

keygraph is an open-source schema map for people building a data analyst agent, a text-to-SQL agent or any other LLM agent that answers questions from a database. It maps how your tables connect (keys, indexes, declared and inferred foreign keys, grain, status codes, business context and value profiles) and serves that schema context to agents through an MCP server, a CLI with --json, or markdown files, and to people through an offline HTML explorer. It reads only metadata, makes no LLM calls, and gives the same output for the same input. It can also link your source code to the same tables and columns (where each column is declared, written, read and used) and keep a log of the queries people and agents ran, with their timing and the business question behind them.

At a glance. MIT licence. Python 3.11 or newer. Reads MySQL, MariaDB, PostgreSQL, SQLite, SQL Server, ClickHouse, Metabase and MongoDB, or informationschema dumps. Fifteen MCP tools: fourteen read-only and one that logs a query. Runs without a server, and the bundled demo webshop has 35 tables in three schemas. Jump to: build a data analyst agent, quickstart, MCP setup, FAQ.

Why a prebuilt map beats no context or context made on the fly

An agent that writes SQL needs to know which tables exist, how they join, what one row means and what the codes in a column stand for. There are three ways to give it that.

No context at all. The agent guesses table names and joins on columns that look alike. It cannot see that a table holds one row per order line rather than per order, so its sums double count. It does not kn

From the project README.

Maintaining this server?

Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:

[![On MCP Radar](https://mcp.liqiwa.com/badge.svg)](https://mcp.liqiwa.com/s/alikarami76--keygraph.html)

Related MCP servers

rohanbeingsocial/showboard

Your coding agent answers with dashboards, not paragraphs. An MCP server for Claude Code, Codex, Cursor, Gemini CLI and more: charts and tables from read-only SQL on Postgres, SQLite, Excel or CSV, in

⭐ 4TypeScript
thaildhe172591/pythia

PL/SQL development for AI agents on Oracle Database - expert queries, impact analysis, and a snapshot-verified write path with honest rollback

⭐ 3Python
notinferred/halfnine

A light TablePlus alternative for PostgreSQL that your AI agents can use too, over MCP. macOS and Windows.

⭐ 34Rust
macolszewski/dbeast_manager

Fast native database client for PostgreSQL, MySQL and SQLite, written in Rust: SQL console, editable result grid, query plans, schema graph, data transfer and a secure MCP server for AI agents.

⭐ 4Rust
systempromptio/systemprompt-demo

AI Governance Infrastructure — open gateway demo. Self-hosted systemprompt.io gateway in a single Rust binary: policy, audit trails, and cost attribution on every AI request, with the Systemprompt Bri

⭐ 3Rust
azimov777/casefile

The task tracker your AI agents keep for each other: every task carries a case file, so the next agent picks up where the last one stopped. MCP server + live board. Self-hosted, one-line install.

⭐ 3TypeScript

📬 Get the weekly radar in your inbox

The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.