Skip to main content
Glama
inbarajaldrin

NetworkX Graph MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Tools

Functions exposed to the LLM to take actions

NameDescription
create_state_graph

Create a new state/decision graph (directed, cycles allowed).

delete_state_graph

Delete a state graph.

list_state_graphs

List all available state graph files on disk (memory resets each session, so this scans for YAML/JSON files in graphs directories). Returns file paths that can be imported.

get_state_graph_info

Get graph metadata and stats.

add_node

Add a node (action/decision/verification/loop/success/failure).

update_node

Update node properties (label, phase, tool, properties).

remove_node

Remove a node.

get_node

Get node details.

list_nodes

List all nodes.

add_edge

Add an edge with order and optional condition.

remove_edge

Remove an edge.

get_edges

Get edges (optionally filter by node).

set_edge_order

Set execution order for an edge.

set_edge_condition

Set condition label for an edge.

get_node_edges

Get incoming/outgoing edges for a node.

bulk_add_nodes

Add multiple nodes at once (parents before children).

bulk_add_edges

Add multiple edges at once (with order/condition).

export_graph

Export graph to YAML or JSON file.

import_graph

Import graph from YAML or JSON file.

visualize_graph

Render graph to PNG file (saves to disk, not base64).

validate_graph

Validate graph structure (cycles allowed, warnings only).

get_graph_stats

Get statistics: node counts by type, edges, phases, decision points, loops.

find_path

Find shortest path between two nodes.

get_execution_sequence

Get nodes in execution order from a start node, following edges by order attribute. Stops at first decision node by default. Returns sequence of nodes with their details.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/inbarajaldrin/networkx-graph-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server