Skip to main content

Compact Knowledge Graph MCP server — 42× more efficient than RAG on structural queries

Project description

ckg-mcp

mcp-name: io.github.Yarmoluk/ckg-mcp

Compact Knowledge Graph MCP server. Pre-structured domain knowledge as a routing layer for agent stacks — 42× more efficient than RAG on structural queries.

License: MIT Python 3.10+ MCP Compatible

Built on the CKG Benchmark — 45 domains, 7,928 queries, fully reproducible results.


What It Does

Drop CKG into your agent stack as an MCP tool. Instead of retrieving text chunks and hoping the LLM infers structure, CKG gives agents pre-compiled dependency paths, prerequisite chains, and concept relationships — directly from a structured graph.

System Macro F1 Tokens/query Hallucination Rate
CKG 0.471 269 0%
RAG 0.123 2,982 Variable
GraphRAG 0.120 3,450 Variable

Install

pip install ckg-mcp

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "ckg": {
      "command": "ckg-mcp"
    }
  }
}

Tools

Tool Description
list_domains() List all available CKG domains
query_ckg(domain, concept, depth) Extract subgraph — prerequisites + dependents
get_prerequisites(domain, concept) Full prerequisite chain to root
search_concepts(domain, query) Find concepts by name

Bundled Domains (v0.1.0)

Domain Concepts
calculus 105
algebra-1 80
chemistry 95
biology 88
linear-algebra 72
data-science-course 91
economics-course 78
glp1-obesity 90

More domains available via Graphify.md — weekly-updated commercial CKGs for clinical, regulatory, legal, and financial domains.


Example

# In your agent — via MCP tool call
query_ckg(domain="calculus", concept="Taylor Series", depth=3)

# Returns:
## CKG: Taylor Series (calculus)

### Prerequisites (what you need to know first)
  - Power Series
    - Sequences and Series
      - Limits
  - Derivatives
  - Infinite Series

### Builds toward
  - Maclaurin Series
  - Error Estimation

Why Not RAG?

RAG retrieves text chunks and forces the LLM to infer structure. On multi-hop structural queries (prerequisites, dependency chains, category aggregation), that inference fails — F1 = 0.123 vs CKG's 0.471.

CKG is a pre-compiled routing layer: the dependency paths are already in the graph. BFS/DFS traversal, not similarity search. No hallucinations by construction.

Full benchmark: github.com/Yarmoluk/ckg-benchmark


License

MIT — Yarmoluk & McCreary, 2026. Commercial deployment → graphifymd.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckg_mcp-0.1.1.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckg_mcp-0.1.1-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file ckg_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: ckg_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for ckg_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 848ce8742bca338f7e202723af439d0bd6360215c2a3e3202f7bac2a3441b0e5
MD5 c433d76b33f82c94deb79c4216498bf3
BLAKE2b-256 5d556ef9a40b58e2f81cf024766d47135e416639e39c893903c810771ec1fb09

See more details on using hashes here.

File details

Details for the file ckg_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ckg_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for ckg_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74db3704d52c4fe84c558cae9610067fbec1a39762321f782726116b20d6c138
MD5 bb27e38533d12d4c6a9b2b5fd271f5fb
BLAKE2b-256 b52d24cf40f03672a5bd03fba32e749b005c42d9ee714facbe80ec9961808479

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page