Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Local-first MCP-style code memory for research repositories: enables file search, Python symbol extraction, import graph, and repo context packs.

README.md

CodeGraph Memory MCP Lite

Local-first MCP-style code memory for research repositories: file search, Python symbols, import graph, and repo context packs.

![License: MIT](LICENSE) ![Python](pyproject.toml) ![SQLite FTS](#features)

<p align="center"> <img src="assets/screenshots/mcp-reference.png" alt="Open-source developer tooling public page screenshot" width="880"> </p>

<sub>Image source: public Model Context Protocol homepage screenshot, https://modelcontextprotocol.io/. Used as a visual reference for local code-indexing and agent-tool workflows.</sub>

Research codebases are often small enough that a heavyweight code intelligence stack is overkill, but large enough that agents lose track of modules, configs, training scripts, and README claims. This project provides a tiny local codegraph memory layer for AI agents. It indexes a repository, extracts Python classes/functions/imports with the standard ast module, stores file text in SQLite FTS, and exposes MCP-style tools over stdio.

If this helps your agent understand a research repo faster, a star helps other builders discover it.

Features

  • Local-only SQLite database.
  • File full-text search over code, Markdown, configs, and scripts.
  • Python symbol extraction: classes, functions, async functions, and imports.
  • Lightweight import graph and symbol lookup.
  • MCP-style tools:
  • index_codebase
  • search_code_memory
  • find_symbol
  • get_dependency_graph
  • summarize_repo_context

Quick Start

git clone https://github.com/StaryMoon/codegraph-memory-mcp-lite.git
cd codegraph-memory-mcp-lite
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

codegraph-memory index examples/sample_repo
codegraph-memory symbol Trainer
codegraph-memory graph --limit 20
codegraph-memory context

MCP Config

{
  "mcpServers": {
    "codegraph-memory-lite": {
      "command": "python3",
      "args": ["-m", "codegraph_memory_mcp_lite.server", "serve"],
      "env": {
        "CODEGRAPH_MEMORY_DB": "/absolute/path/to/codegraph-memory.sqlite"
      }
    }
  }
}

Why This Exists

Most code assistants can read files, but they often lack a persistent local map of:

  • where classes and functions are defined;
  • which modules import which modules;
  • what README claims the repo makes;
  • what training/evaluation scripts exist;
  • which files are relevant to a user query.

This project gives an agent a small memory substrate before it starts editing.

Related Projects

License

MIT.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Vector & Memory servers.