NeuroWeave Knowledge Graph
Provides tools to clone and analyze GitHub repositories, extract repository metadata via the GitHub API, and generate interactive knowledge graphs for public repositories.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.

š Live: neuroweave-mcp.vercel.app

š§ NeuroWeave Knowledge Graph
Advanced MCP Server for Codebase Analysis & Interactive Visualization
A comprehensive Model Context Protocol (MCP) server that analyzes codebases and generates interactive knowledge graph visualizations for Claude Code CLI. Features multi-language support, neural-themed styling, and seamless GitHub integration.
š Ready for Claude Code CLI - One-command setup for instant codebase analysis
š Key Features
š Multi-Language Codebase Analysis
Python: Full AST parsing for classes, functions, imports
JavaScript/TypeScript: Function and class detection, import analysis
Java: Class and method extraction, import mapping
C++, C#, Go, Rust: Basic structural analysis
šØ Interactive Knowledge Graphs
Neural-themed visualizations with cyberpunk aesthetics
Force-directed layouts with physics simulation
Real-time interaction with zoom, pan, and hover details
Hierarchical relationships between files, classes, functions
š GitHub Integration
Repository cloning and analysis
GitHub API integration for metadata
Automatic updates for existing repositories
š MCP Server Tools
analyze_codebase- Local codebase analysisanalyze_github_repo- GitHub repository analysisgenerate_codebase_graph- Interactive visualizationsget_repo_info- Repository metadata extraction
Related MCP server: code-grapher
š Quick Start (Claude Code CLI)
š Remote Installation (Recommended)
One-command remote setup - no local installation needed:
claude mcp add --transport http codebase-kg https://neuroweave-mcp.vercel.appFeatures:
ā Zero setup - works immediately
ā No dependencies - runs on Vercel serverless
ā GitHub analysis - analyze any public repository
ā Always updated - latest version automatically
ā” Local Installation (Full Features)
Windows:
git clone https://github.com/mhmalvi/neuro-weave-knowledge-graph.git
cd neuro-weave-knowledge-graph
install.batLinux/Mac:
git clone https://github.com/mhmalvi/neuro-weave-knowledge-graph.git
cd neuro-weave-knowledge-graph
chmod +x install.sh && ./install.shšÆ Instant Usage
After installation, just ask Claude Code:
"Analyze this codebase"
"Create a knowledge graph for my project"
"Show me the structure of https://github.com/user/repo"
"Generate a visualization of the dependencies"
š§ Manual Installation
Clone & Setup:
git clone https://github.com/mhmalvi/neuro-weave-knowledge-graph.git cd neuro-weave-knowledge-graphInstall Core Dependencies:
pip install -r requirements-mcp.txtConfigure Environment:
cp .env.example .env # Edit .env and add your OpenAI API keyAdd to Claude Code:
claude mcp add codebase-knowledge-graph python ./mcp_server.py
š Requirements
Python 3.8+
OpenAI API Key (required for enhanced analysis)
GitHub Token (optional, for better rate limits)
š” Usage Examples
š Codebase Analysis
š¤ You: "Analyze this codebase and show me its structure"
š¤ Claude: [Analyzes current directory and generates knowledge graph]š GitHub Repository Analysis
š¤ You: "Create a knowledge graph for https://github.com/microsoft/vscode"
š¤ Claude: [Clones repo, analyzes structure, generates interactive visualization]šØ Custom Analysis
š¤ You: "Show me all the classes and their relationships in this Python project"
š¤ Claude: [Generates focused visualization of class hierarchies]š File Structure
āāā mcp_server.py # Core MCP server implementation
āāā codebase_visualizer.py # Specialized code visualization
āāā generate_knowledge_graph.py # Text-based graph generation
āāā requirements-mcp.txt # Minimal MCP dependencies
āāā requirements-full.txt # Full features (AI + Web UI)
āāā install.sh / install.bat # Auto-installation scripts
āāā .env.example # Environment template
āāā LICENSE # MIT licensešļø Advanced Configuration
Environment Variables
# Required
OPENAI_API_KEY=your_openai_api_key
# Optional
GITHUB_TOKEN=your_github_token
# Streamlit (for web UI only)
STREAMLIT_SERVER_PORT=8501Dependency Options
Minimal MCP:
pip install -r requirements-mcp.txtFull Featured:
pip install -r requirements-full.txtWeb UI Only:
pip install streamlit && streamlit run app.py
š Deploy Your Own Remote MCP Server
Deploy to Vercel (Free)
Fork this repository
Deploy to Vercel:
npm install -g vercel vercel --prodSet environment variables in Vercel dashboard:
OPENAI_API_KEY(optional)GITHUB_TOKEN(optional)
Use your deployment:
claude mcp add --transport http my-codebase-kg https://your-project.vercel.app
Deploy to Other Platforms
Netlify: Use
netlify-plugin-pythonRailway: Direct Python deployment
Render: Web service with Python runtime
DigitalOcean App Platform: Python app
šÆ How It Works
Web Interface Usage
Input Selection: Choose between file upload or direct text input
Data Processing: Upload code files or paste text directly
Generate Visualization: Click "Generate Knowledge Graph"
Explore Results: Navigate the interactive visualization:
Drag nodes to rearrange the layout
Hover for detailed information
Zoom and pan to explore different areas
Filter nodes by type or relationship
MCP Tools Usage
Ask Claude to:
"Analyze this codebase"
"Create a knowledge graph for my project"
"Show me the structure of [GitHub repo URL]"
"Generate a visualization of the dependencies"
š ļø Architecture
The system uses:
AST Parsing: Extract structural information from source code
Relationship Mapping: Identify imports, inheritance, and dependencies
Graph Generation: Build interactive network visualizations
MCP Integration: Provide tools for AI assistant integration
šØāš» Author
š Creator and maintainer of NeuroWeave Knowledge Graph
š§ Developer of the MCP server implementation
šØ Designer of the neural-themed visualization system
NeuroWeave Knowledge Graph Codebase Analysis
Architecture Overview
Two Independent Systems:
Streamlit Web Interface (app.py) - Standalone web application
MCP Server (mcp_server.py) - AI assistant integration service
Component Analysis
šØ Streamlit Frontend (app.py)
State: Fully functional web application
Purpose: Interactive web interface for knowledge graph generation
Input Methods:
File upload (.txt files)
Direct text input via text area
Processing: Calls generate_knowledge_graph() from generate_knowledge_graph.py
Output: Interactive HTML visualization embedded using components.html()
Styling: Extensive cyberpunk/neural theme CSS with animations
Flow: User Input ā Text Processing ā LLM Graph Transform ā PyVis Visualization
ā” MCP Server (mcp_server.py)
State: Complete MCP protocol implementation
Purpose: Provides AI assistants (like Claude) with codebase analysis tools
Key Classes:
CodebaseAnalyzer - AST parsing for multiple languages
GitHubAnalyzer - Repository cloning and GitHub API integration
CodebaseVisualizer - Specialized code structure visualization
Tools Exposed:
analyze_codebase - Local directory analysis
analyze_github_repo - GitHub repo cloning + analysis
generate_codebase_graph - Interactive visualization generation
get_repo_info - GitHub API metadata retrieval
š§ Core Knowledge Graph Engine (generate_knowledge_graph.py)
State: Text-to-graph transformation system
LLM Integration: Uses GPT-4o via LangChain for entity/relationship extraction
Async Processing: extract_graph_data() for LLM calls
Visualization: PyVis network with neural styling and physics simulation
Output: Enhanced HTML with custom CSS/JavaScript effects
š Specialized Codebase Visualizer (codebase_visualizer.py)
State: Code-specific graph generation
Node Types: Files, classes, functions, methods, imports, packages
Relationships: Contains, inherits, calls, imports, depends_on
Styling: Type-specific colors, shapes, and sizes
Physics: Force-directed layout with collision detection
Data Flow Analysis
Streamlit App Flow:
User Input (text/file) ā generate_knowledge_graph() ā LLM Processing ā PyVis Graph ā Enhanced HTML ā Streamlit Display
MCP Server Flow:
AI Assistant Request ā MCP Tool Call ā Codebase Analysis ā Graph Generation ā JSON Response ā AI Assistant Processing
Current State Assessment
ā Working Components:
Streamlit web interface is fully functional
MCP server implements complete protocol
Multi-language code analysis (Python, JS, Java, etc.)
GitHub integration with cloning capability
Interactive visualizations with neural theming
Dual visualization modes (text-based vs code-structure)
š§ Configuration Requirements:
OpenAI API key for LLM processing
Optional GitHub token for repository access
Environment variables via .env file
š¦ Dependencies:
Core: langchain, streamlit, pyvis, mcp
Analysis: ast (Python), regex (other languages)
Integration: requests (GitHub API), subprocess (git)
š Deployment:
Web App: streamlit run app.py
MCP Server: Configured in Claude Desktop or via MCP client
Both systems operate independently
The codebase represents a sophisticated knowledge graph system with dual interfaces
a user-friendly web app and a powerful MCP server for AI integration.
License
This project is licensed under the MIT License - a permissive open source license that allows for free use, modification, and distribution of the software.
For more details, see the MIT License documentation.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Repository knowledge graph MCP server for codebase understanding and debugging.
Codebase knowledge graph ā architectural awareness for AI coding agents via MCP
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables analysis of any GitHub repository to get architecture, file roles, execution flows, system design Q\&A, and structured agent context. Works with MCP-compatible clients like Claude Desktop, Cursor, and Windsurf.647 npm1MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to intelligently analyze and query codebases using knowledge graphs, supporting natural language code search, relationship discovery, and incremental updates.11-
- AlicenseNot gradedqualityCmaintenanceA local knowledge graph of your codebase for Claude Code on macOS, exposing structural data via MCP tools for querying calls, imports, test coverage, and impact analysis.98 PyPI1MIT
- AlicenseNot gradedqualityBmaintenanceIngests any GitHub repository's code into a Neo4j knowledge graph and exposes it as read-only MCP tools, enabling users to query repo structure, dependencies, and function details via natural language.MIT