loaditout.ai
SkillsPacksTrendingLeaderboardAPI DocsBlogSubmitRequestsCompareAgentsXPrivacyDisclaimer
{}loaditout.ai
Skills & MCPPacksBlog

graft

MCP Tool

amaar-mc/graft

Local-first codebase context engine for AI coding tools via MCP

Install

$ npx loaditout add amaar-mc/graft

Platform-specific configuration:

.claude/settings.json
{
  "mcpServers": {
    "graft": {
      "command": "npx",
      "args": [
        "-y",
        "graft"
      ]
    }
  }
}

Add the config above to .claude/settings.json under the mcpServers key.

About

<p align="center"> </p>

<h1 align="center">Graft</h1>

<p align="center"> <strong>Local-first codebase context engine for AI coding tools</strong> </p>

<p align="center"> Parse any codebase into a ranked dependency graph. Serve it to AI tools via MCP.<br/> Zero config. Zero cloud. Nothing leaves your machine. </p>

<p align="center"> <a href="https://www.npmjs.com/package/graftmap"></a> <a href="https://github.com/amaar-mc/graft/actions"></a> <a href="https://github.com/amaar-mc/graft/blob/main/LICENSE"></a> <a href="https://nodejs.org"></a> </p>

---

Why Graft?

AI coding tools are only as good as the context they receive. Most tools either have no codebase understanding, or use proprietary indexing locked to a single editor.

Graft gives any MCP-compatible AI tool deep structural understanding of your codebase:

  • 100K lines of code represented in ~2K tokens of ranked context
  • Dependency-aware — knows which files import what, and what depends on what
  • PageRank-scored — surfaces the most structurally important files first
  • Tool-agnostic — works with Claude, Cursor, Windsurf, Continue, or any MCP client
  • Local-first — no cloud, no telemetry, no code ever leaves your machine
$ npx graftmap map

src/indexer/pipeline.ts [score: 0.0842]
  function buildIndex (L19)

src/graph/pagerank.ts [score: 0.0731]
  function computePageRank (L52)
  function buildTeleportVector (L11)

src/parser/index.ts [score: 0.0654]
  function parseFiles (L28)

src/mcp/server.ts [score: 0.0612]
  function createGraftServer (L238)
  function startMcpServer (L327)

Tags

ai-codingclicode-analysiscode-intelligencedependency-graphdeveloper-toolslocal-firstmcpmodel-context-protocolopen-sourcepagerankpythonstatic-analysistree-sittertypescript

Reviews

Loading reviews...

Quality Signals

1
Stars
0
Installs
Last updated18 days ago
Security: AREADME

Safety

Risk Levelmedium
Data Access
read
Network Accessnone

Details

Sourcegithub-crawl
Last commit3/28/2026
View on GitHub→

Embed Badge

[![Loaditout](https://loaditout.ai/api/badge/amaar-mc/graft)](https://loaditout.ai/skills/amaar-mc/graft)