GitHub Knowledge Graph MCP Server

by ItamarZand88

274 downloads Not rated yet
GitHub

About

The GitHub Knowledge Graph MCP Server generates and interacts with knowledge graphs of GitHub repositories using the Model Context Protocol (MCP). It enables AI models to analyze and explore code repositories through a structured graph.

Explore

- Generate knowledge graphs from GitHub repositories
- Check status and retrieve analysis results
- Navigate and explore knowledge graphs interactively
- Search nodes and get detailed node information
- Analyze dependencies and detect circular dependencies
- Get overview statistics for a knowledge graph

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name GitHub Knowledge Graph MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository


npm install -g github-knowledge-graph-mcp

npm install github-knowledge-graph-mcp

The server can be configured with the following environment variables:

| Variable | Description | Default |
|----------|-------------|---------|
| MCP_PORT | The port to run the MCP server on | 3100 |
| MCP_HOST | The host to bind the MCP server to | localhost |
| MCP_DATA_DIR | Directory to store knowledge graphs | $HOME/.github-knowledge-graph/data |
| MCP_LOG_LEVEL | Logging level (debug, info, warn, error) | info |

Example:


export MCP_PORT=3200
export MCP_DATA_DIR=$HOME/github-kg-data
github-kg-mcp

npx github-knowledge-graph-mcp install-claude

npm run install-claude


This will add the MCP server configuration to your Claude Desktop config file located at:
%APPDATA%\Claude\claude_desktop_config.json (Windows) or
$HOME/Library/Application Support/Claude/claude_desktop_config.json (macOS)

The server implements the Model Context Protocol (MCP), enabling AI models to analyze and explore code repositories.

javascript
// Example: Custom server configuration
import { startMcpServer } from 'github-knowledge-graph-mcp';

startMcpServer({
port: 4000,
dataDir: '/custom/data/path',
logLevel: 'debug'
});
```

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "github knowledge graph mcp server": {
            "github-knowledge-graph-mcp": {
                "command": "npx",
                "args": [
                    "github-knowledge-graph-mcp"
                ]
            }
        }
    }
}

McpServers

{
    "github-knowledge-graph-mcp": {
        "command": "npx",
        "args": [
            "github-knowledge-graph-mcp"
        ]
    }
}

Generate and interact with knowledge graphs of GitHub repositories using the Model Context Protocol (MCP).

Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.