# CodeGraphContext

> Use this tool when you need to analyze and understand complex Python codebases, identify relationships between code elements, and optimize development workflows. It solves problems such as refactoring, impact analysis, and codebase comprehension by providing features like code indexing, real-time file watching, and Cypher query execution. With inputs including local Python codebases and Neo4j database connections, and outputs including graph-based relationship queries and code structure insights, it is ideal for use in development environments where deep code understanding is required.

Canonical page: https://skillsregistry.net/skills/codegraphcontext  
JSON: https://api.skillsregistry.net/v1/skills/codegraphcontext

## Description

This MCP server provides AI-powered code analysis by indexing local Python codebases into a Neo4j graph database, enabling sophisticated relationship queries and context discovery for development workflows. Built by Shashank Shekhar Singh using Python with Neo4j, watchdog for file monitoring, and Typer for CLI interaction, it offers 12 specialized tools including code indexing with background job processing, real-time file watching for active projects, function call relationship analysis, class hierarchy exploration, dead code detection, and direct Cypher query execution. The implementation features cyclomatic complexity calculation, full-text search across code elements, import dependency tracking, and an interactive setup wizard that supports both local Neo4j installations and hosted AuraDB connections, making it valuable for developers who need programmatic access to code structure and relationships for refactoring, impact analysis, and codebase understanding tasks.

## Trust

- **Trust score (0–1):** 0.50
- **Verification tier:** unverified

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** database
- **Updated:** 2026-05-27

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/codegraphcontext)
- **Repository:** <https://github.com/codegraphcontext/codegraphcontext>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "codegraphcontext"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/codegraphcontext` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/codegraphcontext/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
