Python 3.11+ required.
# Standard install
pip install -e .
# With dev/test dependencies
pip install -e ".[dev]"python -m networkx_mcpThe server uses stdio transport (JSON-RPC 2.0 over stdin/stdout).
pytest tests/working/ -vAdd the following to your claude_desktop_config.json:
{
"mcpServers": {
"networkx": {
"command": "python",
"args": ["-m", "networkx_mcp"]
}
}
}- Graph CRUD -- create, read, update, delete graphs, nodes, and edges
- Centrality algorithms -- betweenness, closeness, eigenvector, degree
- Community detection -- Louvain, label propagation
- PageRank
- Visualization -- graph rendering and export
- Citation network analysis
- CI/CD tools -- DORA metrics, deployment tracking
Import errors: Make sure you installed with pip install -e . from the project root.
Can't connect from Claude Desktop: Verify the claude_desktop_config.json path and that python -m networkx_mcp runs without errors in your terminal first.