Skip to content
MCP server

Graph Algorithms MCP

Shortest paths, topological order and connected components for directed or undirected…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.1
Listing updated
4 days ago

About Graph Algorithms MCP

Graph Algorithms MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Shortest paths, topological order and connected components for directed or undirected graphs

Install

Run in a terminal

claude mcp add graph-algorithms-mcp -- npx -y @mrfentmen/graph-algorithms-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "graph-algorithms-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/graph-algorithms-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "graph-algorithms-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/graph-algorithms-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "graph-algorithms-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/graph-algorithms-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "graph-algorithms-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/graph-algorithms-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "graph-algorithms-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/graph-algorithms-mcp"
      ]
    }
  }
}

Pricing

Open source

Graph Algorithms MCP FAQ

Is Graph Algorithms MCP free?

Yes. Graph Algorithms MCP is open source, so you can use and self-host it for free.

How do I add Graph Algorithms MCP to Claude Code?

Run this command in your terminal: claude mcp add graph-algorithms-mcp -- npx -y @mrfentmen/graph-algorithms-mcp