- CodeGraphContext
CodeGraphContext
Overview
What is CodeGraphContext?
CodeGraphContext is an MCP server that indexes local code into a graph database, providing context to AI assistants for better code understanding and analysis.
How to use CodeGraphContext?
To use CodeGraphContext, install it via pip, set up your Neo4j database connection using the interactive command-line wizard, and start the server with the command cgc start.
Key features of CodeGraphContext?
- Code Indexing: Analyzes code and builds a knowledge graph of its components.
- Relationship Analysis: Query for callers, callees, class hierarchies, and call chains.
- Live Updates: Automatically updates the graph when local files change.
- Interactive Setup: User-friendly command-line wizard for easy configuration.
Use cases of CodeGraphContext?
- Static code analysis in AI assistants.
- Graph-based visualization of projects.
- Dead code and complexity detection.
FAQ from CodeGraphContext?
- Can CodeGraphContext be used with any programming language?
Yes, as long as the code can be indexed, CodeGraphContext can analyze it.
- Is CodeGraphContext free to use?
Yes! CodeGraphContext is open-source and free for everyone.
- How does CodeGraphContext handle large codebases?
It efficiently indexes and analyzes large codebases using graph database capabilities.
Server Config
{
"mcpServers": {
"CodeGraphContext": {
"command": "cgc",
"args": [
"start"
],
"env": {
"NEO4J_URI": "YOUR_NEO4J_URI",
"NEO4J_USERNAME": "YOUR_NEO4J_USERNAME",
"NEO4J_PASSWORD": "YOUR_NEO4J_PASSWORD"
},
"tools": {
"alwaysAllow": [
"add_code_to_graph",
"add_package_to_graph",
"check_job_status",
"list_jobs",
"find_code",
"analyze_code_relationships",
"watch_directory",
"find_dead_code",
"execute_cypher_query",
"calculate_cyclomatic_complexity",
"find_most_complex_functions",
"list_indexed_repositories",
"delete_repository",
"visualize_graph_query",
"list_watched_paths",
"unwatch_directory"
],
"disabled": false
},
"disabled": false,
"alwaysAllow": []
}
}
}Project Info
Created At
8 months agoUpdated At
8 months agoAuthor Name
Shashankss1205Star
-Language
-License
-Category
research-and-data
Recommend Servers
View AllMemory
@modelcontextprotocol
a year ago
Playwright Mcp
@microsoft
Playwright MCP server
TypeScript
10 months ago
Filesystem
@modelcontextprotocol
2 months ago
Tavily Mcp
@tavily-ai
JavaScript
a year ago